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

Re: [linux-lvm] Resizing a logical volume which is mounted (at /home)



Thanks Stuart.

That's what I did finally. Logged in as root in the console (in fact I booted into recovery mode from GRUB in order to do this).
Also, to ensure that the underlying file system is also resized accordingly, I used the -r option.

lvresize -r -L-20G vgme/lvhome
lvresize -r -L+20G vgme/lvroot

That did the trick. Thanks.

On Tue, Jan 17, 2012 at 11:45 PM, Stuart D. Gathman <stuart bmsi com> wrote:
Long ago, Nostradamus foresaw that on Jan 16, Kiran Rao would write:

Now, I tried the GUI (system-config-lvm) tool to do this. I can click on
lvhome and try to resize it. However, the problem is that since I am logged
in as a non-root user, the /home is mounted. Resizing requires one to
unmount it, but the unmount operation fails since I am mounted.

How do I work around this?

Log out of GUI
Switch to text console (on linux try Ctrl-Alt-F3 for vt3)
Login as root Unmount /home
resize2fs <device-for-home>
# WARNING!  Make sure lvresize size is >= resize2fs size.  If you aren't
# sure about the units, make lvresize larger than you think you made
# the filesystem.  You can always expand the filesystems again, but
# you can't undo shrinking the LV too far.
lvresize <device-for-home>
mount /home

--
             Stuart D. Gathman <stuart bmsi com>
   Business Management Systems Inc.  Phone: 703 591-0911 Fax: 703 591-6154
"Confutatis maledictis, flammis acribus addictis" - background song for
a Microsoft sponsored "Where do you want to go from here?" commercial.

_______________________________________________
linux-lvm mailing list
linux-lvm redhat com
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/


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