[CentOS] Partitionning for future.

David Goldsmith dgoldsmith at sans.org
Sun Jun 28 15:38:48 UTC 2009


-----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-----



More information about the CentOS mailing list