Our corporate standard is CentOS (which seems to prefer LVM), and I come from primarily a non-LVM background, so I'm treading new ground with this issue.
I inherited an older machine as a log-server and had to reinstall CentOS. Due to issues with EHCI on the motherboard (either via the normal install DVD or via LiveCD GUI install), the only thing I could find that would install CentOS 6.3 was a LiveCD text install. The LiveCD text install would not allow me to make my own partition settings on the disk; it only installs LVM and gave me bad space allocation for a log server...
[mpenning@someHost ~]$ cat /etc/issue CentOS release 6.3 (Final) Kernel \r on an \m [mpenning@someHost ~]$ df -m Filesystem 1M-blocks Used Available Use% Mounted on /dev/mapper/vg_livecd-lv_root 50397 2167 47719 5% / tmpfs 1850 0 1850 0% /dev/shm /dev/md127p1 485 65 395 15% /boot /dev/mapper/vg_livecd-lv_home 227001 188 215283 1% /home [mpenning@someHost ~]$ sudo lvm vgdisplay --- Volume group --- VG Name vg_livecd System ID Format lvm2 Metadata Areas 1 Metadata Sequence No 4 VG Access read/write VG Status resizable MAX LV 0 Cur LV 3 Open LV 3 Max PV 0 Cur PV 1 Act PV 1 VG Size 278.96 GiB PE Size 4.00 MiB Total PE 71415 Alloc PE / Size 71415 / 278.96 GiB Free PE / Size 0 / 0 VG UUID 8qywNz-cmKv-RxAH-WcsV-2nEA-sGg3-fcZ6BU [mpenning@someHost ~]$
- If I need to increase
/to have 257398 1-M blocks and decrease
/hometo 20000 1-M blocks, can I do this without rebooting and if so, what is the specific command sequence to do this?
- If I want to add a dedicated
/varpartition, how should I do it without a complete reinstall?