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/
Home Products Support Community News


[Xen-bugs] [Bug 1555] New: pygrub and drbd

To: xen-bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-bugs] [Bug 1555] New: pygrub and drbd
From: bugzilla-daemon@xxxxxxxxxxxxxxxxxxx
Date: Sun, 27 Dec 2009 11:51:30 -0800
Delivery-date: Sun, 27 Dec 2009 11:51:36 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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

           Summary: pygrub and drbd
           Product: Xen
           Version: unstable
          Platform: Other
        OS/Version: Linux-2.6
            Status: NEW
          Severity: normal
          Priority: P2
         Component: 2.6.18 dom0
        AssignedTo: xen-bugs@xxxxxxxxxxxxxxxxxxx
        ReportedBy: langer@xxxxxxxxxxxxxxxxx

This is for Xen 3.4.1:

Specifying a disk of type drbd as in
disk = [ 'drbd:drbd_resource_name,xvda,w', ]
causes pygrub to look in /dev/drbd_resource_name, which does not exist.
The following simple fix helps.

#--- blkif.py.old        2009-12-27 20:47:09.000000000 +0100
+++ blkif.py    2009-12-27 20:48:16.000000000 +0100
@@ -75,8 +75,10 @@
     fn = taptype = None
     if uname.find(":") != -1:
         (typ, fn) = uname.split(":", 1)
-        if typ in ("phy", "drbd") and not fn.startswith("/"):
+        if typ == "phy" and not fn.startswith("/"):
             fn = "/dev/%s" %(fn,)
+        if typ == "drbd" and not fn.startswith("/"):
+            fn = "/dev/drbd/by-res/%s" %(fn,)
         if typ == "tap":
             (taptype, fn) = fn.split(":", 1)
     return (fn, taptype)

Configure bugmail: 
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Xen-bugs mailing list

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-bugs] [Bug 1555] New: pygrub and drbd, bugzilla-daemon <=