xen-drbd

changeset 27:a1403dbe68c0

retrying drbd release
author igor
date Wed Feb 20 11:18:43 2008 +0200 (2008-02-20)
parents e859a316802b
children 60ffe9018212
files xen-drbd.py
line diff
     1.1 --- a/xen-drbd.py	Tue Feb 19 19:11:25 2008 +0200
     1.2 +++ b/xen-drbd.py	Wed Feb 20 11:18:43 2008 +0200
     1.3 @@ -72,7 +72,7 @@
     1.4      res=""
     1.5      drbd_resources=get_drbd_resources(domain)
     1.6      for drbd in drbd_resources:
     1.7 -        res += run("drbdadm secondary %s"%(drbd),node)
     1.8 +        res += run("until drbdadm secondary %s; do echo Trying to siwtch resource <%s> on the node <%s> to secondary state; sleep 5; done"%(drbd,drbd,node),node)
     1.9          print "DRBD resource <%s> on the node <%s> is <%s> now" % (drbd,node,get_drbd_state(drbd,node))
    1.10      return res
    1.11