Skip to contentSkip to conversation

rgmanager: Add resource agent for DRBD

PATCH In review Florian Haas 3 participants 4 messages Jul 2, 2009 – Jul 9, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rgmanager: Add resource agent for DRBD

DRBD (www.drbd.org) is a shared-nothing synchronous storage replication capable of acting as a drop-in replacement for shared storage.

This resource agent manages a DRBD device by switching it into the Primary and Secondary roles as needed.

For a configuration example, please see
http://www.drbd.org/users-guide/s-rhcs-failover-clusters.html

---
 rgmanager/src/resources/Makefile.am   |    4 +-
 rgmanager/src/resources/drbd.metadata |   51 ++++++++++++
 rgmanager/src/resources/drbd.sh       |  144 +++++++++++++++++++++++++++++++++
 3 files changed, 197 insertions(+), 2 deletions(-)
 create mode 100644 rgmanager/src/resources/drbd.metadata
 create mode 100644 rgmanager/src/resources/drbd.sh
rgmanager/src/resources/Makefile.am +2 -2
index ebeb61e..ede5a74 100644
@@ -9,11 +9,11 @@ RESOURCES		= service.sh ip.sh nfsclient.sh nfsexport.sh \
 			  apache.sh openldap.sh samba.sh mysql.sh \
 			  postgres-8.sh tomcat-5.sh lvm.sh \
 			  vm.sh SAPInstance SAPDatabase named.sh \
-			  ASEHAagent.sh
+			  ASEHAagent.sh drbd.sh
 
 METADATA		= apache.metadata openldap.metadata samba.metadata \
 			  mysql.metadata postgres-8.metadata \
-			  tomcat-5.metadata named.metadata lvm.metadata
+			  tomcat-5.metadata named.metadata lvm.metadata drbd.sh
 
 EVENT_TARGETS		= default_event_script.sl follow-service.sl
 
rgmanager/src/resources/drbd.metadata new file +51 -0

51 lines not on this page · raw message

rgmanager/src/resources/drbd.sh new file +144 -0

144 lines not on this page · raw message

Signature · 1 line
1.6.0.4
#1 lore raw

Hello everyone,

a bit of additional information about this patch: we've shipped this rgmanager resource agent in DRBD for a while. It's been deployed on a number of RHEL 5 clusters and people seem to be happy with it. However, since it's not integrated into system-config-cluster or Conga, the user experience is less than smooth. We've refrained from delivering system-config-cluster or Conga integration, since we would have to patch Red Hat maintained code in-place to be able to add that functionality, and that would obviously be a braindead thing to do.

So as discussed with Lon, I'm submitting this for possible inclusion in rgmanager. Since cman/rgmanager appear to be hanging around for a while, as you are moving to Pacemaker (which has had a DRBD resource agent since the Heartbeat days), and in the hope of facilitating integration with the management tools.

I realize you guys are currently in stabilization mode for 3.0.0, so feel free to defer the inclusion until later, but I didn't want to hold out with the submission any longer -- we already did for way too long. :)

I'm of course grateful for any comments, questions, and feedback about this patch.

Cheers,
Florian

#2 lore raw
Quoted 10 lines · Florian Haas

Hello everyone,

a bit of additional information about this patch: we've shipped this rgmanager resource agent in DRBD for a while. It's been deployed on a number of RHEL 5 clusters and people seem to be happy with it. However, since it's not integrated into system-config-cluster or Conga, the user experience is less than smooth. We've refrained from delivering system-config-cluster or Conga integration, since we would have to patch Red Hat maintained code in-place to be able to add that functionality, and that would obviously be a braindead thing to do.

Adding Jim and Ryan in CC for conga/s-c-c.

Quoted 6 lines

So as discussed with Lon, I'm submitting this for possible inclusion in rgmanager. Since cman/rgmanager appear to be hanging around for a while, as you are moving to Pacemaker (which has had a DRBD resource agent since the Heartbeat days), and in the hope of facilitating integration with the management tools.

thanks! I'll defer the review to lon but it's nice to see things being integrated etc.

Quoted 5 lines

I realize you guys are currently in stabilization mode for 3.0.0, so feel free to defer the inclusion until later, but I didn't want to hold out with the submission any longer -- we already did for way too long. :)

If it can't make 3.0.0 it can probably going right after. I don't see a major blocker with that.

Fabio