mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
support lvmohba on copy_from/to_secondary
This commit is contained in:
parent
10650e1624
commit
7a8fcdb611
@ -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
|
||||
|
||||
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user