Resize Logical Volume

Skolelinux use Logical Volume to hold the various partition as follow:

/dev/hda1 on / type ext3 (rw,errors=remount-ro)
/dev/vg_system/lv_usr on /usr type ext3 (rw)
/dev/vg_data/lv_home0 on /skole/tjener/home0 type ext3 (rw)
/dev/vg_system/lv_var on /var type ext3 (rw)

However the orginal preselected size for the home and usr partition are a bit tiny for me, so it's good to be able to resize these ones.

Resize the home partition

First the home partition must be umounted.

However due to strange bugs in the tools it is necessary to umount and remount it several time before proceeding to the resize operation

  1. umount /skole/tjener/home0 and mount /skole/tjener/home0 to be repeated several time
  2. with /skole/tjener/home0 umounted do e2fsadm -L +2G /dev/vg_data/lv_home0
  3. mount /skole/tjener/home0

Check with the command df -h your home partition is bigger of 2Gb.

In case you have trouble and your partition is not resize as requested, repeated the mount, umount step a couple of time and do a e2fsadm -l +1 /dev/vg_data/lv_home0

Resize the usr partition

The steps are almost the same. However to cleanly umount the /usr partition you need to do first:

  1. init 1
  2. exec /bin/ash
  3. umount mount several time the /usr partition (umount /usr, mount /usr)
  4. e2fsadm -L +2G /dev/vg_system/lv_usr
  5. mount /usr

Check with the command df -h your /usr partition is bigger of 2Gb.


Last edited on Monday, November 17, 2003 4:38:46 pm.

Host by
SourceForge Logo Project
Ofset
Valid XHTML 1.0! Valid CSS!
Page Execution took 36.477 seconds