For information about scalable configuration, see How to Create a Scalable Resource Group.
# clresourcetype register -f \ /opt/SUNWscsmf/etc/SUNW.Proxy_SMF_scalable SUNW.Proxy_SMF_scalable
See How to Add a Shared Address Resource to a Resource Group Using the Command-Line Interface.
# clresourcegroup create -S [-p Maximum_primaries=m] [-p Desired_primaries=n] \ [-n node-zone-list] resource-group
Specifies that the resource group is to be multi-mastered. If the –p Maximum_primaries and –p Desired_primaries options are omitted, both properties are set to the number of nodes in the resource group's node list.
Specifies the maximum number of active primaries for this resource group.
Specifies the number of active primaries on which the resource group should attempt to start.
Specifies a comma-separated, ordered list of nodes in which this resource group is to be available.
This list is optional. If you omit this list, the resource group is created on all nodes in the cluster.
Specifies your choice of the name of the scalable resource group to add. This name must begin with an ASCII character.
# clresourcegroup show resource-group
# clresource create-g resource-group -t SUNW.Proxy_SMF_scalable \ -p Resource_dependencies=network-resource[,network-resource...] \ -p Scalable=True \ -p Port_list=portnumber/protocol \ -x Proxied_service_instances=/tmp/dns_svcs.txt
Specifies the name of the scalable network resource you created in Step 3 on which this resource depends.
Specifies the name of the SMF proxy scalable resource group that you previously created.
Specifies that this resource uses the network load balancing features of Oracle Solaris Cluster software. For more information, see How to Add a Scalable Application Resource to a Resource Group.
The resource is created in the enabled state.
# clresource show resource
# clresourcegroup online -M resource-group
The following example registers the SUNW.Proxy_SMF_scalable resource type.
# clresourcetype register SUNW.Proxy_SMF_scalable # clresourcetype show SUNW.Proxy_SMF_scalable Resource Type: SUNW.Proxy_SMF_scalable RT_description: Resource type for proxying scalable SMF services RT_version: 2.0 API_version: 7 RT_basedir: /opt/SUNWscsmf/bin Single_instance: False Proxy: False Init_nodes: All potential masters Installed_nodes: <All> Failover: True Pkglist: <NULL> RT_system: False Global _zone: FalseExample 2-61 Creating and Adding an SMF Proxy Scalable Application Resource to a Resource Group
This example shows the creation and addition of a scalable proxy resource type SUN.Proxy_SMF_scalalble to a resource group resource-group-1.
# clresourcegroup create -S \ -p Maximum_primaries=2 \ -p Desired_primaries=2 \ -p RG_dependencies=resource-group-2 \ -n phys-schost-1, phys-schost-2 resource-group-1 # clresourcegroup show resource-group-1 === Resource Groups and Resources === Resource Group: resource-group-1 RG_description: <NULL> RG_mode: Scalable RG_state: Unmanaged RG_project_name: default RG_affinities: <NULL> Auto_start_on_new_cluster: True Failback: False Nodelist: phys-schost-1 phys-schost-2 Maximum_primaries: 2 Desired_primaries: 2 RG_dependencies: resource-group2 Implicit_network_dependencies: True Global_resources_used: <All> Pingpong_interval: 3600 Pathprefix: <NULL> RG_System: False Suspend_automatic_recovery: False
# clresource create -g resource-group-1 -t SUNW.Proxy_SMF_scalable \ -p resource_dependencies=net-res -p port_list=1080/tcp \ -x proxied_service_instances=/var/tmp/svslist.txt resource-1 # clresource show resource-1 === Resources === Resource: resource-1 Type: SUNW.Proxy_SMF_scalable Type_version: 2.0 Group: resource-group-1 R_description: Resource_project_name: default Enabled{phys-schost-1}: True Monitored{phys-schost-1}: True
You can choose the resource_dependencies and port number to use.