Resizing a partition used by LVM
Anders Westrup
anders at barbanet.com
Mon Sep 11 07:56:18 UTC 2006
On Fri, Sep 08, 2006 at 10:40:56PM +0100, Tony Arnold wrote:
> I'm struggling to find any information on this. I've resize my physical
> volume and now I want to resize the partition that it is in. However,
> gparted won't do it; the move/resize option is greyed out for partitions
> of type LVM. I've tried it by booting from the Ubuntu desktop CD.
>
> Any suggestions? Has anyone actually done this successfully and if so
> how did you do it?
I think that the pvresize tool can extend an existing physical volume,
but I haven't tried it myself..
See 'man pvresize' for details. You should probably be able to run:
sudo pvresize /dev/hda2
if your LVM type partition is /dev/hda2. This command should extend it
to the partition size. (it only works for LVM2 volume groups, not LVM1)
regards
--
Anders Westrup <anders at barbanet.com>
More information about the ubuntu-users
mailing list