<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Fenceing in RHEL6 in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/fenceing-in-rhel6/m-p/5797269#M53885</link>
    <description>&lt;PRE&gt;&amp;lt;fencedevices&amp;gt;
                &amp;lt;fencedevice agent="fence_ipmilan" auth="password" ipaddr="192.168.25.18" lanplus="on" login="hpadmin" name="HPiloFence1" passwd="hpinvent"/&amp;gt;
                &amp;lt;fencedevice agent="fence_ipmilan" auth="password" ipaddr="192.168.25.26" lanplus="on" login="hpadmin" name="HPiloFence2" passwd="hpinvent"/&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;[root@PDC-PIC-PL-01 cluster]# fence_ipmilan -a 192.168.25.18 -l hpadmin -p hpinvent -o status
Getting status of IPMI:192.168.25.18...Chassis power = Unknown
Failed&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think it is not contacting my ilo. how to contact hp ilo from the OS?&lt;/P&gt;&lt;P&gt;My OA IP is 192.168.25.11 where as the ilo device bay for servers addreses are : .25.18 and .25.26, login to OA are same which i include during device adding, but i don't know what is missing here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am editing from GUI, but when i try to manually edit cluster.conf then there are lots of error and i need to reboot both the nodes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 08 Sep 2012 00:35:45 GMT</pubDate>
    <dc:creator>rhel6_cluster</dc:creator>
    <dc:date>2012-09-08T00:35:45Z</dc:date>
    <item>
      <title>Fenceing in RHEL6</title>
      <link>https://community.hpe.com/t5/operating-system-linux/fenceing-in-rhel6/m-p/5794233#M53872</link>
      <description>&lt;P&gt;Hi..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My server is BL460 G7, with iLO 3&amp;nbsp; and i use IPMI LAN as fencing device. I have added fencing method on both the nodes and the status shows that both the nodes are using fencing device.&lt;/P&gt;&lt;P&gt;But i am not sure how to test this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you help me how to configure it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Sep 2012 07:41:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/fenceing-in-rhel6/m-p/5794233#M53872</guid>
      <dc:creator>rhel6_cluster</dc:creator>
      <dc:date>2012-09-05T07:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: Fenceing in RHEL6</title>
      <link>https://community.hpe.com/t5/operating-system-linux/fenceing-in-rhel6/m-p/5794483#M53877</link>
      <description>&lt;P&gt;When fencing is properly configured, you should be able to use the "fence_node" command to manually fence any node from any other node.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you're using ipmilan fencing, that means e.g. running "fence_node node2" on node1 should cause node2 to immediately power-off and reboot. If that happens, fencing is configured correctly for node2. Likewise for node 1.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Sep 2012 11:46:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/fenceing-in-rhel6/m-p/5794483#M53877</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2012-09-05T11:46:47Z</dc:date>
    </item>
    <item>
      <title>Re: Fenceing in RHEL6</title>
      <link>https://community.hpe.com/t5/operating-system-linux/fenceing-in-rhel6/m-p/5794743#M53881</link>
      <description>&lt;P&gt;Now i tried with hp ilo but still doesn't work :(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;# fence_node PDC-PIC-PL-02
fence PDC-PIC-PL-02 failed&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;But it says that status are ok..&lt;BR /&gt;What are the values do i need to set for it to work?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;fence_daemon clean_start="0" post_fail_delay="0" post_join_delay="3"/&amp;gt;
        &amp;lt;clusternodes&amp;gt;
                &amp;lt;clusternode name="PDC-PIC-PL-01" nodeid="1" votes="1"&amp;gt;
                        &amp;lt;fence&amp;gt;
                                &amp;lt;method name="Fencing"&amp;gt;
                                        &amp;lt;device name="HPiloFence1"/&amp;gt;
                                &amp;lt;/method&amp;gt;
                        &amp;lt;/fence&amp;gt;
                &amp;lt;/clusternode&amp;gt;
                &amp;lt;clusternode name="PDC-PIC-PL-02" nodeid="2" votes="1"&amp;gt;
                        &amp;lt;fence&amp;gt;
                                &amp;lt;method name="Fencing"&amp;gt;
                                        &amp;lt;device name="HPiloFence2"/&amp;gt;
                                &amp;lt;/method&amp;gt;
                        &amp;lt;/fence&amp;gt;
                &amp;lt;/clusternode&amp;gt;
        &amp;lt;/clusternodes&amp;gt;
        &amp;lt;cman expected_votes="3"/&amp;gt;
        &amp;lt;fencedevices&amp;gt;
                &amp;lt;fencedevice agent="fence_ilo" ipaddr="PDC-PIC-PW-01" login="hpilologin" name="HPiloFence1" passwd="hpilopword"/&amp;gt;
                &amp;lt;fencedevice agent="fence_ilo" ipaddr="PDC-PIC-PW-02" login="hpilologin" name="HPiloFence2" passwd="hpilopword"/&amp;gt;
        &amp;lt;/fencedevices&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks! much appriciated!&lt;/P&gt;</description>
      <pubDate>Wed, 05 Sep 2012 16:21:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/fenceing-in-rhel6/m-p/5794743#M53881</guid>
      <dc:creator>rhel6_cluster</dc:creator>
      <dc:date>2012-09-05T16:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: Fenceing in RHEL6</title>
      <link>https://community.hpe.com/t5/operating-system-linux/fenceing-in-rhel6/m-p/5795843#M53882</link>
      <description>&lt;P&gt;fence_ilo is for iLO and iLO2 only.&lt;/P&gt;&lt;P&gt;For iLO3, you will need fence_ipmilan.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The RHEL6.3 fence_ipmilan man page says:&lt;/P&gt;&lt;PRE&gt;To use fence_ipmilan with HP iLO 3  you have to enable lanplus (lanplus / -P) and increase wait after operation to 4 seconds (power_wait=4 / -T 4)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you have configured the iLO3 user "hpilologin" to have access to the "Virtual Power and Reset" only, you'll also have to specify the IPMI privilege level as USER.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So your &amp;lt;fencedevices&amp;gt; cluster.conf section should be like this:&lt;/P&gt;&lt;PRE&gt;        &amp;lt;fencedevices&amp;gt;
                &amp;lt;fencedevice agent="fence_ipmilan" ipaddr="PDC-PIC-PW-01" login="hpilologin" name="HPiloFence1" passwd="hpilopword" lanplus power_wait="4" privlvl="USER"/&amp;gt;
                &amp;lt;fencedevice agent="fence_ipmiln" ipaddr="PDC-PIC-PW-02" login="hpilologin" name="HPiloFence2" passwd="hpilopword" lanplus power_wait="4" privlvl="USER"/&amp;gt;
        &amp;lt;/fencedevices&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some tests you can do:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1.) Query the power state of a node using ipmitool (tests connectivity and username/password validity only, does not cause a reboot):&lt;/P&gt;&lt;PRE&gt;ipmitool -H PDC-PIC-PW-01 -I lanplus -U hpilologin -L USER -P hpilopword chassis power status&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2.) Query the power state of a node using fence_ipmilan directly from the command line:&lt;/P&gt;&lt;PRE&gt;fence_ipmilan -a PDC-PIC-PW-01 -P -T 4 -l hpilologin -p hpilopword -L USER -v -o status&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3.) Fence a node using fence_ipmilan directly from the command line:&lt;/P&gt;&lt;PRE&gt;fence_ipmilan -a PDC-PIC_PW-01 -P -T 4 -l hpilologin -p hpilopwd -L USER -v -o reboot&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Sep 2012 14:40:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/fenceing-in-rhel6/m-p/5795843#M53882</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2012-09-06T14:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: Fenceing in RHEL6</title>
      <link>https://community.hpe.com/t5/operating-system-linux/fenceing-in-rhel6/m-p/5797269#M53885</link>
      <description>&lt;PRE&gt;&amp;lt;fencedevices&amp;gt;
                &amp;lt;fencedevice agent="fence_ipmilan" auth="password" ipaddr="192.168.25.18" lanplus="on" login="hpadmin" name="HPiloFence1" passwd="hpinvent"/&amp;gt;
                &amp;lt;fencedevice agent="fence_ipmilan" auth="password" ipaddr="192.168.25.26" lanplus="on" login="hpadmin" name="HPiloFence2" passwd="hpinvent"/&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;[root@PDC-PIC-PL-01 cluster]# fence_ipmilan -a 192.168.25.18 -l hpadmin -p hpinvent -o status
Getting status of IPMI:192.168.25.18...Chassis power = Unknown
Failed&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think it is not contacting my ilo. how to contact hp ilo from the OS?&lt;/P&gt;&lt;P&gt;My OA IP is 192.168.25.11 where as the ilo device bay for servers addreses are : .25.18 and .25.26, login to OA are same which i include during device adding, but i don't know what is missing here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am editing from GUI, but when i try to manually edit cluster.conf then there are lots of error and i need to reboot both the nodes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 08 Sep 2012 00:35:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/fenceing-in-rhel6/m-p/5797269#M53885</guid>
      <dc:creator>rhel6_cluster</dc:creator>
      <dc:date>2012-09-08T00:35:45Z</dc:date>
    </item>
    <item>
      <title>Re: Fenceing in RHEL6</title>
      <link>https://community.hpe.com/t5/operating-system-linux/fenceing-in-rhel6/m-p/6858170#M54854</link>
      <description>&lt;P&gt;This looks like a 2 node cluster but it lookes like you are missing some variables making it so/ With a 2 node cluseter you do not have a quaram disk so you need to add. &lt;FONT color="#FF6600"&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;lt;cman expected_votes="1" two_node="1" /&amp;gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Please note you can test connectivity to your ILO ports below, I have added a test to see if you can reach each node:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&lt;STRONG&gt;fence_ipmilan -a PDC-PIC-PW-01&amp;nbsp;-P -l hpilologin -p hpilopword -o status&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;BR /&gt;fence_ipmilan -a PDC-PIC-PW-02 -P -l hpilologin -p hpilopword -o status&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Can you try this one:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;But dont forget to set the CLUSTER NAME to be the same as the CLUSTER-NAME you define when you format your GFS partitions if you want to share GFS partitions across the nodes:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Example of formatting the partition with 4 x journals:&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;(only do this if you have GFS2 partitions)&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;gfs_mkfs -p lock_dlm -t &lt;FONT color="#FF0000"&gt;gfs-cluster&lt;/FONT&gt;:gfs -j 4 /dev/vg_repo/lv_gfs_mydrive&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;Example of /etc/cluster/cluster.conf:&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;lt;?xml version="1.0"?&amp;gt;&lt;BR /&gt;&amp;lt;cluster name="&lt;FONT color="#FF0000"&gt;gfs-cluster"&lt;/FONT&gt; config_version="30"&amp;gt;&lt;BR /&gt;&amp;lt;fence_daemon clean_start="0" post_fail_delay="1" post_join_delay="3"/&amp;gt;&lt;BR /&gt;&amp;lt;clusternodes&amp;gt;&lt;BR /&gt;&amp;lt;clusternode name="PDC-PIC-PL-01" nodeid="1" votes="1"&amp;gt;&lt;BR /&gt;&amp;lt;fence&amp;gt;&lt;BR /&gt;&amp;lt;method name="1"&amp;gt;&lt;BR /&gt;&amp;lt;device lanplus="1" name="device_node1"/&amp;gt;&lt;BR /&gt;&amp;lt;/method&amp;gt;&lt;BR /&gt;&amp;lt;/fence&amp;gt;&lt;BR /&gt;&amp;lt;/clusternode&amp;gt;&lt;BR /&gt;&amp;lt;clusternode name="PDC-PIC-PL-02" nodeid="2" votes="1"&amp;gt;&lt;BR /&gt;&amp;lt;fence&amp;gt;&lt;BR /&gt;&amp;lt;method name="1"&amp;gt;&lt;BR /&gt;&amp;lt;device lanplus="1" name="device_node2"/&amp;gt;&lt;BR /&gt;&amp;lt;/method&amp;gt;&lt;BR /&gt;&amp;lt;/fence&amp;gt;&lt;BR /&gt;&amp;lt;/clusternode&amp;gt;&lt;BR /&gt;&amp;lt;/clusternodes&amp;gt;&lt;BR /&gt;&amp;lt;cman expected_votes="1" two_node="1" /&amp;gt;&lt;BR /&gt;&amp;lt;fencedevices&amp;gt;&lt;BR /&gt;&amp;lt;fencedevice agent="fence_ipmilan" ipaddr="PDC-PIC-PW-01" login="hpilologin" name="HPiloFence1" passwd="hpilopword" power_wait="4"/&amp;gt;&lt;BR /&gt;&amp;lt;fencedevice agent="fence_ipmilan" ipaddr="PDC-PIC-PW-02" login="hpilologin" name="HPiloFence2" passwd="hpilopword" power_wait="4"/&amp;gt;&lt;BR /&gt;&amp;lt;/fencedevices&amp;gt;&lt;BR /&gt;&amp;lt;rm&amp;gt;&lt;BR /&gt;&amp;lt;failoverdomains/&amp;gt;&lt;BR /&gt;&amp;lt;resources/&amp;gt;&lt;BR /&gt;&amp;lt;/rm&amp;gt;&lt;BR /&gt;&amp;lt;/cluster&amp;gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Once you are happy that your config is ok... Simply run (ccs_config_validate): to make sure that the config is valid:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;[root@test~]# ccs_config_validate&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;Configuration validates&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Next, we need to start cman service, on both nodes (at same time):&lt;/FONT&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;&lt;BR /&gt;/etc/init.d/cman start&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Afterwards, we can start the other services, on both nodes:&lt;/FONT&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;&lt;BR /&gt;/etc/init.d/clvmd start&lt;BR /&gt;/etc/init.d/gfs2 start (only do this if you have GFS2 partitions)&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;chkconfig --level 35 cman on&lt;BR /&gt;chkconfig --level 35 clvmd on&lt;BR /&gt;chkconfig --level 35 gfs2 on&amp;nbsp;(only do this if you have GFS2 partitions)&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2016 17:51:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/fenceing-in-rhel6/m-p/6858170#M54854</guid>
      <dc:creator>tyronefrance</dc:creator>
      <dc:date>2016-05-10T17:51:01Z</dc:date>
    </item>
  </channel>
</rss>

