Example on growing a filesystem 2 GB which is the home directory

  1. umount /home
  2. lvextend -L +2G /dev/VolGroup00/Home00
  3. e2fsck -fy /dev/VolGroup00/Home00
  4. resize2fs /dev/VolGroup00/Home00
  5. mount /home

Example on shrinking a filesystem
Note: You are an idiot if you don't check how much space and inodes will be taken up before shrinking

  1. umount /home
  2. resize2fs /dev/VolGroup00/Home00 1500M
  3. e2fsck -f /dev/VolGroup00/Home00
  4. resize2fs /dev/VolGroup00/Home00 1500M
  5. lvreduce -L 1500M /dev/VolGroup00/Home00
  6. e2fsck -f /dev/VolGroup00/Home00
  7. mount /home

Copyright © 2005 Apolonio Enterprises All Rights Reserved