add second vm snapshot try without quiesce
This commit is contained in:
parent
acef33b4d5
commit
dfaeaac441
@ -43,11 +43,17 @@ done
|
|||||||
# create snapshot dataset
|
# create snapshot dataset
|
||||||
zfs create tank/snapshots/$VM
|
zfs create tank/snapshots/$VM
|
||||||
|
|
||||||
virsh snapshot-create-as --domain $VM --name $SNAPNAME --quiesce --atomic --disk-only $DISKSPEC > /dev/null
|
virsh snapshot-create-as --domain $VM --name $SNAPNAME --quiesce --atomic --disk-only $DISKSPEC >/dev/null 2>&1
|
||||||
if [ $? -ne 0 ]
|
if [ $? -ne 0 ]
|
||||||
then
|
then
|
||||||
|
virsh snapshot-create-as --domain $VM --name $SNAPNAME --disk-only $DISKSPEC >/dev/null 2>&1
|
||||||
|
if [ $? -ne 0 ]
|
||||||
|
then
|
||||||
echo "VM snapshot creation failed" >&2
|
echo "VM snapshot creation failed" >&2
|
||||||
exit 1
|
exit 1
|
||||||
|
else
|
||||||
|
echo "Snapshot created without --quiesce"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
zfs snapshot "$SRCZFS"@"$SNAPNAME"
|
zfs snapshot "$SRCZFS"@"$SNAPNAME"
|
||||||
|
Loading…
Reference in New Issue
Block a user