# svcadm enable system/pools/dynamic:default
This example shows that you must first enable resource pools if you want to run DRP.
There is a dependency between resource pools and dynamic resource pools. DRP is now a dependent service of resource pools. DRP can be independently enabled and disabled apart from resource pools.
The following display shows that both resource pools and dynamic resource pools are currently disabled:
# svcs "*pool*" STATE STIME FMRI disabled 2011 svc:/system/pools:default disabled 2011 svc:/system/pools/dynamic:default
Enable dynamic resource pools:
# svcadm enable svc:/system/pools/dynamic:default # svcs -a | grep pool STATE STIME FMRI disabled 2011 svc:/system/pools:default offline 2011 svc:/system/pools/dynamic:default
Note that the DRP service is still offline.
Use the –x option of the svcs command to determine why the DRP service is offline:
# svcs -x "*pool*" svc:/system/pools:default (resource pools framework) State: disabled since Sat Feb 12 02:36:15 2011 Reason: Disabled by an administrator. See: http://support.oracle.com/msg/SMF-8000-05 See: libpool(3LIB) See: pooladm(1M) See: poolbind(1M) See: poolcfg(1M) See: poolstat(1M) Impact: This service is not running. svc:/system/pools/dynamic:default (dynamic resource pools) State: disabled since Sat Feb 12 02:36:16 2011 Reason: Disabled by an administrator. See: http://support.oracle.com/msg/SMF-8000-05 See: poold(1M) Impact: This service is not running.
Enable the resource pools service so that the DRP service can run:
# svcadm enable svc:/system/pools:default
When the svcs "*pool*" command is used, the system displays:
# svcs "*pool*" STATE STIME FMRI online 2011 svc:/system/pools/dynamic:default online 2011 svc:/system/pools:defaultExample 5 Effect on Dynamic Resource Pools When the Resource Pools Service Is Disabled
If both services are online and you disable the resource pools service:
# svcadm disable svc:/system/pools:default
When the svcs "*pool*" command is used, the system displays:
# svcs "*pool*" STATE STIME FMRI disabled 2011 svc:/system/pools:default online 2011 svc:/system/pools/dynamic:default
However, the DRP service eventually moves to offline because the resource pools service has been disabled:
# svcs "*pool*" STATE STIME FMRI disabled 2011 svc:/system/pools:default offline 2011 svc:/system/pools/dynamic:default
Determine why the DRP service is offline:
# svcs -x "*pool*" svc:/system/pools:default (resource pools framework) State: disabled since Sat Feb 12 02:36:15 2011 Reason: Disabled by an administrator. See: http://support.oracle.com/msg/SMF-8000-05 See: libpool(3LIB) See: pooladm(1M) See: poolbind(1M) See: poolcfg(1M) See: poolstat(1M) Impact: 1 dependent service is not running. (Use -v for list.) svc:/system/pools/dynamic:default (dynamic resource pools) State: offline since Sat Feb 12 02:36:15 2011 Reason: Service svc:/system/pools:default is disabled. See: http://support.oracle.com/msg/SMF-8000-GE See: poold(1M) See: /var/svc/log/system-pools-dynamic:default.log Impact: This service is not running.
Resource pools must be started for DRP to work. For example, resource pools could be started by using the pooladm command with the –e option:
# pooladm -e
Then the svcs "*pool*" command displays:
# svcs "*pool*" STATE STIME FMRI online 2011 svc:/system/pools:default online 2011 svc:/system/pools/dynamic:default