Apparently, though unproven, at 12:48 on Saturday 09 April 2011, Dale did 
opine thusly:

> > the new drive ready for LVM.  What command adds it to the VG?  Is it 
> > vgcreate with some option?  I was sort of looking for something like 
> > vgadd or something but no luck finding that.  Maybe I am missing it on 
> > the howtos.
> > 
> > Dale
> > 
> > :-)  :-)
> 
> That would be vgextend wouldn't it?  I just read another bit in another 
> howto.

Yes.

PVs, VGs, LVs all have a concept of extend|resize|reduce. What that means 
depends on what you are working with, but they all make the thing bigger or 
smaller.

For a PV it means the underlying device's size changed, so the PV must change 
to match. Take a 500G drive, create 1 partition on it of 100G and make it a 
PV. Now enlarge the partition to 200G, you must extend the PV to match.

A VG isn't a single thing, it's a collection of things. Extending it means to 
add more PVs, reducing it means to take PVs out of the VG. Hopefully you will 
always remember to migrate the data off a PV before removing it from a VG :-)

Extend/Reduce an LV means to make the device larger/smaller. It is exactly the 
same thing as changing a partition size using fdisk. Obviously, you need to 
tweak the filesystem at the same time

-- 
alan dot mckinnon at gmail dot com

Reply via email to