<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:Mangal;
panose-1:2 4 5 3 5 2 3 3 2 2;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>Hi,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I am facing problem with configuring stonith on REDHAT6 on my virtual workstation.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I am trying to configure stonith using fence_ack_manual for my vmware workstation as there is no hardware fencing device.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Can anyone please help me in testing stonith configuration with fence_ack_manual, that will be gr8 for me….<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Following are the errors –<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><b><span style='font-size:9.0pt'>=======================================================================================================<br>[root@node1 ~]# crm ra info fence_ack_manual<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#C00000'>lrmadmin[12247]: 2011/10/04_15:31:53 ERROR: lrm_get_rsc_type_metadata(578): got a return code HA_FAIL from a reply message of rmetadata with function get_ret_from_msg.<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#C00000'>ERROR: ocf:heartbeat:fence_ack_manual: could not parse meta-data:<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#C00000'>[root@node1 ~]#<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt'><o:p> </o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt'>---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt'>[root@node1 ~]# crm ra info stonith:fence_ack_manual<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#00B050'>stonith:fence_ack_manual<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#00B050'><o:p> </o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#00B050'><!-- no value --><o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#00B050'><o:p> </o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#00B050'>Parameters (* denotes required, [] the default):<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#00B050'><o:p> </o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#00B050'>action (string, [reboot]): Fencing action (null, off, on, [reboot], status, hostlist, devstatus)<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#00B050'>stonith-timeout (time, [60s]): How long to wait for the STONITH action to complete.<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#00B050'> Overrides the stonith-timeout cluster property<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#00B050'><o:p> </o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#00B050'>priority (integer, [0]): The priority of the stonith resource. The lower the number, the higher the priority.<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#00B050'>pcmk_arg_map (string): A mapping of host attributes to device arguments.<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#00B050'> Eg. uname:domain would tell the cluster to pass the machines name as the domain argument to the device. Useful for devices that have non-standard interfaces<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#00B050'><o:p> </o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#00B050'>pcmk_host_map (string): A mapping of host names to ports numbers for devices that do not support names.<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#00B050'> Eg. node1:1,node2:3 would tell the cluster to use port 1 for node1 and port 3 for node2<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#00B050'><o:p> </o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#00B050'>pcmk_host_list (string): A list of machines controlled by this device (Optional unless pcmk_host_check=static-list).<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#00B050'>pcmk_host_check (string, [dynamic-list]): How to determin which machines are controlled by the device.<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#00B050'> Allowed values: dynamic-list (query the device), static-list (check the pcmk_host_list attribute), none (assume every device can fence every machine)<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#00B050'><o:p> </o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#00B050'>pcmk_list_cmd (string, [list]): Which device operation to use for listing machines controlled by the device.<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#00B050'>pcmk_status_cmd (string, [status]): Which device operation to use for testing the state of a machine controlled by the device.<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#00B050'>pcmk_monitor_cmd (string, [monitor]): Which device operation to use for monitoring the health of the device.<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#00B050'><o:p> </o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#00B050'>Operations' defaults (advisory minimum):<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#00B050'><o:p> </o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#00B050'> start timeout=15<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#00B050'> stop timeout=15<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#00B050'> status timeout=15<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#00B050'> monitor_0 interval=15 timeout=15 start-delay=15<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#00B050'>[root@node1 ~]#<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt'>---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt'><o:p> </o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt'>---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt'><o:p> </o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt'><br>[root@node1 ~]# stonith_admin --metadata --agent type<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#C00000'>stonith_admin[11852]: 2011/10/04_15:30:35 info: crm_log_init_worker: Changed active directory to /var/lib/heartbeat/cores/root<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#C00000'>stonith_admin[11852]: 2011/10/04_15:30:35 ERROR: get_stonith_provider: No such device: type<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#C00000'>stonith_admin[11852]: 2011/10/04_15:30:35 info: stonith_api_device_metadata: looking up type/(null) metadata<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#C00000'>stonith_admin[11852]: 2011/10/04_15:30:35 ERROR: crm_abort: crm_strdup_fn: Triggered assert at utils.c:822 : src != NULL<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#C00000'>stonith_admin[11852]: 2011/10/04_15:30:35 ERROR: crm_strdup_fn: Could not perform copy at st_client.c:507 (stonith_api_device_metadata)<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#C00000'>stonith_admin[11852]: 2011/10/04_15:30:35 WARN: stonith_api_device_metadata: no long description in type's metadata.<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#C00000'>stonith_admin[11852]: 2011/10/04_15:30:35 ERROR: crm_abort: crm_strdup_fn: Triggered assert at utils.c:822 : src != NULL<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#C00000'>stonith_admin[11852]: 2011/10/04_15:30:35 ERROR: crm_strdup_fn: Could not perform copy at st_client.c:513 (stonith_api_device_metadata)<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#C00000'>stonith_admin[11852]: 2011/10/04_15:30:35 info: stonith_api_device_metadata: short description: (null)<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#C00000'>stonith_admin[11852]: 2011/10/04_15:30:35 WARN: stonith_api_device_metadata: no short description in type's metadata.<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#C00000'>stonith_admin[11852]: 2011/10/04_15:30:35 ERROR: crm_abort: crm_strdup_fn: Triggered assert at utils.c:822 : src != NULL<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#C00000'>stonith_admin[11852]: 2011/10/04_15:30:35 ERROR: crm_strdup_fn: Could not perform copy at st_client.c:520 (stonith_api_device_metadata)<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#C00000'>stonith_admin[11852]: 2011/10/04_15:30:35 WARN: stonith_api_device_metadata: no list of parameters in type's metadata.<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#C00000'><?xml version="1.0"?><o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#C00000'><!DOCTYPE resource-agent SYSTEM "ra-api-1.dtd"><o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#C00000'><resource-agent name="type"><o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#C00000'> <version>1.0</version><o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#C00000'> <longdesc lang="en"><o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#C00000'><!-- no value --><o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#C00000'> </longdesc><o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#C00000'> <shortdesc lang="en"><!-- no value --></shortdesc><o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#C00000'><!-- no value --><o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#C00000'> <actions><o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#C00000'> <action name="start" timeout="15" /><o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#C00000'> <action name="stop" timeout="15" /><o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#C00000'> <action name="status" timeout="15" /><o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#C00000'> <action name="monitor" timeout="15" interval="15" start-delay="15" /><o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#C00000'> <action name="meta-data" timeout="15" /><o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#C00000'> </actions><o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#C00000'> <special tag="heartbeat"><o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#C00000'> <version>2.0</version><o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#C00000'> </special><o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#C00000'></resource-agent><o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt'> [root@node1 ~]#<br>---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt'><br>[root@node1 ~]# stonith_admin -t ssh -n<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#C00000'>stonith_admin[11980]: 2011/10/04_15:31:00 info: crm_log_init_worker: Changed active directory to /var/lib/heartbeat/cores/root<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#C00000'>stonith_admin: invalid option -- 't'<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#C00000'>stonith_admin - Provides access to the stonith-ng API.<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#C00000'><o:p> </o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#C00000'>Usage: stonith_admin mode [options]<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#C00000'>Options:<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#C00000'> -?, --help This text<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#C00000'> -$, --version Version information<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#C00000'> -V, --verbose Increase debug output<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#C00000'> -l, --list=value List devices that can terminate the specified host<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#C00000'> -L, --list-all List all registered devices<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#C00000'> -M, --metadata Check the device's metadata<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#C00000'> -Q, --query=value Check the device's status<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#C00000'> -F, --fence=value Fence the named host<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#C00000'> -U, --unfence=value Unfence the named host<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#C00000'> -C, --confirm=value Confirm the named host is now safely down<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#C00000'> -R, --register=value Register a stonith device<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#C00000'> -D, --deregister=value De-register a stonith device<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#C00000'> -e, --env-option=value<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#C00000'> -o, --option=value<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#C00000'> -a, --agent=value<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#C00000'><o:p> </o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#C00000'>Report bugs to pacemaker@oss.clusterlabs.org<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt'>---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------<o:p></o:p></span></b></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Regards,<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal style='text-align:justify;line-height:13.0pt'><b><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";color:black'>Sagar Shimpi</span></b><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";color:black'>, </span><b><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#403152'>Senior Technical Specialist</span></b><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";color:black'>, </span><b><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#403152'>OSS Labs</span></b><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";color:black'><o:p></o:p></span></p><p class=MsoNormal style='line-height:13.0pt'><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";color:black'><o:p> </o:p></span></p><p class=MsoNormal style='line-height:13.0pt'><b><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";color:black'>Tieto<o:p></o:p></span></b></p><p class=MsoNormal style='line-height:13.0pt'><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";color:black'>email <a href="mailto:aniruddha.khadkikar@tieto.com"><span style='color:blue'>sagar.shimpi@tieto.com</span></a>,<o:p></o:p></span></p><p class=MsoNormal style='line-height:13.0pt'><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";color:black'>Wing 1, Cluster D, EON Free Zone, Plot No. 1, Survery # 77, <o:p></o:p></span></p><p class=MsoNormal style='line-height:13.0pt'><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";color:black'>MIDC Kharadi Knowledge Park, Pune 411014, India, <a href="www.tieto.com"><span style='color:blue'>www.tieto.com</span></a> <a href="www.tieto.in"><span style='color:blue'>www.tieto.in</span></a> <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;color:black'><br></span><b><span style='font-size:10.0pt;color:#C00000'>TIETO.</span></b><b><span style='font-size:10.0pt;color:#1F497D'> </span></b><b><span style='font-size:10.0pt;color:#E36C0A'>Knowledge.</span></b><b><span style='font-size:10.0pt;color:#1F497D'> </span></b><b><span style='font-size:10.0pt;color:#9BBB59'>Passion.</span></b><b><span style='font-size:10.0pt;color:#1F497D'> </span></b><b><span style='font-size:10.0pt;color:#365F91'>Results.</span></b><b><span style='font-size:10.0pt;color:#1F497D'><o:p></o:p></span></b></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>