Moving LVMs around
On Wednesday 05 December 2007, Neil Bothwick wrote:
> On Wed, 5 Dec 2007 16:28:27 +0000, Mick wrote:
> > Question re. step 2: Does /dev/sdc1 *have* to be added (vgextend) to
> > the same VG_old as /dev/sda5, or could it be added (vgcreate) to a new
> > VG_new?
> It has to be added to do a pvmove. If you want to create a new volume
> group, you may as well create it and use rsync to copy the contents of
> the old LVs over. If the only reason for the change is to have a
> different name, use vgrename either before or after the move. You can't
> run vgrename on an in-use VG, so boot into single user mode or from a
> live CD.
This is a data partition, so if I unmount it I guess I can vgrename it? Do I
need to run vgchange -a n first?