Use the crsctl add serverpool
command to add a server pool that is for hosting non-database resources (such as application servers) to Oracle Clusterware.
crsctl add serverpool server_pool_name {-file file_path | -attr "attr_name=attr_value[,attr_name=attr_value[,...]]"} [-i] [-f]
Table E-28 crsctl add serverpool Command Parameters
Parameter | Description |
---|---|
server_pool_name |
A short, descriptive name for the server pool. A server pool name has a 254 character limit and can contain any platform-supported characters except the exclamation point (!), the tilde (~), and spaces. A server pool name cannot begin with a period nor with ora. |
-file file_path |
Fully-qualified path to an attribute file to define the server pool. |
attribute_name |
The name of a server pool attribute Oracle Clusterware uses to manage the server pool preceded by the
|
attribute_value |
A value for the server pool attribute. Note: The -attr "MAX_SIZE=30, IMPORTANCE=3" |
-i |
If you specify |
-f |
If you specify the |
See Also:
"How Server Pools Work" for more information about server pools and server pool attributes
The server_pool_name
parameter is required.
If an attribute value for an attribute name-value pair contains commas, then the value must be enclosed in single quotation marks (''
).
Do not use this command for any server pools with names that begin with ora because these server pools are Oracle server pools.
Running this command may result in Oracle Clusterware relocating other servers between server pools to comply with the new configuration.
You must run this command as root
or a cluster administrator.
Use the crsctl add serverpool
command to create server pools that host non-database resources. To create server pools that host Oracle databases, use the SRVCTL command utility.
See Also:
Oracle Real Application Clusters Administration and Deployment Guide for information about using the SRVCTL command utility to create server pools
Example 1
To add a server pool named testsp
with a maximum size of 5 servers, run the following command as root
or the Oracle Clusterware installation owner:
# crsctl add serverpool testsp -attr "MAX_SIZE=5"
Example 2
Create the sp1_attr
file with the attribute values for the sp1
serverpool, each on its own line, as shown in the following example:
IMPORTANCE=1 MIN_SIZE=1 MAX_SIZE=2 SERVER_NAMES=node3 node4 node5 PARENT_POOLS=Generic EXCLUSIVE_POOLS=testsp ACL=owner:oracle:rwx,pgrp:oinstall:rwx,other::r--
Use the following command to create the sp1
server pool using the sp1_attr
file as input:
$ crsctl add serverpool sp1 -file /tmp/sp1_attr