Without a group it works fine. But the trick is that I want to combine OCFS2, Filesystem and Apache primitives into a group and that configuration doesn't work. My guess that after adding a group CRM doesn't call OCFS2 RA with a "notify" command and if I'm right it's definitely a bug that needs to be fixed.
On Jan 3, 2008 8:17 AM, Raoul Bhatia [ IPAX ] <[EMAIL PROTECTED]> wrote: > why do you need a group for myOCFS2 inside the clone? > try using a primitive instead: > > <clone id="clone_ocfs2_www" globally_unique="false"> > <instance_attributes id="clone_ocfs2_www_ia"> > <attributes> > <nvpair id="clone_ocfs2_clone_max" name="clone_max" > value="2"/> > <nvpair id="clone_ocfs2_clone_node_max" name="clone_node_max" > value="1"/> > <nvpair id="clone_ocfs2_www_notify" name="notify" > value="true"/> > <nvpair id="clone_ocfs2_www_globally_unique" name="notify" > value="false"/> > <nvpair id="clone_ocfs2_www_role" name="target_role" > value="started"/> > </attributes> > </instance_attributes> > <primitive class="ocf" id="ocfs2_www" provider="heartbeat" > type="Filesystem"> > <operations> > <op id="ocfs2_www_mon" interval="120s" name="monitor" > timeout="60s"/> > </operations> > <instance_attributes id="ocfs2_www_ia"> > <attributes> > <nvpair id="ocfs2_www_attr_0" name="device" > value="/dev/drbd0"/> > <nvpair id="ocfs2_www_attr_1" name="directory" > value="/data/www"/> > <nvpair id="ocfs2_www_attr_2" name="fstype" value="ocfs2"/> > </attributes> > </instance_attributes> > </primitive> > </clone> > > cheers, > raoul > > > On Wed, 2 Jan 2008 14:22:48 -0700, "Serge Dubrouski" <[EMAIL PROTECTED]> > wrote: > > > I'm playing with the following configuration: > > > > <clone id="OCFS2" notify="true"> > > <instance_attributes id="ocfs2_attributes"> > > <attributes> > > <nvpair id="ocfs2_clone_max" name="clone_max" value="2"/> > > <nvpair id="ocfs2_clone_node_max" name="clone_node_max" > > value="1"/> > > </attributes> > > </instance_attributes> > > <group id="myOCFS2_group"> > > <primitive id="child_ocfs2" class="ocf" type="o2cb" > > provider="heartbeat"> > > <operations> > > <op id="ocfs2_monitor" name="monitor" interval="5s" > > timeout="20s" prereq="nothing"/> > > <op id="ocfs2_start" name="start" timeout="20s" > > prereq="nothing"/> > > </operations> > > <instance_attributes id="ocfs2_inst_attr"> > > <attributes> > > <nvpair id="ocfs2_netdev" name="netdev" value="eth1"/> > > <nvpair id="ocfs2_port" name="port" value="7777"/> > > <nvpair id="ocfs2_cluster_name" name="ocfs2_cluster" > > value="ocfs2"/> > > </attributes> > > </instance_attributes> > > </primitive> > > </group> > > </clone> > > > > And I noticed following problem: if I have a group "myOCFS2_group" > > configured OCFS2 RA doesn't get called with "notify" command. If I > > take group off everything works fine. Is it a bug? Documentations for > > clones suggests using groups. > > > > > > -- > > Serge Dubrouski. > > _______________________________________________________ > > Linux-HA-Dev: [email protected] > > http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev > > Home Page: http://linux-ha.org/ > -- > ____________________________________________________________________ > DI (FH) Raoul Bhatia M.Sc. email. [EMAIL PROTECTED] > Technischer Leiter > > IPAX - Aloy Bhatia Hava OEG web. http://www.ipax.at > Barawitzkagasse 10/2/2/11 email. [EMAIL PROTECTED] > 1190 Wien tel. +43 1 3670030 > FN 277995t HG Wien fax. +43 1 3670030 15 > ____________________________________________________________________ > > _______________________________________________________ > Linux-HA-Dev: [email protected] > http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev > Home Page: http://linux-ha.org/ > -- Serge Dubrouski. _______________________________________________________ Linux-HA-Dev: [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/
