Resizing filesystems without Online JFS

Reducing the size

  1. Ensure no-one is using the filesystem (fuser or lsof)

  2. backup data using whichever utility you prefer

  3. vgcfgbackup /dev/vg_name for whichever volume group filesystem is in

  4. umount /dev/vg_name/lv_name

  5. lvreduce -L size /dev/vg_name/lv_name

  6. newfs -F vxfs /dev/vg_name/rlv_name (or -F hfs for hfs filesystem)

  7. fsck /dev/vg_name/lv_name

  8. mount /dev/vg_name/lv_name /mount_point

  9. restore from backup taken at point 2

Increase size

  1. backup filesystem

  2. umount /dev/vg_name/lv_name

  3. lvextend -L size /dev/vg_name/lv_name

  4. extendfs /dev/vg_name/rlv_name

  5. mount /dev/vg_name/lv_name