Go to main content

Oracle® Solaris Cluster Generic Data Service (GDS) Guide

Exit Print View

Updated: September 2015
 
 

How to Use Oracle Solaris Cluster Administration Commands to Create a Highly Available Service That Uses the GDS

Before You Begin

Ensure that the /etc/netmasks file has IP-address subnet and netmask entries for all logical hostnames. If necessary, edit the /etc/netmasks file to add any missing entries.

  1. Become an administrator that provides solaris.cluster.modify 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 Resource_dependencies=hhead \
    -p Failover_enabled=TRUE \
    -p Stop_signal=9 haapp_rs

    Note -  The scripts listed above are examples; your script names might be different.
  6. Bring the resource group haapp_rg online in a managed state.
    # clresourcegroup online -M haapp_rg