Hey everybody, im trying to setup a HA cluster with:
drbd 0.8 activ/activ ocfs2 heartbeat v2 I finally reached the point where I can concurrently write into a file on my ocfs2 partition shared via drbd. All good so fare but now I want to enable heartbeat: It took me quite some time to figure out that, heartbeat v2 is needed in order to use a activ/active drbd setup. I used the hb_gui and created a cloned drbddisk object, a cloned o2cb object and a filesystem object for ocfs2. All 3 objects have the parameter: clone_max = 2 clone_node_max = 1 Ok drbd is started by heartbeat (I haven't found a way to tell heartbeat that my drbd is supposed to be activ/activ). Next ocfs2 starts up and mounts configfs and all that stuff ... but when I try to "mount" ocfs2 via the heartbeat gui the icon is marked as unmanaged. I guess that is because the ocfs2 from vanilla kernel (2.21.3) has no support for a userspace heartbeat. :-( Here [http://oss.oracle.com/pipermail/ocfs2-devel/2006-February/000857.html] I found the patches for the ocfs2 userspace support, _but_ the patches are for 2.6.15 and where submitted 2006-February. So the only way I currently see to get a setup like mine working is with SLE10 which comes with buildin support for userspace heartbeat ocfs2 modules ... My question is because where seem to be quite some people using drbd/ocfs2 with heartbeat how did you guys configured heartbeat what am I missing???? Or do I have to follow this: http://www.mail-archive.com/[email protected]/msg02586.html recommendation? thanks and bye Flip ------------------- cat /var/lib/heartbeat/crm/cib.xml <cib generated="true" admin_epoch="0" epoch="2" num_updates="1078" have_quorum="true" ignore_dtd="false" ccm_transition="2" num_peers="2" cib_feature_revision="1.3" dc_uuid="bf0199a9-2613-4a9d-8bd2-e33e21d97415" cib-last-written="Mon Aug 6 15:33:48 2007"> <configuration> <crm_config> <cluster_property_set id="cib-bootstrap-options"> <attributes> <nvpair id="cib-bootstrap-options-last-lrm-refresh" name="last-lrm-refresh" value="1186407223"/> </attributes> </cluster_property_set> </crm_config> <nodes> <node id="bf0199a9-2613-4a9d-8bd2-e33e21d97415" uname="mockba" type="normal"/> <node id="142c7abb-0c2b-47b2-82a2-0c3561abb86c" uname="struppi" type="normal"/> </nodes> <resources> <clone id="drbd"> <instance_attributes id="drbd_instance_attrs"> <attributes> <nvpair id="drbd_clone_max" name="clone_max" value="2"/> <nvpair id="drbd_clone_node_max" name="clone_node_max" value="1"/> <nvpair id="drbd_target_role" name="target_role" value="started"/> </attributes> </instance_attributes> <primitive id="resource_drbd" class="heartbeat" type="drbddisk" provider="heartbeat"> <instance_attributes id="resource_drbd_instance_attrs"> <attributes> <nvpair id="resource_drbd_target_role" name="target_role" value="started"/> </attributes> </instance_attributes> <operations> <op id="8b519acd-ec20-4461-beb1-6e46008b1405" name="start" timeout="15" role="Master" prereq="fencing" on_fail="restart"/> </operations> </primitive> </clone> <clone id="o2cb"> <instance_attributes id="o2cb_instance_attrs"> <attributes> <nvpair id="o2cb_clone_max" name="clone_max" value="2"/> <nvpair id="o2cb_clone_node_max" name="clone_node_max" value="1"/> </attributes> </instance_attributes> <primitive id="resource_o2cb" class="lsb" type="o2cb" provider="heartbeat"> <instance_attributes id="resource_o2cb_instance_attrs"> <attributes> <nvpair id="resource_o2cb_target_role" name="target_role" value="started"/> </attributes> </instance_attributes> </primitive> </clone> <clone id="ocfs2" globally_unique="false" notify="true"> <instance_attributes id="ocfs2_instance_attrs"> <attributes> <nvpair id="ocfs2_clone_max" name="clone_max" value="2"/> <nvpair id="ocfs2_clone_node_max" name="clone_node_max" value="1"/> <nvpair id="ocfs2_target_role" name="target_role" value="started"/> </attributes> </instance_attributes> <primitive id="resource_ocfs2" class="ocf" type="Filesystem" provider="heartbeat"> <instance_attributes id="resource_ocfs2_instance_attrs"> <attributes> <nvpair id="resource_ocfs2_target_role" name="target_role" value="stopped"/> <nvpair id="dd5c33be-5e30-4e32-89f4-bf4cb2b65ecb" name="fstype" value="ocfs2"/> <nvpair id="be8d85af-1dcb-4b2c-8cca-f73adc6773cd" name="device" value="/dev/drbd0"/> <nvpair id="d7d20acc-3a4a-4b71-a01e-0b1202a13441" name="directory" value="/mnt/drbd-0"/> <nvpair id="491e0464-806e-4a0a-a6ae-4387f89a480b" name="ocfs2_cluster" value="drvb-test-cluster"/> <nvpair id="73e9a944-872c-4019-bef0-6037454ffdbe" name="ocfs2_configfs" value="/sys/kernel/config"/> </attributes> </instance_attributes> </primitive> </clone> </resources> <constraints/> </configuration> </cib> ---------------- _______________________________________________________________________ Jetzt neu! Schützen Sie Ihren PC mit McAfee und WEB.DE. 3 Monate kostenlos testen. http://www.pc-sicherheit.web.de/startseite/?mc=022220 _______________________________________________ Linux-HA mailing list [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
