diff --git a/blockcommit_all.sh b/blockcommit_all.sh index 71870ae..3b17a9b 100755 --- a/blockcommit_all.sh +++ b/blockcommit_all.sh @@ -16,7 +16,9 @@ do if [[ "$retour" =~ 'block copy still active' ]] then echo "-- Finishing blockjob for $vm ..." - sudo virsh blockjob $vm $path_vda --pivot --info + sudo virsh blockjob $vm $path_vda --info + sudo virsh blockjob $vm $path_vda --pivot + echo "-- BLOCKCOMMITTING $vm ..." sudo virsh blockcommit $vm vda --active --verbose --pivot --delete 2>&1 fi @@ -30,7 +32,8 @@ do if [[ "$retour" =~ 'block copy still active' ]] then echo "-- Finishing blockjob for $vm ..." - sudo virsh blockjob $vm $path_vdb --pivot --info + sudo virsh blockjob $vm $path_vdb --info + sudo virsh blockjob $vm $path_vdb --pivot echo "-- BLOCKCOMMITTING $vm ..." sudo virsh blockcommit $vm vda --active --verbose --pivot --delete 2>&1 fi diff --git a/migrate_many_to_aunt.sh b/migrate_many_to_aunt.sh index 5baf307..3a070a5 100755 --- a/migrate_many_to_aunt.sh +++ b/migrate_many_to_aunt.sh @@ -11,6 +11,6 @@ do fi echo MIGRATING $vm ... - sudo virsh migrate --verbose --live --persistent --undefinesource --abort-on-error $vm qemu+ssh://aunt:223/system + sudo virsh migrate --verbose --live --persistent --undefinesource --abort-on-error $vm qemu+ssh://192.169.254.3:223/system sudo mv /var/backups/vm/mother/$vm /var/backups/vm/aunt done diff --git a/migrate_many_to_mother.sh b/migrate_many_to_mother.sh index d9d7493..768d6b8 100755 --- a/migrate_many_to_mother.sh +++ b/migrate_many_to_mother.sh @@ -11,6 +11,6 @@ do fi echo MIGRATING $vm ... - sudo virsh migrate --verbose --live --persistent --undefinesource --abort-on-error $vm qemu+ssh://mother:222/system + sudo virsh migrate --verbose --live --persistent --undefinesource --abort-on-error $vm qemu+ssh://192.169.254.2:222/system sudo mv /var/backups/vm/aunt/$vm /var/backups/vm/mother done diff --git a/migrate_to_aunt.sh b/migrate_to_aunt.sh index 4ce10be..bee4647 100755 --- a/migrate_to_aunt.sh +++ b/migrate_to_aunt.sh @@ -9,5 +9,5 @@ then fi echo MIGRATING $vm ... -sudo virsh migrate --verbose --live --persistent --undefinesource --abort-on-error $vm qemu+ssh://aunt:223/system +sudo virsh migrate --verbose --live --persistent --undefinesource --abort-on-error $vm qemu+ssh://192.169.254.3:223/system sudo mv /var/backups/vm/mother/$vm /var/backups/vm/aunt diff --git a/migrate_to_mother.sh b/migrate_to_mother.sh index dd48c57..304b0e5 100755 --- a/migrate_to_mother.sh +++ b/migrate_to_mother.sh @@ -9,5 +9,5 @@ then fi echo MIGRATING $vm ... -sudo virsh migrate --verbose --live --persistent --undefinesource --abort-on-error $vm qemu+ssh://mother:222/system +sudo virsh migrate --verbose --live --persistent --undefinesource --abort-on-error $vm qemu+ssh://192.169.254.2:222/system sudo mv /var/backups/vm/aunt/$vm /var/backups/vm/mother