How to configure fence_vmware_soap using the Red Hat Enterprise Linux 6 tool ccs

Solution Unverified - Updated -

Environment

  • Red Hat Enterprise Linux Server 6 (with the High Availability and Resilient Storage Add Ons)

Issue

  • How to configure Vmware fencing for Red Hat Cluster Suite using the new tool in Red Hat Enterprise Linux 6 'ccs'?

Resolution

This is an example how to configure the Vmware soap fencing agent using the tool 'ccs' available on Red Hat Enterprise Linux 6.
Note that the names used in this example should be changed based on your cluster configuration.

Notes:

  • Steps 1-3 should be performed on all nodes.
  • ccs commands only need to be run once, and can be run from any node in the cluster. If prompted for a password by ccs, enter the ricci password.
  • If you already have a cluster and just need to add fence_vmware_soap fencing to it, start at step 6.

Method:

  1. Install the package 'ccs':

    # yum install ccs
    
  2. Change the ricci password:

    # passwd ricci
    
  3. Start ricci:

    # chkconfig ricci on; service ricci start
    
  4. Now create the initial cluster configuration and assign a cluster name:

    # ccs -h localhost --createcluster rhel6-test
    
  5. Add the cluster nodes:

    # ccs -h localhost --addnode node1
    # ccs -h localhost --addnode node2
    
  6. List all the fence devices and the options of the fence plugin fence_vmware_soap:

    # ccs -h localhost --lsfenceopts
    # ccs -h localhost --lsfenceopts fence_vmware_soap
    
  7. Add the fence device named fence_soap:

    # ccs -h localhost --addfencedev fence_soap agent=fence_vmware_soap ipaddr=<esx ip address or hostname> login=<login> passwd=<password>
    
  8. Add a method to every cluster node:

    # ccs -h localhost --addmethod soap node1
    # ccs -h localhost --addmethod soap node2
    
  9. Add the fence instance to each cluster node and use the 'soap' method defined before:

    # ccs -h localhost --addfenceinst fence_soap node1 soap port=<name of the VM> uuid=<UUID of the VM>
    # ccs -h localhost --addfenceinst fence_soap node2 soap port=<name of the VM> uuid=<UUID of the VM>
    
    • To get a list of Virtual Machines and their UUID, use the command:

      # fence_vmware_soap -z -l <user> -p <passwd> -a <esx ip address or hostname> -o list
      
  10. Propagate the cluster configuration and activate it:

    # ccs -h localhost --sync --activate
    

If you need to enable the debug logging, use this command:

    # ccs -h localhost --setlogging debug=on

More information on how to use the ccs tool can be found at this link

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments