Meilleure verbosité

This commit is contained in:
Adrien Bourmault 2022-05-22 00:51:41 +02:00 committed by admin666
parent 968688463a
commit e5a095cc81
1 changed files with 3 additions and 2 deletions

View File

@ -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