Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 518774 - sys-cluster/drbd USE=xen - block-drbd fails to start domU on a drbd block device
Summary: sys-cluster/drbd USE=xen - block-drbd fails to start domU on a drbd block device
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Low normal (vote)
Assignee: Gentoo Cluster Team
URL: http://lists.opensuse.org/archive/ope...
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: 538732
  Show dependency tree
 
Reported: 2014-08-01 23:29 UTC by Konstantin
Modified: 2016-10-08 13:21 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
block-drbd script patch (block-drbd.patch,538 bytes, patch)
2014-08-01 23:29 UTC, Konstantin
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Konstantin 2014-08-01 23:29:42 UTC
Created attachment 382046 [details, diff]
block-drbd script patch

Original block-drbd script with USE="xen" flag isn't working correctly unless you change two lines there:

--- /root/scripts/block-drbd	2014-07-30 17:19:59.000000000 -0700
+++ scripts/block-drbd	2014-07-31 09:54:56.000000000 -0700
@@ -248,7 +248,7 @@
     fi
 
     case $t in 
-      drbd)
+      drbd|phy)
         drbd_resource=$p
         drbd_role="$(/sbin/drbdadm role $drbd_resource)"
         drbd_lrole="${drbd_role%%/*}"
@@ -276,7 +276,7 @@
 
   remove)
     case $t in 
-      drbd)
+      drbd|phy)
         p=$(xenstore_read "$XENBUS_PATH/params")
         drbd_resource=$p
         drbd_role="$(/sbin/drbdadm role $drbd_resource)"

More details here:

http://lists.opensuse.org/archive/opensuse-bugs/2014-02/msg02975.html

After using this patch domU live migration on DRBD started to work for me.
Comment 1 Pacho Ramos gentoo-dev 2016-10-08 13:21:14 UTC
[master 98f526f] sys-cluster/drbd: Fix block-drbd failing to start, bug #518774 by Konstantin.
 2 files changed, 106 insertions(+)
 create mode 100644 sys-cluster/drbd/drbd-8.4.3-r2.ebuild
 create mode 100644 sys-cluster/drbd/files/drbd-8.4.3-block-drbd.patch