support lvmohba on copy_from/to_secondary

This commit is contained in:
anthony 2011-02-07 14:43:57 -08:00
parent 10650e1624
commit 7a8fcdb611
2 changed files with 2 additions and 2 deletions

View File

@ -69,7 +69,7 @@ if [ $type == "nfs" ]; then
fi
mv /var/run/sr-mount/$sruuid/$uuid /var/run/sr-mount/$sruuid/${uuid}.vhd
xe sr-scan uuid=$sruuid
elif [ $type == "lvmoiscsi" -o $type == "lvm" ]; then
elif [ $type == "lvmoiscsi" -o $type == "lvm" -o $type == "lvmohba"]; then
size=$(vhd-util query -v -n $vhdfile)
uuid=$(xe vdi-create sr-uuid=$sruuid virtual-size=${size}MiB type=user name-label="cloud")
if [ $? -ne 0 ]; then

View File

@ -70,7 +70,7 @@ if [ $type == "nfs" ]; then
cleanup
exit 0
fi
elif [ $type == "lvmoiscsi" -o $type == "lvm" ]; then
elif [ $type == "lvmoiscsi" -o $type == "lvm" -o $type == "lvmohba" ]; then
lvchange -ay /dev/VG_XenStorage-$sruuid/VHD-$vdiuuid
if [ $? -ne 0 ]; then
echo "9#lvm can not make VDI $vdiuuid visiable"