Hi all,
I have a disk of 146Gb in a machine intended to have mainly mysql database, apache and some web data. I didn't use LVM for / and /boot during the installtion
Could I extend easily in the future the /var partition when I add another disk?
Filesystem Size Used Avail Use% Mounted on /dev/cciss/c0d0p6 23G 432M 22G 2% / /dev/mapper/VolGroup00-LogVol00 5.0G 139M 4.7G 3% /home /dev/mapper/VolGroup00-LogVol03 98G 275M 93G 1% /var /dev/mapper/VolGroup00-LogVol02 5.0G 2.9G 1.9G 61% /usr /dev/cciss/c0d0p1 99M 19M 75M 20% /boot tmpfs 470M 0 470M 0% /dev/shm
I would like to have your comments before I continue installin MySQL and others.
Thanks Yaovi
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Yaovi Atohoun wrote:
Hi all,
I have a disk of 146Gb in a machine intended to have mainly mysql database, apache and some web data. I didn't use LVM for / and /boot during the installtion
Could I extend easily in the future the /var partition when I add another disk?
Filesystem Size Used Avail Use% Mounted on /dev/cciss/c0d0p6 23G 432M 22G 2% / /dev/mapper/VolGroup00-LogVol00 5.0G 139M 4.7G 3% /home /dev/mapper/VolGroup00-LogVol03 98G 275M 93G 1% /var /dev/mapper/VolGroup00-LogVol02 5.0G 2.9G 1.9G 61% /usr /dev/cciss/c0d0p1 99M 19M 75M 20% /boot tmpfs 470M 0 470M 0% /dev/shm
I would like to have your comments before I continue installin MySQL and others.
Thanks Yaovi
Yes, add a new disk to the system, then run commands such as:
pvcreate /dev/<whatever device it is>
vgextend VolGroup00 /dev/<whatever device it is>
lvextend (either -l +## to add extents or -L +## to add size) /dev/VolGroup00/LogVol03
resize2fs /dev/VolGroup00/LogVol03
- -- David Goldsmith
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Jorge Fábregas wrote:
On Sunday 28 June 2009 11:38:48 am David Goldsmith wrote:
resize2fs /dev/VolGroup00/LogVol03
Does it performs the resizing while the filesystem is mounted?
Resizing to make an ext2/ext3 filesystem larger can be done while the filesystem is mounted. Resizing to shrink a filesystem requires the filesystem to not be mounted.
Example of online resizing:
# df -h /var Filesystem Size Used Avail Use% Mounted on /dev/mapper/vg0-varlv 2.0G 605M 1.3G 33% /var # lvextend -L +1G /dev/vg0/varlv Extending logical volume varlv to 3.00 GB Logical volume varlv successfully resized
# resize2fs /dev/vg0/varlv resize2fs 1.39 (29-May-2006) Filesystem at /dev/vg0/varlv is mounted on /var; on-line resizing required Performing an on-line resize of /dev/vg0/varlv to 786432 (4k) blocks. The filesystem on /dev/vg0/varlv is now 786432 blocks long.
# df -h /var Filesystem Size Used Avail Use% Mounted on /dev/mapper/vg0-varlv 3.0G 605M 2.2G 22% /var
- -- David Goldsmith
On Sunday 28 June 2009 11:52:36 am David Goldsmith wrote:
Resizing to make an ext2/ext3 filesystem larger can be done while the filesystem is mounted. Resizing to shrink a filesystem requires the filesystem to not be mounted.
Thanks for the tip and for the nice demonstration David.
All the best, Jorge
Thanks. I didn't put / and /boot in the Volume Group. Is it ok?
Yaovi
--- En date de : Dim 28.6.09, David Goldsmith dgoldsmith@sans.org a écrit :
De: David Goldsmith dgoldsmith@sans.org Objet: Re: [CentOS] Partitionning for future. À: "CentOS mailing list" centos@centos.org Date: Dimanche 28 Juin 2009, 17h38
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Yaovi Atohoun wrote:
Hi all,
I have a disk of 146Gb in a machine intended to have mainly mysql database, apache and some web data. I didn't use LVM for / and /boot during the installtion
Could I extend easily in the future the /var partition when I add another disk?
Filesystem Size Used Avail Use% Mounted on /dev/cciss/c0d0p6 23G 432M 22G 2% / /dev/mapper/VolGroup00-LogVol00 5.0G 139M 4.7G 3% /home /dev/mapper/VolGroup00-LogVol03 98G 275M 93G 1% /var /dev/mapper/VolGroup00-LogVol02 5.0G 2.9G 1.9G 61% /usr /dev/cciss/c0d0p1 99M 19M 75M 20% /boot tmpfs 470M 0 470M 0% /dev/shm
I would like to have your comments before I continue installin MySQL and others.
Thanks Yaovi
Yes, add a new disk to the system, then run commands such as:
pvcreate /dev/<whatever device it is>
vgextend VolGroup00 /dev/<whatever device it is>
lvextend (either -l +## to add extents or -L +## to add size) /dev/VolGroup00/LogVol03
resize2fs /dev/VolGroup00/LogVol03
- -- David Goldsmith
_______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On Mon, Jun 29, 2009 at 03:50, Yaovi Atohounyaovito@yahoo.fr wrote:
I didn't put / and /boot in the Volume Group. Is it ok?
Yes if you just want to grow /var it's OK. If you want to grow / or /boot though, it will be a problem...
If you still haven't started installing the machine, you might consider reinstalling it with / on LVM as well, that would give you more flexibility in the future.
HTH, Filipe
Thank you so much.
Yao
--- En date de : Lun 29.6.09, Filipe Brandenburger filbranden@gmail.com a écrit :
De: Filipe Brandenburger filbranden@gmail.com Objet: Re: [CentOS] Partitionning for future. À: "CentOS mailing list" centos@centos.org Date: Lundi 29 Juin 2009, 20h39
On Mon, Jun 29, 2009 at 03:50, Yaovi Atohounyaovito@yahoo.fr wrote:
I didn't put / and /boot in the Volume Group. Is it ok?
Yes if you just want to grow /var it's OK. If you want to grow / or /boot though, it will be a problem...
If you still haven't started installing the machine, you might consider reinstalling it with / on LVM as well, that would give you more flexibility in the future.
HTH, Filipe _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Hi Yaovi,
In the future, please post your questions to the list and not directly to me, that way you might get answers from others as well.
On Thu, Jul 2, 2009 at 10:52, Yaovi Atohounyaovito@yahoo.fr wrote:
I have re-installed CENTOS but I have created a /tmp. Now I have /tmp and tmps
df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/VolGroup00-LogVol00 21G 381M 19G 2% / /dev/cciss/c0d0p7 487M 11M 451M 3% /tmp /dev/mapper/VolGroup00-LogVol02 5.0G 3.7G 1.1G 78% /usr /dev/mapper/VolGroup00-LogVol01 5.0G 139M 4.7G 3% /home /dev/mapper/VolGroup00-LogVol03 100G 258M 94G 1% /var /dev/cciss/c0d0p1 99M 12M 83M 13% /boot tmpfs 505M 0 505M 0% /dev/shm
Do you think that my partition is OK and I can continue?
It really depends on what you are trying to do. You did not use LVM for /tmp and fixed it to ~500MB, but I can't tell you if that is going to be enough for you or not, only you can tell that based on the applications you are planning to run on this machine.
If you are not sure, I would at least suggest that you also create /tmp on LVM, that way you can grow it if you really have the need for more.
Yes, it is OK to have /tmp and a tmpfs for /dev/shm, they are different from each other and each of them needed for different purposes.
Personally, I think you should only create so many partitions for your system if you really know what you are doing. While there are advantages to having separate partitions (different I/O requirements for particular applications, limit damage caused by an application filling up the disk, in which case the root filesystem might not be affected) it brings more complexity and more management requirements. While LVM alleviates some of the problem, it does create its own as well.
If you are not sure of what you are trying to accomplish and cannot come up with specific requirements of what you need, I would recommend you to create only a /boot partition (physical partition) and a / partition on LVM and that's all. It will probably not be the ideal setup, but good enough for most cases, and it will be the one that will require the least management efforts.
HTH, Filipe
I accept your remark and thanks.
I am planning to use the server mainly for MySQL and need some space for Apache. This is why I have more than 100GB for /var. I may need more spcae for MySQL databaes in the future and this is why I want to to with LVM
Thanks again Yaovi
--- En date de : Jeu 2.7.09, Filipe Brandenburger filbranden@gmail.com a écrit :
De: Filipe Brandenburger filbranden@gmail.com Objet: Re: [CentOS] Partitionning for future. À: "CentOS mailing list" centos@centos.org, "Yaovi Atohoun" yaovito@yahoo.fr Date: Jeudi 2 Juillet 2009, 17h10
Hi Yaovi,
In the future, please post your questions to the list and not directly to me, that way you might get answers from others as well.
On Thu, Jul 2, 2009 at 10:52, Yaovi Atohounyaovito@yahoo.fr wrote:
I have re-installed CENTOS but I have created a /tmp. Now I have /tmp and tmps
df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/VolGroup00-LogVol00 21G 381M 19G 2% / /dev/cciss/c0d0p7 487M 11M 451M 3% /tmp /dev/mapper/VolGroup00-LogVol02 5.0G 3.7G 1.1G 78% /usr /dev/mapper/VolGroup00-LogVol01 5.0G 139M 4.7G 3% /home /dev/mapper/VolGroup00-LogVol03 100G 258M 94G 1% /var /dev/cciss/c0d0p1 99M 12M 83M 13% /boot tmpfs 505M 0 505M 0% /dev/shm
Do you think that my partition is OK and I can continue?
It really depends on what you are trying to do. You did not use LVM for /tmp and fixed it to ~500MB, but I can't tell you if that is going to be enough for you or not, only you can tell that based on the applications you are planning to run on this machine.
If you are not sure, I would at least suggest that you also create /tmp on LVM, that way you can grow it if you really have the need for more.
Yes, it is OK to have /tmp and a tmpfs for /dev/shm, they are different from each other and each of them needed for different purposes.
Personally, I think you should only create so many partitions for your system if you really know what you are doing. While there are advantages to having separate partitions (different I/O requirements for particular applications, limit damage caused by an application filling up the disk, in which case the root filesystem might not be affected) it brings more complexity and more management requirements. While LVM alleviates some of the problem, it does create its own as well.
If you are not sure of what you are trying to accomplish and cannot come up with specific requirements of what you need, I would recommend you to create only a /boot partition (physical partition) and a / partition on LVM and that's all. It will probably not be the ideal setup, but good enough for most cases, and it will be the one that will require the least management efforts.
HTH, Filipe
Yaovi,
Make sure that you never put /boot on LVM because your machine will not boot.
Matt
-- Mathew S. McCarrell Clarkson University '10
mccarrms@gmail.com mccarrms@clarkson.edu
On Mon, Jun 29, 2009 at 3:50 AM, Yaovi Atohoun yaovito@yahoo.fr wrote:
Thanks. I didn't put / and /boot in the Volume Group. Is it ok?
Yaovi
--- En date de : *Dim 28.6..09, David Goldsmith dgoldsmith@sans.org* a écrit :
De: David Goldsmith dgoldsmith@sans.org Objet: Re: [CentOS] Partitionning for future. À: "CentOS mailing list" centos@centos.org Date: Dimanche 28 Juin 2009, 17h38
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Yaovi Atohoun wrote:
Hi all,
I have a disk of 146Gb in a machine intended to have mainly mysql database, apache and some web data. I didn't use LVM for / and /boot during the installtion
Could I extend easily in the future the /var partition when I add another disk?
Filesystem Size Used Avail Use% Mounted on /dev/cciss/c0d0p6 23G 432M 22G 2% / /dev/mapper/VolGroup00-LogVol00 5.0G 139M 4.7G 3% /home /dev/mapper/VolGroup00-LogVol03 98G 275M 93G 1% /var /dev/mapper/VolGroup00-LogVol02 5.0G 2.9G 1.9G 61% /usr /dev/cciss/c0d0p1 99M 19M 75M 20% /boot tmpfs 470M 0 470M 0% /dev/shm
I would like to have your comments before I continue installin MySQL and others.
Thanks Yaovi
Yes, add a new disk to the system, then run commands such as:
pvcreate /dev/<whatever device it is>
vgextend VolGroup00 /dev/<whatever device it is>
lvextend (either -l +## to add extents or -L +## to add size) /dev/VolGroup00/LogVol03
resize2fs /dev/VolGroup00/LogVol03
David Goldsmith -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkpHjogACgkQ417vU8/9QfkM9QCeIAcvH5Bgkwgv96D50rmAXVbt MOkAn0MFj0F5SixH/Lnsu63j1X4Dr7JX =8vaY -----END PGP SIGNATURE----- _______________________________________________ CentOS mailing list CentOS@centos.org http://mc/compose?to=CentOS@centos.org http://lists.centos.org/mailman/listinfo/centoshttp://lists..centos.org/mailman/listinfo/centos
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos