I received this error message when I was playing around with Extended Policy Framework in Oracle Clusterware 12c.
Policy-managed environment in Oracle clusterware 12c offers the capability to create policies to configure pools in accordance with business needs or application demand, so that pools provide the right service at the right time. Typically, administrators create multiple policies to reflect differences in requirements for the cluster based on business needs or demand, or based on calendar dates or times of the day. The collection of zero or more such user defined policies is called cluster policy set. Oracle Clusterware manages the server pools according to the active policy in the policy set. With a cluster configuration policy set, for example, more servers can be allocated to OLTP workload during weekly business, whereas on the weekends and evenings, batch workloads can be assigned more servers, while performing transitions of server pool configuration atomically.
I added Day policy for my Oracle 18.104.22.168 cluster.
[grid@host01 ~]$ crsctl add policy day -attr "DESCRIPTION='The Day Policy'"
When I tried to set attributes of the server pool smallpool for day policy, I received the error:
[root@host01 ~]# crsctl modify serverpool smallpool -attr "MAX_SIZE=2,MIN_SIZE=1,SERVER_CATEGORY=small" -policy day CRS-2615: Could not find server pool 'smallpool'. CRS-4000: Command Modify failed, or completed with errors. [root@host01 ~]# oerr CRS 2615 2615, 1, "Could not find server pool '%s'." // *Cause: An attempt was made to operate on a server pool that is not // registered. // *Action: Check if the server pool is registered.
When I checked, serverpool smallpool existed and had two servers assigned to it
[root@host01 ~]# crsctl status serverpool smallpool NAME=smallpool ACTIVE_SERVERS=host04 host05
Since server pool smallpool had not been specified to be in the scope of the cluster policy set, I was getting above error.
Add server pool name smallpool to the cluster policyset
[root@host01 ~]# crsctl modify policyset -attr "SERVER_POOL_NAMES='smallpool free'" -ksp
Now that server pool smallpool has been added to the scope of the policyset, its configuration can be modified for day policy
[root@host01 ~]# crsctl modify serverpool smallpool -attr "MAX_SIZE=2,MIN_SIZE=1" -policy day
I hope this post was helpful.
Your comments and suggestions are always welcome!
Related Links :