It should not since xen0 isn't an OCF RA but Stonith external plugin. On Wed, Mar 18, 2009 at 9:50 AM, Dejan Muhamedagic <deja...@fastmail.fm> wrote: > Hi Junko-san, > > I looked at your patch, but shouldn't the dump_dir attribute be > referenced as $OCF_RESKEY... ? > > Thanks, > > Dejan > > On Mon, Mar 16, 2009 at 07:22:02PM +0900, Junko IKEDA wrote: >> Hi, >> >> I run the new xen0 on domU now, >> and need an additional feature for a dump destination. >> >> I have RHEL5.2 x86_64 and xen 3.1. >> This would dump the core file into "/var/lib/xen/dump" as default. >> >> Ex.) >> # ls -lh /var/lib/xen/dump/ >> -rw------- 1 root root 1.1G 3?$B7n 16 15:21 2009-0316-1520.59-dom-d2.11.core >> -rw------- 1 root root 1.1G 3?$B7n 16 15:21 2009-0316-1521.42-dom-d2.12.core >> -rw------- 1 root root 1.1G 3?$B7n 16 15:42 2009-0316-1542.23-dom-d2.13.core >> -rw------- 1 root root 1.1G 3?$B7n 16 15:43 2009-0316-1543.07-dom-d2.14.core >> >> It might be helpful if we can specify the dump destination from cib.xml. >> Ex.) >> # grep dump_dir cib.xml >> <nvpair id="dump_dir-01" name="dump_dir" value="/var/log/dump"/> >> <nvpair id="dump_dir-02" name="dump_dir" value="/var/log/dump"/> >> >> # ls -lh /var/log/dump >> -rw------- 1 root root 1.1G 3?$B7n 16 18:51 2009-0316-1851.02-dom-d2.core >> -rw------- 1 root root 1.1G 3?$B7n 16 18:51 2009-0316-1851.43-dom-d2.core >> >> Please see the attached. >> NOTICE:attached cib.xml is for Heartbeat 2.1.4. >> It won't work with Pacemaker. >> >> Best Regards, >> Junko Ikeda >> >> NTT DATA INTELLILINK CORPORATION > > >> <cib admin_epoch="0" epoch="0" num_updates="0"> >> <configuration> >> <crm_config> >> <cluster_property_set id="cib-bootstrap-options"> >> <attributes> >> <nvpair id="cib-bootstrap-options-no-quorum-policy" >> name="no-quorum-policy" value="ignore"/> >> <nvpair id="cib-bootstrap-options-stonith-enabled" >> name="stonith-enabled" value="true"/> >> <nvpair id="cib-bootstrap-options-default-resource-stickiness" >> name="default-resource-stickiness" value="INFINITY"/> >> <nvpair >> id="cib-bootstrap-options-default-resource-failure-stickiness" >> name="default-resource-failure-stickiness" value="-INFINITY"/> >> <nvpair id="cib-bootstrap-options-default-action-timeout" >> name="default-action-timeout" value="120"/> >> <nvpair id="cib-bootstrap-options-startup-fencing" >> name="startup-fencing" value="true"/> >> </attributes> >> </cluster_property_set> >> </crm_config> >> <nodes/> >> <resources> >> <group id="grpDummy"> >> <primitive id="dummy" class="ocf" type="Dummy.stopNG" >> provider="heartbeat"> >> <operations> >> <op id="dummy-start" name="start" timeout="30s" >> on_fail="restart"/> >> <op id="dummy-monitor" name="monitor" timeout="30s" >> on_fail="restart" interval="10s"/> >> <op id="dummy-stop" name="stop" timeout="30s" >> on_fail="fence"/> >> </operations> >> </primitive> >> </group> >> <primitive id="child_DoFencing01" class="stonith" >> type="external/xen0" provider="heartbeat"> >> <operations> >> <op id="fence_start01" name="start" timeout="30s" >> on_fail="restart"/> >> <op id="fence_monitor01" name="monitor" timeout="30s" >> on_fail="restart" interval="10s"/> >> <op id="fence_stop01" name="stop" timeout="30s" >> on_fail="block"/> >> </operations> >> <instance_attributes id="fence_inst_attr01"> >> <attributes> >> <nvpair id="dom01" name="dom0" value="x3650g"/> >> <nvpair id="hostlist-01" name="hostlist" >> value="dom-d1:/etc/xen/dom-d1"/> >> <nvpair id="run_dump-01" name="run_dump" value="yes"/> >> <nvpair id="dump_dir-01" name="dump_dir" value="/var/log/dump"/> >> </attributes> >> </instance_attributes> >> </primitive> >> <primitive id="child_DoFencing02" class="stonith" >> type="external/xen0" provider="heartbeat"> >> <operations> >> <op id="fence_start02" name="start" timeout="30s" >> on_fail="restart"/> >> <op id="fence_monitor02" name="monitor" timeout="30s" >> on_fail="restart" interval="10s"/> >> <op id="fence_stop02" name="stop" timeout="30s" >> on_fail="block"/> >> </operations> >> <instance_attributes id="fence_inst_attr02"> >> <attributes> >> <nvpair id="dom02" name="dom0" value="x3650h"/> >> <nvpair id="hostlist02" name="hostlist" >> value="dom-d2:/etc/xen/dom-d2"/> >> <nvpair id="run_dump-02" name="run_dump" value="yes"/> >> <nvpair id="dump_dir-02" name="dump_dir" value="/var/log/dump"/> >> </attributes> >> </instance_attributes> >> </primitive> >> </resources> >> <constraints> >> <rsc_location id="grpDummy-loc01" rsc="grpDummy"> >> <rule id="grpDummy-node1" score="200"> >> <expression attribute="#uname" id="grpDummy-node1" operation="eq" >> value="dom-d2"/> >> </rule> >> <rule id="grpDummy-node2" score="100"> >> <expression attribute="#uname" id="grpDummy-node2" operation="eq" >> value="dom-d1"/> >> </rule> >> </rsc_location> >> <rsc_location id="prmStonith-loc01" rsc="child_DoFencing01"> >> <rule id="prmStonith-node11" score="INFINITY"> >> <expression attribute="#uname" id="prmStonith-node1-exp11" >> operation="eq" value="dom-d2"/> >> </rule> >> <rule id="prmStonith-node12" score="-INFINITY"> >> <expression attribute="#uname" id="prmStonith-node1-exp12" >> operation="eq" value="dom-d1"/> >> </rule> >> </rsc_location> >> <rsc_location id="prmStonith-loc02" rsc="child_DoFencing02"> >> <rule id="prmStonith-node21" score="INFINITY"> >> <expression attribute="#uname" id="prmStonith-node1-exp21" >> operation="eq" value="dom-d1"/> >> </rule> >> <rule id="prmStonith-node22" score="-INFINITY"> >> <expression attribute="#uname" id="prmStonith-node1-exp22" >> operation="eq" value="dom-d2"/> >> </rule> >> </rsc_location> >> </constraints> >> </configuration> >> <status/> >> </cib> >> > >> _______________________________________________________ >> Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org >> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev >> Home Page: http://linux-ha.org/ > > _______________________________________________________ > Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org > http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev > Home Page: http://linux-ha.org/ >
-- Serge Dubrouski. _______________________________________________________ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/