Meilleure verbosité
This commit is contained in:
parent
968688463a
commit
e5a095cc81
|
@ -24,13 +24,14 @@ do
|
||||||
if [ ! -z "$path_vdb" ]
|
if [ ! -z "$path_vdb" ]
|
||||||
then
|
then
|
||||||
echo "-- BLOCKCOMMITTING $vm disk vdb ..."
|
echo "-- BLOCKCOMMITTING $vm disk vdb ..."
|
||||||
retour=$(sudo virsh blockcommit $vm vdb --active --verbose --pivot --de>
|
retour=$(sudo virsh blockcommit $vm vdb --active --verbose --pivot --delete 2>&1 | tee /dev/tty)
|
||||||
|
|
||||||
if [[ "$retour" =~ 'block copy still active' ]]
|
if [[ "$retour" =~ 'block copy still active' ]]
|
||||||
then
|
then
|
||||||
echo "-- Finishing blockjob for $vm ..."
|
echo "-- Finishing blockjob for $vm ..."
|
||||||
sudo virsh blockjob $vm $path_vdb --pivot --info
|
sudo virsh blockjob $vm $path_vdb --pivot --info
|
||||||
echo "-- BLOCKCOMMITTING $vm ..."
|
echo "-- BLOCKCOMMITTING $vm ..."
|
||||||
sudo virsh blockcommit $vm vdb --active --verbose --pivot --delete >
|
sudo virsh blockcommit $vm vda --active --verbose --pivot --delete 2>&1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue