[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-bugs] [Bug 1438] Cannot use pygrub with drbd blcok device as xvda.
http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1438 ------- Comment #6 from themsley@xxxxxxxxxxxxx 2011-06-24 14:00 ------- A patch for the patches attached here says something like this --- pygrub 2011-06-24 21:54:52.000000000 +0100 +++ /usr/bin/pygrub 2011-06-24 21:56:44.000000000 +0100 @@ -679,8 +688,9 @@ """ drbdcount = string.strip(os.popen('drbdadm sh-dev all | grep ' + file + ' | wc -l').readline(), " \n") if drbdcount == '1': - drbdresource = string.strip(os.popen('drbdadm sh-resources ' + file).readline(), " \n") - peerstate = string.strip(os.popen('drbdadm state ' + drbdresource).readline(), " \n").lower().split("/",1)[0] + minor = file[9:] + drbdresource = string.strip(os.popen('drbdadm sh-resource minor-' + minor).readline(), " \n") + peerstate = string.strip(os.popen('drbdadm role ' + drbdresource).readline(), " \n").lower().split("/",1)[0] if peerstate == "unknown": print "DRBD resource " + drbdresource + " is " + peerstate + " on peer. Maybe split brain state?" -- Configure bugmail: http://bugzilla.xensource.com/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. _______________________________________________ Xen-bugs mailing list Xen-bugs@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-bugs
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |