xen-drbd
diff xen-drbd.py @ 32:189e42c31b69
hvm disk parameter fixed
author | igor@manas.xt.vpn |
---|---|
date | Mon Aug 18 11:48:34 2008 +0300 (2008-08-18) |
parents | 311e9fe76a04 |
children | e80bdf496aa2 |
line diff
1.1 --- a/xen-drbd.py Wed Feb 20 15:42:48 2008 +0200 1.2 +++ b/xen-drbd.py Mon Aug 18 11:48:34 2008 +0300 1.3 @@ -141,11 +141,11 @@ 1.4 xm_domains=run_now("xm list | awk '{print $1}'", node).split("\n") 1.5 return filter(lambda x: x in xm_domains, domains) 1.6 1.7 -def migrate_all_out(node=i_am): 1.8 +def migrate_out_all(node=i_am): 1.9 for domain in running_domains(node): 1.10 migrate_domain_out(domain,node) 1.11 1.12 -def migrate_all_in(node=i_am): 1.13 +def migrate_in_all(node=i_am): 1.14 for domain in running_domains(the_peer_of(node)): 1.15 migrate_domain_in(domain,node) 1.16 1.17 @@ -257,10 +257,10 @@ 1.18 start_all() 1.19 elif command == 'start-my-domains': 1.20 start_my_domains() 1.21 - elif command == 'migrate-all-out': 1.22 - migrate_all_out() 1.23 - elif command == 'migrate-all-in': 1.24 - migrate_all_in() 1.25 + elif command == 'migrate-out-all': 1.26 + migrate_out_all() 1.27 + elif command == 'migrate-in-all': 1.28 + migrate_in_all() 1.29 elif command == 'migrate-my-domains-home': 1.30 migrate_my_domains_home() 1.31 elif command == 'migrate-and-start-my-domains':