[LUNI] Resizing my LVM
Keith T. Garner
kgarner at kgarner.com
Thu May 17 00:38:57 CDT 2007
On 5/16/07 10:57 PM, Jay Strauss wrote:
> So to do this I'd go:
> lvextend -L+10G /dev/mapper/vg1-home
> umount /dev/mapper/vg1-home
> resize2fs /dev/mapper/vg1-home
> mount /home
>
> It seems simple enough. I must be missing something :)
>
> Is the above correct?
That's pretty much it, but you probably want to use the non-mapper devs of
/dev/vg1/home I'm not sure how the LVM tools would like the raw device.
It'll probably work, as the entries in /dev/vg1 are links off to
/dev/mapper, but it never hurts.
Also, you didn't mention the distribution or kernel you're on, but if its a
new enough kernel and new enough e2fsprogs, you can do the resizing without
unmounting the filesystem.
Keith
--
Keith T. Garner kgarner at kgarner.com
"Make no little plans; they have no magic to
stir men's blood." - Daniel H. Burnham
More information about the luni
mailing list