This article will help in case of VHD issues and want to take a backup of VDI if the command xe vdi-copy doesn't work. This is an advanced tutorial and execute the command with care
#lvchange -ay /dev/VG-XenStorage-SR-UUID/VHD-VDI-UUID
Source
#tap-ctl create -a vhd:/dev/VG-XenStorage-SR-UUID/VHD-VDI-UUID -d /dev/xen/blktap-2/tapdev2
Dest:
#tap-ctl create -a vhd:/dev/VG-XenStorage-SR-UUID/VHD-VDI-UUID -d /dev/xen/blktap-2/tapdev3
do the dd using:
# dd if=/dev/xen/blktap-2/tapdev2 of=/dev/xen/blktap-2/tapdev3 bs=1M iflag=direct oflag=direct
#tap-ctl list (will show you the pid and the minor number)
#tap-ctl close -p id -m (for both source and set)