Browse Source

add detection of scsi disks

master
Jochen Welzel 11 months ago
parent
commit
c390cd2c23
  1. 4
      libvirt-zsh-backup.sh

4
libvirt-zsh-backup.sh

@ -52,7 +52,7 @@ abortFunction()
exit 1
}
VMDISKS=$(virsh domblklist $VM | egrep -o vd.)
VMDISKS=$(virsh domblklist $VM | grep qcow2 | egrep -o [vs]d.)
DISKSPEC=""
for disk in $VMDISKS
do
@ -93,7 +93,7 @@ do
virsh blockcommit $VM $disk --pivot --active >/dev/null
done
VMDISKS=$(virsh domblklist $VM | egrep vd.)
VMDISKS=$(virsh domblklist $VM | egrep [vs]d.)
for disk in $VMDISKS
do
if [[ $disk == *"snapshot"* ]]

Loading…
Cancel
Save