[CentOS] Best way to extend pv partition for LVM
Adam Tauno Williams
awilliam at whitemice.org
Sat Apr 2 17:05:29 UTC 2011
On Sat, 2011-04-02 at 12:02 -0500, Jay Leafey wrote:
> Kai Schaetzl wrote:
> > I've replaced disks in a hardware RAID 1 with larger disks and enlarged
> > the array. Now I have to find a way to tell LVM about the extra space.
> > It seems there are two ways:
> > 2. create another partition on the disk, pvcreate another pv and then add
> > it to the existing volume group with vgextend
> > No. 2 seems to be the easy way. Any objections?
Correct.
> > One I thought of:
> > What does happen when I use No. 2 and I add new lvs? Can it happen that
> > new lvs get "spanned" over both pvs or can I assure that a pv gets created
> > using only one of the pvs?
You can specify this [I believe] when you create an LV [which PVs are
eligable].
> I ran into the same circumstances a while back and, after a lot of
> consideration and testing, I chose door #2. It's the most expedient way
> to do it if you have no other resources available, but it does have some
> inefficiencies involved in it.
+1
And doing so is the entire point of LVM.
More information about the CentOS
mailing list