Step-by-step manual to partition HD with LVM
Gabriel M Dragffy
dragffy at yandex.ru
Fri Aug 4 20:19:46 UTC 2006
On Fri, 2006-08-04 at 13:58 +0200, Alexander Skwar wrote:
> Gabriel M Dragffy <dragffy at yandex.ru>:
>
> > Without wanting to detract from help that the OP of this thread is
> > seeking, I am hoping someone (alex? :P) would be able to point me at the
> > command to increase the size of a logical volume.
>
> lvresize -L$wanted_size /dev/$vgname/$lvname
> lvresize -L+$increase_size /dev/$vgname/$lvname
> lvresize -L-$decrease_size /dev/$vgname/$lvname
> lvextend
> lvreduce
>
> As you can see, lvresize is a "combined" lvextend and lvreduce.
>
> > My VG has about 54g
> > allocated to it, but the logical volumes only use about 44g of that
> > space. Soon my root logical volume will require additional space, so I
> > need to grow that fs to perhaps use the remaining 10g of space in the
> > volume group.
>
> Ah, so you also want to resize your file system.
> To do so, you'll need the tool which fits to your filesystem.
> Those are:
>
> - JFS: mount -o resize,remount
> - Reiserfs3: resize_reiserfs
> - XFS: xfs_growfs
> - ext3: there's something. I don't know the command
> - Reiser4: Not possible.
>
> Check out the excellent LVM Howto at tldp.org. It has examples for
> all filesystems, as far as I remember.
>
> Alexander Skwar
> --
> It takes less time to do a thing right than it does to explain why you
> did it wrong.
> -- H.W. Longfellow
>
>
>
Perfect. Thanks a lot!!
More information about the ubuntu-users
mailing list