Quote:
Originally Posted by syg00
system-config-lvm hasn't been developed for ages, and was dropped by Redhat/Fedora some time back. Certainly won't be on F22 if that is what the OP is using.
|
I didn't know that. It's still in the Ubuntu repositories. So guess the OP has to use the good old terminal and resize2fs, lvreduce and lvextend.
Quote:
Originally Posted by syg00
If you are using XFS you cannot reduce it using any tool. Any sane filesystem can be managed using the LVM tools which will also shrink/enlarge the filesystem as well as the lv. "man lvm" will list all the tools available, lvresize is what you want. Note the comment re resizing the filesystem.
|
I think it's safe to assume that the OP doesn't use XFS.
Quote:
Originally Posted by syg00
gparted should be able to do it all for you as mentioned (except shrink XFS), but I don't recall ever having used it on LVM lvs.
|
Gparted will NOT resize logical volumes!!! It only can resize partitions and the filesystems on it.
So the basic steps are
1. shrink the filesystem on "root" with resize2fs
2. shrink the logical volume "root" with lvreduce
3. extend the logical volume "home" with lvextend
4. grow the filesystem on "home" with resize2fs
Be careful with steps 1 and 2. If you make the lv smaller than the filesystem, you might lose data. To be safe, make the filesystem 1GB smaller than you need and grow it after you shrunk the lv to fill the remaining space.
HTH
Edit: If your version of lvreduce/lvextend supports the "-r" option, then it will do the filesystem resizing for you and steps 1 and 4 are not necessary.