block-drbd: type is "phy" for drbd backends
PATCH 1/1 block-drbd: type is "phy" for drbd backends
The type written to xenstore by libxl when attaching a drbd backend is "phy", not "drbd", so handle this case also.
--- scripts/block-drbd | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
scripts/block-drbd +2 -2
@@ -250,7 +250,7 @@ case "$command" in fi case $t in - drbd) + drbd|phy) drbd_resource=$p drbd_role="$(drbdadm role $drbd_resource)" drbd_lrole="${drbd_role%%/*}"
@@ -278,7 +278,7 @@ case "$command" in remove) case $t in - drbd) + drbd|phy) p=$(xenstore_read "$XENBUS_PATH/params") drbd_resource=$p drbd_role="$(drbdadm role $drbd_resource)"
Signature · 7 lines
1.7.7.5 (Apple Git-26) _______________________________________________ Xen-devel mailing list [email protected] http://lists.xen.org/xen-devel
I've realized I haven't Cc'ed the drbd developers lists, so adding it now.
Quoted 23 lines · Roger Pau Monne
The type written to xenstore by libxl when attaching a drbd backend is "phy", not "drbd", so handle this case also.
Signed-off-by Roger Pau Monné <[email protected]>--- scripts/block-drbd | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)scripts/block-drbd +1
-1@@ -250,7 +250,7 @@ case "$command" in fi case $t in - drbd) + drbd|phy) drbd_resource=$p drbd_role="$(drbdadm role $drbd_resource)" drbd_lrole="${drbd_role%%/*}"
scripts/block-drbd case "$command" in · line 284
Quoted 8 lines
scripts/block-drbd +1
-1@@ -278,7 +278,7 @@ case "$command" in remove) case $t in - drbd) + drbd|phy) p=$(xenstore_read "$XENBUS_PATH/params") drbd_resource=$p drbd_role="$(drbdadm role $drbd_resource)"
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Lars Ellenberg
maintainerQuoted 2 lines · Roger Pau Monné
I've realized I haven't Cc'ed the drbd developers lists, so adding it now.
We do read the user's list just as well.
Our -dev is actually mainly intended for "coordination".
Quoted 3 lines · Roger Pau Monne
Quoted 2 lines
The type written to xenstore by libxl when attaching a drbd backend is "phy", not "drbd", so handle this case also.
If you say so; you should know ;-)
Did this change at some point?
I personally have not used this script in a long while...
Do you ("citrix") have this in some regression/integration testing yourself?
Quoted 27 lines
Quoted 27 lines
Signed-off-by Roger Pau Monné <[email protected]>--- scripts/block-drbd | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)scripts/block-drbd +2
-2@@ -250,7 +250,7 @@ case "$command" in fi case $t in - drbd) + drbd|phy) drbd_resource=$p drbd_role="$(drbdadm role $drbd_resource)" drbd_lrole="${drbd_role%%/*}"@@ -278,7 +278,7 @@ case "$command" in remove) case $t in - drbd) + drbd|phy) p=$(xenstore_read "$XENBUS_PATH/params") drbd_resource=$p drbd_role="$(drbdadm role $drbd_resource)"
Signature · 7 lines
: Lars Ellenberg : LINBIT | Your Way to High Availability : DRBD/HA support and consulting http://www.linbit.com DRBD® and LINBIT® are registered trademarks of LINBIT, Austria. __ please don't Cc me, but send to list -- I'm subscribed
Lars Ellenberg
maintainerQuoted 2 lines · Roger Pau Monné
I've realized I haven't Cc'ed the drbd developers lists, so adding it now.
We do read the user's list just as well.
Our -dev is actually mainly intended for "coordination".
Quoted 3 lines · Roger Pau Monne
Quoted 2 lines
The type written to xenstore by libxl when attaching a drbd backend is "phy", not "drbd", so handle this case also.
If you say so; you should know ;-)
Did this change at some point?
I personally have not used this script in a long while...
Do you ("citrix") have this in some regression/integration testing yourself?
Quoted 27 lines
Quoted 27 lines
Signed-off-by Roger Pau Monné <[email protected]>--- scripts/block-drbd | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)scripts/block-drbd +2
-2@@ -250,7 +250,7 @@ case "$command" in fi case $t in - drbd) + drbd|phy) drbd_resource=$p drbd_role="$(drbdadm role $drbd_resource)" drbd_lrole="${drbd_role%%/*}"@@ -278,7 +278,7 @@ case "$command" in remove) case $t in - drbd) + drbd|phy) p=$(xenstore_read "$XENBUS_PATH/params") drbd_resource=$p drbd_role="$(drbdadm role $drbd_resource)"
Signature · 7 lines
: Lars Ellenberg : LINBIT | Your Way to High Availability : DRBD/HA support and consulting http://www.linbit.com DRBD® and LINBIT® are registered trademarks of LINBIT, Austria. __ please don't Cc me, but send to list -- I'm subscribed
Quoted 7 lines · Lars Ellenberg
Quoted 2 lines · Roger Pau Monné
I've realized I haven't Cc'ed the drbd developers lists, so adding it now.
We do read the user's list just as well.
Our -dev is actually mainly intended for "coordination".
Quoted 6 lines
Quoted 3 lines · Roger Pau Monne
Quoted 2 lines
The type written to xenstore by libxl when attaching a drbd backend is "phy", not "drbd", so handle this case also.
If you say so; you should know ;-)
Did this change at some point?
I'm sure libxl (the new Xen toolstack) uses "phy" and not "drbd" as type. Probably the old xend toolstack was setting type to "drbd", and that's why the script checked for drbd.
IMHO, setting the type to phy is the right thing to do, since drbd ends up presenting a block device which is handled by blkback.
Quoted 4 lines
I personally have not used this script in a long while...
Do you ("citrix") have this in some
regression/integration testing yourself?
Not in Xen OSS Test suite [0], although I have no idea if other products based on Xen perform any kind of tests with drbd.
Ping?
Quoted 37 lines · Roger Pau Monné
Quoted 7 lines · Lars Ellenberg
Quoted 2 lines · Roger Pau Monné
I've realized I haven't Cc'ed the drbd developers lists, so adding it now.
We do read the user's list just as well.
Our -dev is actually mainly intended for "coordination".Quoted 6 lines
Quoted 3 lines · Roger Pau Monne
Quoted 2 lines
The type written to xenstore by libxl when attaching a drbd backend is "phy", not "drbd", so handle this case also.
If you say so; you should know ;-)
Did this change at some point?I'm sure libxl (the new Xen toolstack) uses "phy" and not "drbd" as type. Probably the old xend toolstack was setting type to "drbd", and that's why the script checked for drbd.
IMHO, setting the type to phy is the right thing to do, since drbd ends up presenting a block device which is handled by blkback.
Quoted 4 lines
I personally have not used this script in a long while...
Do you ("citrix") have this in some
regression/integration testing yourself?Not in Xen OSS Test suite [0], although I have no idea if other products based on Xen perform any kind of tests with drbd.
[0] http://xenbits.xen.org/gitweb/?p=osstest.git;a=summary
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Lars Ellenberg
maintainerQuoted 1 line · Roger Pau Monné
Ping?
Has been committed to our internal repositories,
will find its way to the public git and
into the tarballs and packages "soon".
Quoted 33 lines · Roger Pau Monné
Quoted 31 lines · Lars Ellenberg
Quoted 7 lines · Roger Pau Monné
Quoted 2 lines
I've realized I haven't Cc'ed the drbd developers lists, so adding it now.
We do read the user's list just as well.
Our -dev is actually mainly intended for "coordination".Quoted 6 lines
Quoted 3 lines · Roger Pau Monne
Quoted 2 lines
The type written to xenstore by libxl when attaching a drbd backend is "phy", not "drbd", so handle this case also.
If you say so; you should know ;-)
Did this change at some point?I'm sure libxl (the new Xen toolstack) uses "phy" and not "drbd" as type. Probably the old xend toolstack was setting type to "drbd", and that's why the script checked for drbd.
IMHO, setting the type to phy is the right thing to do, since drbd ends up presenting a block device which is handled by blkback.
Quoted 4 lines
I personally have not used this script in a long while...
Do you ("citrix") have this in some
regression/integration testing yourself?Not in Xen OSS Test suite [0], although I have no idea if other products based on Xen perform any kind of tests with drbd.
Signature · 7 lines
: Lars Ellenberg : LINBIT | Your Way to High Availability : DRBD/HA support and consulting http://www.linbit.com DRBD® and LINBIT® are registered trademarks of LINBIT, Austria. __ please don't Cc me, but send to list -- I'm subscribed
Lars Ellenberg
maintainerQuoted 1 line · Roger Pau Monné
Ping?
Has been committed to our internal repositories,
will find its way to the public git and
into the tarballs and packages "soon".
Quoted 33 lines · Roger Pau Monné
Quoted 31 lines · Lars Ellenberg
Quoted 7 lines · Roger Pau Monné
Quoted 2 lines
I've realized I haven't Cc'ed the drbd developers lists, so adding it now.
We do read the user's list just as well.
Our -dev is actually mainly intended for "coordination".Quoted 6 lines
Quoted 3 lines · Roger Pau Monne
Quoted 2 lines
The type written to xenstore by libxl when attaching a drbd backend is "phy", not "drbd", so handle this case also.
If you say so; you should know ;-)
Did this change at some point?I'm sure libxl (the new Xen toolstack) uses "phy" and not "drbd" as type. Probably the old xend toolstack was setting type to "drbd", and that's why the script checked for drbd.
IMHO, setting the type to phy is the right thing to do, since drbd ends up presenting a block device which is handled by blkback.
Quoted 4 lines
I personally have not used this script in a long while...
Do you ("citrix") have this in some
regression/integration testing yourself?Not in Xen OSS Test suite [0], although I have no idea if other products based on Xen perform any kind of tests with drbd.
Signature · 7 lines
: Lars Ellenberg : LINBIT | Your Way to High Availability : DRBD/HA support and consulting http://www.linbit.com DRBD® and LINBIT® are registered trademarks of LINBIT, Austria. __ please don't Cc me, but send to list -- I'm subscribed
Quoted 6 lines · Lars Ellenberg
Quoted 1 line · Roger Pau Monné
Ping?
Has been committed to our internal repositories,
will find its way to the public git and
into the tarballs and packages "soon".
Thanks, Roger.
Quoted 6 lines · Lars Ellenberg
Quoted 1 line · Roger Pau Monné
Ping?
Has been committed to our internal repositories,
will find its way to the public git and
into the tarballs and packages "soon".
Thanks, Roger.