RE: cheat sheet for resizing logical volumes?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>   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@xxxxxxxxxxxxxxxxx


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux