Skip Navigation Links
Exit Print View
| Oracle Solaris Cluster Data Services Developer's Guide Oracle Solaris Cluster 4.1

Search Scope:

- This Document
- Entire Library

## Using Oracle Solaris Cluster Administration Commands to Create a Service That Uses the GDS

This section describes how to input arguments to the GDS. You use the existing Oracle Solaris Cluster administration commands, such as `clresourcetype`, `clresourcegroup`, and `clresource` to maintain and administer the GDS.

If the scripts provide adequate functionality, you do not need to use the lower-level administration commands that are shown in this section. However, you can use the lower-level administration commands if you need to have finer control over the GDS-based resource. These commands are executed by the scripts.

## 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. Assume the `root` role or 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

## How to Use Oracle Solaris Cluster Administration Commands to Create a Scalable 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. Assume the `root` role or 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 for the `SharedAddress` resource.

       # clresourcegroup create sa_rg

4. Create the `SharedAddress` resource `hhead` in resource group `sa_rg`.

       # clressharedaddress create -g sa_rg hhead

5. Create the resource group for the scalable service.

       # clresourcegroup create -S -p RG_dependencies=sa_reg app_rg

6. Create the resource for the scalable service.

       # clresource create -g app_rg -t SUNW.gds
               -p Validate_command="/export/app/bin/configtest" \
               -p Scalable=TRUE -p Start_timeout=120 \
               -p Stop_timeout=120 -p Probe_timeout=120 \
               -p Port_list="2222/tcp" \
               -p Start_command="/export/app/bin/start" \
               -p Stop_command="/export/app/bin/stop" \
               -p Probe_command="/export/app/bin/probe" \
               -p Child_mon_level=0 -p Network_resource_used=hhead \
               -p Failover_enabled=TRUE -p Stop_signal=9 app_rs

7. Bring the resource group that contains the network resources online.

       # clresourcegroup online sa_reg

8. Bring the resource group `app_rg` online in a managed state.

       # clresourcegroup online -M app_reg

Copyright © 2000, 2012, Oracle and/or its affiliates. All rights reserved. Legal Notices |