Changes

no edit summary
Line 54: Line 54:  
  mount -o loop,offset=$((63 * 512)) vm.img /mnt/
 
  mount -o loop,offset=$((63 * 512)) vm.img /mnt/
   −
* Then create an LV and copy over everything as in the online case
+
* Then, create an LV and copy over everything as in the online case
 +
 
 +
virsh vol-create-as treehouse VMNAME-root 10G
 +
virsh attach-disk rt /dev/treehouse/VMNAME-root vdc
 +
mkfs.ext4 -L rt-root -O flex_bg,extent,uninit_bg,sparse_super /dev/treehouse/VMNAME-root
 +
tune2fs -c -1 -i 0 /dev/treehouse/VMNAME-root
 +
mkdir /mnt2/VMNAME-root
 +
mount  /dev/treehouse/VMNAME-root  /mnt2/VMNAME-root/
 +
rsync -HAXphax --numeric-ids --delete /mnt/VMNAME-root/ /mnt2/VMNAME-root/
    
=== How to migrate an LVM-based guest to another host ===
 
=== How to migrate an LVM-based guest to another host ===