Sun Cluster Data Services Developer's Guide for Solaris OS

ProcedureHow to Use Sun Cluster Administration Commands to Create a Highly Available Service That Uses the GDS

Steps
  1. Become superuser or assume an equivalent role.

  2. Register the resource type SUNW.gds.


    # scrgadm -a -t SUNW.gds
    
  3. Create the resource group that contains the LogicalHostname resource and the failover service itself.


    # scrgadm -a -g haapp_rg
    
  4. Create the resource for the LogicalHostname resource.


    # scrgadm -a -L -g haapp_rs -l hhead
    
  5. Create the resource for the failover service itself.


    # scrgadm -a -j haapp_rs -g haapp_rg -t SUNW.gds \
             -y Scalable=false -y Start_timeout=120 \
             -y Stop_timeout=120 -x Probe_timeout=120 \
             -y Port_list="2222/tcp" \
             -x Start_command="/export/ha/appctl/start" \
             -x Stop_command="/export/ha/appctl/stop" \    
             -x Probe_command="/export/app/bin/probe" \
             -x Child_mon_level=0 -y Network_resources_used=hhead \
             -x Failover_enabled=TRUE -x Stop_signal=9
    
  6. Bring the resource group haapp_rg online.


    # scswitch -Z -g haapp_rg