WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-bugs

[Xen-bugs] [Bug 1438] Cannot use pygrub with drbd blcok device as xvda.

To: xen-bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-bugs] [Bug 1438] Cannot use pygrub with drbd blcok device as xvda.
From: bugzilla-daemon@xxxxxxxxxxxxxxxxxxx
Date: Fri, 24 Jun 2011 14:00:25 -0700
Delivery-date: Fri, 24 Jun 2011 14:01:28 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <bug-1438-3@xxxxxxxxxxxxxxxxxxxxxxxxxxx/bugzilla/>
List-help: <mailto:xen-bugs-request@lists.xensource.com?subject=help>
List-id: Xen Bugzilla <xen-bugs.lists.xensource.com>
List-post: <mailto:xen-bugs@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-bugs>, <mailto:xen-bugs-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-bugs>, <mailto:xen-bugs-request@lists.xensource.com?subject=unsubscribe>
Reply-to: bugs@xxxxxxxxxxxxxxxxxx
Sender: xen-bugs-bounces@xxxxxxxxxxxxxxxxxxx
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

<Prev in Thread] Current Thread [Next in Thread>