Re: moving LVM logical volumes to new disks
Patrick Ouellette <firstname.lastname@example.org> writes:
> On Thu, Nov 13, 2014 at 08:52:58PM +0100, lee wrote:
>> Fortunately, downtime isn't an issue. I also have a 32GB USB stick, and
>> all the LVs are smaller than 32GB.
>> Since there seems to be some agreement that it would be best to use
>> pvmove, I think I could, one after the other, move all the LVs to the
>> USB stick with pvmove, plug the USB stick into the other machine, move
>> the LVs onto a hard disk in the other machine, replace disks and move
>> the LVs back the same way.
>> I can keep the VMs shut down while doing this, which allows me to just
>> move the USB stick rather than moving over the network. However, over
>> the network might be more reliable, and I could move all VMs at once
>> with minimal downtime. Hmmm ...
> Call me unimaganitive or simple, but what about tar or rsync??
> Just backup to the other host on the network; swap around drives
> as needed; create new volume groups; restore from other host.
Because it's too simple? ;)
Why didn't I think of rsync? I'm using it for backups all the time.
How do I make the VMs bootable after copying them back?
Again we must be afraid of speaking of daemons for fear that daemons
might swallow us. Finally, this fear has become reasonable.