add detection of scsi disks
This commit is contained in:
parent
4b53cb7f9e
commit
c390cd2c23
@ -52,7 +52,7 @@ abortFunction()
|
|||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
VMDISKS=$(virsh domblklist $VM | egrep -o vd.)
|
VMDISKS=$(virsh domblklist $VM | grep qcow2 | egrep -o [vs]d.)
|
||||||
DISKSPEC=""
|
DISKSPEC=""
|
||||||
for disk in $VMDISKS
|
for disk in $VMDISKS
|
||||||
do
|
do
|
||||||
@ -93,7 +93,7 @@ do
|
|||||||
virsh blockcommit $VM $disk --pivot --active >/dev/null
|
virsh blockcommit $VM $disk --pivot --active >/dev/null
|
||||||
done
|
done
|
||||||
|
|
||||||
VMDISKS=$(virsh domblklist $VM | egrep vd.)
|
VMDISKS=$(virsh domblklist $VM | egrep [vs]d.)
|
||||||
for disk in $VMDISKS
|
for disk in $VMDISKS
|
||||||
do
|
do
|
||||||
if [[ $disk == *"snapshot"* ]]
|
if [[ $disk == *"snapshot"* ]]
|
||||||
|
Loading…
Reference in New Issue
Block a user