ELAD BEN AHARON
SENIOR QUALITY ENGINEER
34 Jerusalem Road, Building A, 1st floor
Ra'anana, Israel 4350109
TRIED. TESTED. TRUSTED. |
On Tue, Jul 11, 2017 at 2:59 PM, Gianluca Cecchi <gianluca.cecchi@gmail.com> wrote:Hello,I have a source oVirt environment with storage domain on FCI have a destination oVirt environment with storage domain on iSCSIThe two environments can communicate only via the network of their respective hypervisors.The source environment, in particular, is almost isolated and I cannot attach an export domain to it or something similar.So I'm going to plan a direct move through dd of the disks of some VMsThe workflow would beOn destination create a new VM with same config and same number of disks of the same size of corresponding source ones.Also I think same allocation policy (thin provision vs preallocated)Using lvs -o+lv_tags I can detect the names of my origin and destination LVs, corresponding to the disksWhen a VM is powered down, the LV that maps the disk will be not open, so I have to force its activation (both on source and on destination)lvchange --config 'global {use_lvmetad=0}' -ay vgname/lvnamecopy source disk with dd through network (I use gzip to limit network usage basically...)on src_host:dd if=/dev/src_vg/src_lv bs=1024k | gzip | ssh dest_host "gunzip | dd bs=1024k of=/dev/dest_vg/dest_lv"deactivate LVs on source and destlvchange --config 'global {use_lvmetad=0}' -an vgname/lvnameTry to power on the VM on destinationSome questions:- about overall workflow- about dd flags, in particular if source disks are thin vs preallocatedThanks,GianlucaSome further comments:- probably better/safe to use SPM hosts for lvchange commands both on source and target, as this imply metadata manipulation, correct?- when disks are preallocated, no problems, but when they are thin, I can be in this situationsource disk defined as 90Gb disk and during time it has expanded up to 50Gbdest disk at the beginning just after creation will normally be of few GB (eg 4Gb), so the dd command will fail when fulll...Does this mean that it will be better to create dest disk as preallocated anyway or is it safe to runlvextend -L+50G dest_vg/dest_lvfrom command line?Will oVirt recognize its actual size or what?
_______________________________________________
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users