Logical Volume Manager (LVM)

Reducing Logical Volume

  1. Unmount Logical Volume (LV) containing the filesystem which you want to resize.
    # umount /dev/lv/home
  2. Check the filesystem with e2fsck first.
    # e2fsck -f /dev/lv/home
  3. Resize the filesystem.
    # resize2fs /dev/lv/home 9G
  4. Resize LV.
    # lvresize -L10G /dev/lv/home
  5. Check the status of the LV.
    # lvdisplay /dev/q/home
  6. Check and resize filesystem to the maximum size of LV.
    # e2fsck -f /dev/lv/home
    # resize2fs /dev/lv/home

Growing Logical Volume

  1. Unmount LV containing the filesystem which you want to resize.
    # umount /dev/lv/data
  2. Check the filesystem with e2fsck first.
    # e2fsck -f /dev/lv/data
  3. Check the remaining free physical extents.
    # vgdisplay
  4. Resize the LV.
    # lvresize -L +50,01G /dev/lv/data
  5. Check and resize filesystem to the maximum size of LV.
    # e2fsck -f /dev/lv/data
    # resize2fs /dev/lv/data
 
doc/lvm.txt · Last modified: 2013/08/16 01:00 by stwn · [Old revisions]
Recent changes RSS feed Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki