리눅스

Total 331
Today 0
profile_image
슈퍼아이피
18-04-11 14:15 0개 17회
설치문서
How to configure VMware fencing using fence_vmware_soap in Red Hat Enterprise Linux High Availability Add On?
How to configure VMware fencing using fence_vmware_soap in Red Hat Enterprise Linux High Availability Add On?
Solution 확인됨 - 업데이트됨 23시 39분 2016년 6월 6일 -

환경

  • Red Hat Enterprise Linux 5.7 or higher (with the High Availability or Resilient Storage Add-on)
  • Red Hat Enterprise Linux 6.2 or higher (with the High Availability or Resilient Storage Add-on)
  • VMware fencing ( fence_vmware_soap )
  • For configuration of fence_vmware_soap in pacemaker based clusters check the Solution 917813

문제

  • I have RHEL cluster nodes running as VMware virtual machines. How can I use VMware fencing as my cluster's fence device?
  • How do I use fence_vmware_soap as a fence device in my RHCS(Red Hat cluster Suite)?
  • Have two VMs running over VMware ESX server, need to know best recommendation on configuring fencing, which would be the best method for fencing( fence_vmware or fence_vmware_soap ) and how to configure it in two node Red Hat High Availability Cluster ?
  • What is the recommended fence agent for running a cluster on VMware Vsphere?
  • What is the fence agent provided by Red Hat High Availability Add-On Cluster for VMs running on VMware ESXi 5?

해결

NOTE:Below screenshots are captured from RHEL5 Conga. However the procedures are same in Red Hat Enterprise Linux 6 Conga GUI.

  • It is required to add Virtual Machine details ( Guest name and UUID ) while attaching the fence device with each cluster member.
  • Set the hostname ,username and password of VMware fencing
    • Hostname - The IP address or resolvable hostname of the vCenter host
    • Login & password - The vCenter's username and that user's password
  • Execute the following command to list the guest name and uuid

                   # fence_vmware_soap -z -l root -p mypasswd -a vcenter.example.com -o list rhel5rhcs-node1, 564d1874-b56f-711d-4167-3d97eaf24647 rhel5rhcs-node2, 564db341-39fc-1383-5e6d-3a71e14c540d 
                   
  • Now add the Virtual Machine details for each nodes.

  • Eventually the cluster configuration file /etc/cluster/cluster.conf should looks like


  • <clusternode name="node2.example.com" nodeid="1" votes="1">
      <fence>
       <method name="1">
          <device name="vmwarefence" port="rhel5rhcs-node2"
               uuid="564db341-39fc-1383-5e6d-3a71e14c540d"/>
       </method>
      </fence>
    </clusternode>
    <clusternode name="node1.example.com" nodeid="2" votes="1">
      <fence>
       <method name="1">
          <device name="vmwarefence" port="rhel5rhcs-node1"
               uuid="564d1874-b56f-711d-4167-3d97eaf24647"/>
       </method>
      </fence>
    </clusternode>
    </clusternodes>
    <cman expected_votes="1" two_node="1"/>
    <fencedevices>
      <fencedevice agent="fence_vmware_soap" ipaddr="vcenter.example.com"
         login="root" name="vmwarefence" passwd="mypasswd" ssl="1"/>
    </fencedevices>

댓글목록

등록된 댓글이 없습니다.