List Info

Thread: Resizing a partition used by LVM




Resizing a partition used by LVM
user name
2006-09-08 21:40:56
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?

Regards,
Tony.
-- 
Tony Arnold, IT Security Coordinator, University of
Manchester,
IT Services Division, Kilburn Building, Oxford Road,
Manchester M13 9PL.
T: +44 (0)161 275 6093, F: +44 (0)870 136 1004, M: +44
(0)773 330 0039
E: tony.arnoldmanchester.ac.uk, H: http://www.man.ac.uk
/Tony.Arnold

-- 
ubuntu-users mailing list
ubuntu-userslists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-users

Resizing a partition used by LVM
user name
2006-09-08 22:02:55
> 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?

If you're using ext2/ext3, you can use ext2online to extend
your
filesystem online (without having to unmount it) or you can
use
resize2fs to shrink or extend it offline (the filesystem
must be
unmounted).

-- 
ubuntu-users mailing list
ubuntu-userslists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-users

Resizing a partition used by LVM
user name
2006-09-09 07:01:11
On Fri, 2006-09-08 at 15:02 -0700, Felipe Alfaro Solana
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?
> 
> If you're using ext2/ext3, you can use ext2online to
extend your
> filesystem online (without having to unmount it) or you
can use
> resize2fs to shrink or extend it offline (the
filesystem must be
> unmounted).

It's not a partition with a file system on it, it's a
partition being
used as a physical volume in a volume group. It's type is
LVM. gparted
reports the file system as 'unknown' which is maybe why it
won't resize
it.

Regards,
Tony.
-- 
Tony Arnold, IT Security Coordinator, University of
Manchester,
IT Services Division, Kilburn Building, Oxford Road,
Manchester M13 9PL.
T: +44 (0)161 275 6093, F: +44 (0)870 136 1004, M: +44
(0)773 330 0039
E: tony.arnoldmanchester.ac.uk, H: http://www.man.ac.uk
/Tony.Arnold

-- 
ubuntu-users mailing list
ubuntu-userslists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-users

Resizing a partition used by LVM
user name
2006-09-09 12:22:17
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?

I think this is one of those classic "don't do
that" sorts of things;
the idea with LVM being that you mostly leave the PVs alone
and just
rearrange the LVs on top. Have you got/can you borrow enough
spare
storage to add a new PV to your volume group, pvmove all the
data off
the current one, remove it from the VG, nuke it, recreate it
how you
want, re-add it, then pvmove everything back again?

Is there no way of doing whatever you're actually trying to
acheive at
the LV layer without altering the PVs?

Ewan
-- 
ubuntu-users mailing list
ubuntu-userslists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-users

Resizing a partition used by LVM
user name
2006-09-11 08:04:01
On Saturday 09 September 2006 09:01, Tony Arnold wrote:
> > > Any suggestions? Has anyone actually done
this
> > > successfully and if so how did you do it?
> >
> > If you're using ext2/ext3, you can use ext2online
to extend
> > your filesystem online (without having to unmount
it) or
> > you can use resize2fs to shrink or extend it
offline (the
> > filesystem must be unmounted).
>
> It's not a partition with a file system on it, it's a
> partition being used as a physical volume in a volume
group.
> It's type is LVM. gparted reports the file system as
> 'unknown' which is maybe why it won't resize it.

fdisk

alan

-- 
ubuntu-users mailing list
ubuntu-userslists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-users

Resizing a partition used by LVM
user name
2006-09-11 07:56:18
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 <andersbarbanet.com>

-- 
ubuntu-users mailing list
ubuntu-userslists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-users

[1-6]

about | contact  Other archives ( Real Estate discussion Medical topics )