[CentOS] expand physical volume

Peter Kjellstrom cap at nsc.liu.se
Sun Oct 7 20:10:19 UTC 2007


On Sunday 07 October 2007, Thomas Antony wrote:
> > The one and only partition on your device (sdb1) has the old size. That
> > is, there's free space on sdb. You have to either 1) create a partition
> > sdb2 (and then a pv on it etc.) or 2) resize the partition sdb1 (then
> > resize the pv etc.).
> >
> > I'd pick #1. remember to reread the partition table after creating the
> > partition (partprobe /dev/sdb or similar) before doing pvcreate on sdb2.
> >
> > The all you have left is to add the pv to your vg, resize the lv (or
> > create a new lv, whichever...). And finally resize the filesystem in the
> > lv.
>
> Hi Peter,
>
> How do i resize this partition?

Note that I suggested that you _dont_ resize partitions but create a new one 
(new partition with a new pv on it etc.). 

pvresize resizes the pv _if_ the containing block device or partition has 
already been grown.

> parted seems to want to resize the file system also and i think this
> would make some troubles.
> I thought pvresize would do this in one step?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.centos.org/pipermail/centos/attachments/20071007/03548d17/attachment.sig>


More information about the CentOS mailing list