Wednesday, March 9, 2016
Moving Xen Guests to another Xen host
Shrink the LVs of Xen guest first, but before shrinking the LVM logical volumn, check its usage first
Follow this guide to shrink the LVs
http://linux-bsd-sharing.blogspot.com/2012/06/howto-shrink-size-of-ext4-lvm-logical.html
prerequisites:
create lvm on target machine
install "pv" on src machine
# apt-get install pv
run
root@src:# dd if=/dev/vg/disk bs=4096 | pv | gzip -1 | ssh -p22 targethost.org "gzip -dc | dd of=/dev/vg/disk"
on your target machine you may want to:
resize2fs if the target lvm is larger
fsck.extX /dev/vg/disk on the target machine
edit the domU.cfg according to your target machine
mount /dev/vg/disk /mnt && chroot /mnt ** edit network, hostname, hosts
Subscribe to:
Posts (Atom)