diff --git a/scripts/vm/hypervisor/xenserver/copy_vhd_from_secondarystorage.sh b/scripts/vm/hypervisor/xenserver/copy_vhd_from_secondarystorage.sh index d98ef2e5af6..098284bc8fe 100755 --- a/scripts/vm/hypervisor/xenserver/copy_vhd_from_secondarystorage.sh +++ b/scripts/vm/hypervisor/xenserver/copy_vhd_from_secondarystorage.sh @@ -88,6 +88,7 @@ copyvhd() exit 0 fi if [ $type != "nfs" ]; then + dd if=$srcvhd of=$desvhd bs=512 seek=$(($(($vsize/512))-1)) count=1 $VHDUTIL modify -s $vsize -n $desvhd if [ $? -ne 0 ]; then echo "32#failed to set new vhd physical size for vdi vdi $uuid"