Lvm

From KeegansWiki
Jump to navigation Jump to search

Resize a Logical Volume

  • e2fsck -f /dev/VolGroup/lv_home
    • look for errors
  • resize2fs -f /dev/VolGroup/lv_home 180G
    • this is the target size
  • lvreduce -L180g /dev/VolGroup/lv_home
    • Again, target size
  • e2fsck -f /dev/VolGroup/lv_home
    • Verify everything is good
  • Next with fdisk delete the old partition you shrunk, and create a new one the correct size. The new leftover space will be usable. Don't forget to change system id (command t, code 8e.)