http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1555
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:
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
|