Sunday, December 26, 2010

Growing an ext3 partition built on LVM

This is pleasant surprise, it just takes a few simple steps:
  1. If necessary, stop NFS exporting the filesystem (e.g. /etc/init.d/nfsserver stop)
  2. Unmount the filesystem: umount /backups
  3. Check the filesystem: e2fsck -f /dev/home-srvr/backups
  4. Grow the partition: lvextend -L +100G /dev/home-srvr/backups
  5. Grow the filesystem: resize2fs /dev/home-srvr/backups
  6. Mount it again: mount /dev/home-srvr/backups
  7. Restart the NFS server

No comments: