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

  1. Become superuser or assume a role that provides solaris.cluster.modify RBAC authorization.

  2. Register the resource type SUNW.gds.


    # clresourcetype register SUNW.gds
    
  3. Create the resource group that contains the LogicalHostname resource and the failover service itself.


    # clresourcegroup create haapp_rg
    
  4. Create the resource for the LogicalHostname resource.


    # clreslogicalhostname create -g haapp_rg hhead
    
  5. Create the resource for the failover service itself.


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


    # clresourcegroup online -M haapp_rg