Skip to contentSkip to conversation

block-drbd: type is "phy" for drbd backends

PATCH In review Roger Pau Monne 2 participants 10 messages Feb 20, 2014 – Apr 7, 2014 DRBD driver

lore
Share & tools
lore
#0 lore raw

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
index 5563ccb..975802b 100755
@@ -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
#1 lore raw

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.

---
 scripts/block-drbd |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
scripts/block-drbd +1 -1
index 5563ccb..975802b 100755
@@ -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

maintainer
#2 lore raw
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 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
---
 scripts/block-drbd |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
scripts/block-drbd +2 -2
index 5563ccb..975802b 100755
@@ -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
#3 lore raw
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

#4 lore raw

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

maintainer
#5 lore raw
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".

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.

[0] http://xenbits.xen.org/gitweb/?p=osstest.git;a=summary

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
#6 lore raw
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.

#7 lore raw
In reply to Lars Ellenberg
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.

maintainer
#8 lore raw
In reply to Roger Pau Monné
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".

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.

[0] http://xenbits.xen.org/gitweb/?p=osstest.git;a=summary

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
maintainer
#9 lore raw
In reply to Roger Pau Monné
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 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
---
 scripts/block-drbd |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
scripts/block-drbd +2 -2
index 5563ccb..975802b 100755
@@ -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