Practices for Lesson 6: Configuring Zones and the
Task 2: Configuring a Persistent Resource Pool
1. Log in to the Sol11-Server1 virtual machine as the oracle user. Use oracle1 as the password. Assume administrator privileges.
2. Create the pool configuration file.
root@s11-serv1:~# ls -l /etc/pool*
ls: cannot access /etc/pool*: No such file or directory
Currently, the pooladm.conf file does not exist. root@s11-serv1:~# pooladm –s
Now you are saving the current pool configuration in the default file /etc/pooladm.conf.
root@s11-serv1:~# ls -l /etc/pool*
-rw-r--r-- 1 root root 1298 2011-07-10 16:13 /etc/pooladm.conf root@s11-serv1:~# file /etc/pooladm.conf
/etc/pooladm.conf: XML document
The file has been created for you and it is of type XML.
3. Display the contents of the pool configuration file by using the more command, so that you can examine its contents one page at a time.
root@s11-serv1:~# more /etc/pooladm.conf <?xml version="1.0"?>
<!DOCTYPE system PUBLIC "-//Sun Microsystems Inc//DTD Resource Management All//EN"
"file:///usr/share/lib/xml/dtd/rm_pool.dtd.1"> <!--
Configuration for pools facility. Do NOT edit this file by hand - use poolcfg(1) or libpool(3POOL) instead.
-->
<system ref_id="dummy" name="default" comment="" version="1" bind-default="true">
<property name="system.poold.objectives" type="string">wt- load</property>
<pool name="pool_default" active="true" default="true" importance="1" comment="" res="pset_-1" ref_id="pool_0"> <property name="pool.sys_id" type="int">0</property> </pool>
<res_comp type="pset" sys_id="-1" name="pset_default"
default="true" min="1" max="65536" units="population" comment="" ref_id="pset_-1">
<property name="pset.load" type="uint">388</property>
Oracle Internal & Or
<property name="pset.size" type="uint">2</property> <comp type="cpu" sys_id="1" comment="" ref_id="cpu_1"> <property name="cpu.status" type="string">on-
line</property>… …
…
The XML file contains the default pool configuration that you saved in step 2.
4. Use the poolcfg command to display the resource pool configuration from the config
file.
root@s11-serv1:~# poolcfg -c info
system default
string system.comment int system.version 1
boolean system.bind-default true
string system.poold.objectives wt-load
pool pool_default
int pool.sys_id 0 boolean pool.active true boolean pool.default true int pool.importance 1 string pool.comment pset pset_default… …
…
You will find that this display is exactly the same as in step 6 of the previous task. The purpose of displaying it again is that you can view it another time before you make modifications.
5. Create a pset called pset_1to2 by using the poolcfg command.
root@s11-serv1:~# poolcfg -c 'create pset pset_1to2 (uint pset.min = 1; uint pset.max = 2)'
The pset is defined with a range of two CPUs (1–2). For instance, the kernel can use one or two CPUs based on the workload.
Oracle Internal & Or
6. Use the poolcfg command to create a pool called pool_gmzone and associate it with the pset_1to2 pset. Confirm whether the pool configuration file shows the current
modification stamp.
root@s11-serv1:~# poolcfg -c 'create pool pool_gmzone (string pool.scheduler="FSS")'
While creating pool_gmzone, you also optionally indicate the Fair Share Scheduler (FSS) as your default scheduling class.
root@s11-serv1:~# poolcfg -c 'associate pool pool_gmzone (pset pset_1to2)'
root@s11-serv1:~# ls -l /etc/pool*
-rw-r--r-- 1 root root 1783 2011-07-10 16:17
The pool configuration file has been modified as is evident from the time stamp.
7. Use the poolcfg –c info command to view the modified pool configuration.
root@s11-serv1:~# poolcfg -c info | more
system default
string system.comment int system.version 1
boolean system.bind-default true
string system.poold.objectives wt-load
pool pool_default
int pool.sys_id 0 boolean pool.active true boolean pool.default true int pool.importance 1 string pool.comment pset pset_default
pool pool_gmzone
boolean pool.active true boolean pool.default false string pool.scheduler FSS int pool.importance 1 string pool.comment pset pset_1to2 pset pset_default int pset.sys_id -1 boolean pset.default true
Oracle Internal & Or
uint pset.min 1 uint pset.max 65536
string pset.units population uint pset.load 388 uint pset.size 2 string pset.comment cpu int cpu.sys_id 1 string cpu.comment
string cpu.status on-line
cpu
int cpu.sys_id 0 string cpu.comment
string cpu.status on-line
pset pset_1to2
int pset.sys_id -2 boolean pset.default false uint pset.min 1
uint pset.max 2
string pset.units population uint pset.load 0
uint pset.size 0 string pset.comment
This is your new pool configuration. The pset, the pool, and the CPUs are all associated and displayed as you had specified. Note that your pset_1to2 shows only one CPU currently. This is the minimum CPU; maximum CPUs would used as needed.
8. Use the pooladm -n –c command to validate the configuration. Commit the changes by
using the -c option.
root@s11-serv1:~# pooladm -n –c root@s11-serv1:~# pooladm -c
Oracle Internal & Or
9. Using the poolcfg –dc info command, display the current pool configuration that is in use.
root@s11-serv1:~# poolcfg -dc info | more
system default
string system.comment int system.version 1
boolean system.bind-default true
string system.poold.objectives wt-load
pool pool_gmzone
int pool.sys_id 1 boolean pool.active true boolean pool.default false string pool.scheduler FSS int pool.importance 1 string pool.comment pset pset_1to2 pool pool_default int pool.sys_id 0 boolean pool.active true boolean pool.default true int pool.importance 1 string pool.comment… …
…
This display should include your modifications; for instance, the pool_gmzone pool and its pset pset_1to2 shown here.
10. Use the poolstat command to display all the active resource pools. root@s11-serv1:~# poolstat -r all
id pool type rid rset min max size used load 1 pool_gmzone pset 1 pset_1to2 1 2 1 0.00 0.00 0 pool_default pset -1 pset_default 1 66K 1 0.00 0.17
The output shows a default pool as well as your new pool.