cheat sheet for resizing logical volumes?

Kwan Lowe kwan at digitalhermit.com
Sat Jun 24 18:50:33 UTC 2006


>   is there, somewhere on-line, a quick cheat sheet for resizing
> logical volumes that i can scam rather than whipping up one of my own?
> thanks.
>
> rday

If you're using FC5 then you can launch system-config-lvm. It will let you resize
ext3 volumes dynamically and graphically.

Otherwise, the procedure for resizing:
1) With filesystem unmounted:

  a) Unmount the filesystem
  b) Grow the lvm: lvresize -L +500M /dev/vgname/lvname
  c) fsck the filesystem: e2fsck /dev/vgname/lvname
  d) Resize the filesystem: resize2fs /dev/vgname/lvname
  e) Remount the filesystem: mount /dev/vgname/lvname /path/to/mount

2) With filesystem mounted:

  a) Grow the lvm: lvresize -l +500M /dev/vgname/lvname
  b) Resize the filesystem: ext2online /path/to/mount


-- 
* The Digital Hermit   http://www.digitalhermit.com
* Unix and Linux Solutions   kwan at digitalhermit.com




More information about the fedora-list mailing list