Tuesday, October 21, 2014

SOLARIS 11 RESOURCE POOL ADMINISTRATION

POOL ADMIN:-
To enable/disable pool information.
root@solaris2:~# svcs pools
STATE          STIME    FMRI
online         12:15:23 svc:/system/pools:default
root@solaris2:~# svcs pools/dynamic
STATE          STIME    FMRI
disabled       17:44:04 svc:/system/pools/dynamic:default
root@solaris2:~# svcadm disable pools
root@solaris2:~# svcs pools
STATE          STIME    FMRI
disabled       12:48:24 svc:/system/pools:default
root@solaris2:~# pooladm
pooladm: couldn't open pools state file: Facility is not active
root@solaris2:~# svcadm enable pools
root@solaris2:~# svcs pools
STATE          STIME    FMRI
online         12:49:42 svc:/system/pools:default
root@solaris2:~# pooladm|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
[[[[[OR]]]]]]
1)to disable pools
root@solaris2:~# pooladm -d
root@solaris2:~# svcs pools
STATE          STIME    FMRI
disabled       12:51:17 svc:/system/pools:default
2)to enable pools
root@solaris2:~# pooladm -e
root@solaris2:~# svcs pools
STATE          STIME    FMRI
online         12:51:24 svc:/system/pools:default

root@solaris2:~# pooladm -d
root@solaris2:~# pooladm
pooladm: couldn't open pools state file: Facility is not active
root@solaris2:~# pooladm -e
3)to see pool information.
root@solaris2:~# pooladm|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
4)Dynamic pool service enable/disable
root@solaris2:~# svcadm enable pools/dynamic
root@solaris2:~# svcs pools/dynamic
STATE          STIME    FMRI
online         12:54:25 svc:/system/pools/dynamic:default
root@solaris2:~# svcadm disable pools/dynamic
root@solaris2:~# svcs pools/dynamic
STATE          STIME    FMRI
disabled       12:54:41 svc:/system/pools/dynamic:default

root@solaris2:~# svcs -a|grep -i pools
disabled       12:54:41 svc:/system/pools/dynamic:default
online         12:51:24 svc:/system/pools:default
root@solaris2:~# poolstat
                              pset
 id pool                 size used load
  0 pool_default           30 0.00 0.01

root@solaris2:~# ls -l /etc/pooladm.conf
/etc/pooladm.conf: No such file or directory
#pooladm -s
root@solaris2:~# ls -l /etc/pooladm.conf
-rw-r--r--   1 root     root        5064 Dec 28 13:04 /etc/pooladm.conf
root@solaris2:~# 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
        pset pset_default
                int     pset.sys_id -1
                boolean pset.default true
                uint    pset.min 1
                uint    pset.max 65536
                string  pset.units population
                uint    pset.load 7
                uint    pset.size 30
                string  pset.comment
                cpu
                        int     cpu.sys_id 21
                        string  cpu.comment
                        string  cpu.status on-line
;
;
all 30 cups
root@solaris2:~# cat /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">7</property>
    <property name="pset.size" type="uint">30</property>
    <comp type="cpu" sys_id="21" comment="" ref_id="cpu_21">
      <property name="cpu.status" type="string">on-line</property>
    </comp>
    <comp type="cpu" sys_id="20" comment="" ref_id="cpu_20">
      <property name="cpu.status" type="string">on-line</property>
    </comp>
    <comp type="cpu" sys_id="23" comment="" ref_id="cpu_23">
      <property name="cpu.status" type="string">on-line</property>
    </comp>
    <comp type="cpu" sys_id="22" comment="" ref_id="cpu_22">
      <property name="cpu.status" type="string">on-line</property>
    </comp>
    <comp type="cpu" sys_id="17" comment="" ref_id="cpu_17">
      <property name="cpu.status" type="string">on-line</property>
    </comp>
    <comp type="cpu" sys_id="16" comment="" ref_id="cpu_16">
      <property name="cpu.status" type="string">on-line</property>
    </comp>
    <comp type="cpu" sys_id="19" comment="" ref_id="cpu_19">
      <property name="cpu.status" type="string">on-line</property>
    </comp>
    <comp type="cpu" sys_id="18" comment="" ref_id="cpu_18">
      <property name="cpu.status" type="string">on-line</property>
    </comp>
    <comp type="cpu" sys_id="29" comment="" ref_id="cpu_29">
      <property name="cpu.status" type="string">on-line</property>
    </comp>
    <comp type="cpu" sys_id="28" comment="" ref_id="cpu_28">
      <property name="cpu.status" type="string">on-line</property>
    </comp>
    <comp type="cpu" sys_id="25" comment="" ref_id="cpu_25">
      <property name="cpu.status" type="string">on-line</property>
    </comp>
    <comp type="cpu" sys_id="24" comment="" ref_id="cpu_24">
      <property name="cpu.status" type="string">on-line</property>
    </comp>
    <comp type="cpu" sys_id="27" comment="" ref_id="cpu_27">
      <property name="cpu.status" type="string">on-line</property>
    </comp>
    <comp type="cpu" sys_id="26" comment="" ref_id="cpu_26">
      <property name="cpu.status" type="string">on-line</property>
    </comp>
    <comp type="cpu" sys_id="5" comment="" ref_id="cpu_5">
      <property name="cpu.status" type="string">on-line</property>
    </comp>
    <comp type="cpu" sys_id="4" comment="" ref_id="cpu_4">
      <property name="cpu.status" type="string">on-line</property>
    </comp>
    <comp type="cpu" sys_id="7" comment="" ref_id="cpu_7">
      <property name="cpu.status" type="string">on-line</property>
    </comp>
    <comp type="cpu" sys_id="6" comment="" ref_id="cpu_6">
      <property name="cpu.status" type="string">on-line</property>
    </comp>
    <comp type="cpu" sys_id="1" comment="" ref_id="cpu_1">
      <property name="cpu.status" type="string">on-line</property>
    </comp>
    <comp type="cpu" sys_id="0" comment="" ref_id="cpu_0">
      <property name="cpu.status" type="string">on-line</property>
    </comp>
    <comp type="cpu" sys_id="3" comment="" ref_id="cpu_3">
      <property name="cpu.status" type="string">on-line</property>
    </comp>
    <comp type="cpu" sys_id="2" comment="" ref_id="cpu_2">
      <property name="cpu.status" type="string">on-line</property>
    </comp>
    <comp type="cpu" sys_id="13" comment="" ref_id="cpu_13">
      <property name="cpu.status" type="string">on-line</property>
    </comp>
    <comp type="cpu" sys_id="12" comment="" ref_id="cpu_12">
      <property name="cpu.status" type="string">on-line</property>
    </comp>
    <comp type="cpu" sys_id="15" comment="" ref_id="cpu_15">
      <property name="cpu.status" type="string">on-line</property>
    </comp>
    <comp type="cpu" sys_id="14" comment="" ref_id="cpu_14">
      <property name="cpu.status" type="string">on-line</property>
    </comp>
    <comp type="cpu" sys_id="9" comment="" ref_id="cpu_9">
      <property name="cpu.status" type="string">on-line</property>
    </comp>
    <comp type="cpu" sys_id="8" comment="" ref_id="cpu_8">
      <property name="cpu.status" type="string">on-line</property>
    </comp>
    <comp type="cpu" sys_id="11" comment="" ref_id="cpu_11">
      <property name="cpu.status" type="string">on-line</property>
    </comp>
    <comp type="cpu" sys_id="10" comment="" ref_id="cpu_10">
      <property name="cpu.status" type="string">on-line</property>
    </comp>
  </res_comp>
</system>

Commit the configuration at /etc/pooladm.conf
root@solaris2:~# pooladm -c
root@solaris2:~# ls -l /etc/pooladm.conf
-rw-r--r--   1 root     root        5064 Dec 28 13:04 /etc/pooladm.conf

To copy the dynamic configuration to a static configuration file called /tmp/backup
root@solaris2:~# pooladm -s /tmp/backup
root@solaris2:~# ls -l /tmp/backup
-rw-r--r--   1 root     root        5064 Dec 28 13:10 /tmp/backup
root@solaris2:~# cat /tmp/backup
<?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">8</property>
;
;
;

===
5)To create pset
root@solaris2:~# poolcfg -c 'create pset pset_batch (uint pset.min = 2 ; uint pset.max = 10)'

root@solaris2:~# 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
        pset pset_default
                int     pset.sys_id -1
                boolean pset.default true
                uint    pset.min 1
                uint    pset.max 65536
                string  pset.units population
                uint    pset.load 7
                uint    pset.size 30
                string  pset.comment
                cpu
                        int     cpu.sys_id 21
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 20
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 23
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 22
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 17
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 16
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 19
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 18
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 29
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 28
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 25
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 24
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 27
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 26
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 5
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 4
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 7
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 6
                        string  cpu.comment
                        string  cpu.status on-line
                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
                cpu
                        int     cpu.sys_id 3
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 2
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 13
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 12
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 15
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 14
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 9
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 8
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 11
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 10
                        string  cpu.comment
                        string  cpu.status on-line
        pset pset_batch
                int     pset.sys_id -2
                boolean pset.default false
                uint    pset.min 2
                uint    pset.max 10
                string  pset.units population
                uint    pset.load 0
                uint    pset.size 0
                string  pset.comment

6)to create pool called pool_batch
root@solaris2:~# poolcfg -c 'create pool pool_batch'
root@solaris2:~# 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
        pool pool_batch
                boolean pool.active true
                boolean pool.default false
                int     pool.importance 1
                string  pool.comment
                pset    pset_default
        pset pset_default
                int     pset.sys_id -1
                boolean pset.default true
                uint    pset.min 1
                uint    pset.max 65536
                string  pset.units population
                uint    pset.load 7
                uint    pset.size 30
                string  pset.comment
                cpu
                        int     cpu.sys_id 21
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 20
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 23
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 22
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 17
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 16
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 19
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 18
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 29
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 28
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 25
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 24
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 27
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 26
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 5
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 4
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 7
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 6
                        string  cpu.comment
                        string  cpu.status on-line
                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
                cpu
                        int     cpu.sys_id 3
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 2
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 13
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 12
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 15
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 14
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 9
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 8
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 11
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 10
                        string  cpu.comment
                        string  cpu.status on-line
        pset pset_batch
                int     pset.sys_id -2
                boolean pset.default false
                uint    pset.min 2
                uint    pset.max 10
                string  pset.units population
                uint    pset.load 0
                uint    pset.size 0
                string  pset.comment
7)to associate pset to pool
root@solaris2:~# poolcfg -c 'associate pool pool_batch (pset pset_batch)'
root@solaris2:~# 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
        pool pool_batch
                boolean pool.active true
                boolean pool.default false
                int     pool.importance 1
                string  pool.comment
                pset    pset_batch
        pset pset_default
                int     pset.sys_id -1
                boolean pset.default true
                uint    pset.min 1
                uint    pset.max 65536
                string  pset.units population
                uint    pset.load 7
                uint    pset.size 30
                string  pset.comment
                cpu
                        int     cpu.sys_id 21
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 20
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 23
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 22
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 17
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 16
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 19
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 18
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 29
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 28
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 25
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 24
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 27
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 26
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 5
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 4
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 7
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 6
                        string  cpu.comment
                        string  cpu.status on-line
                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
                cpu
                        int     cpu.sys_id 3
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 2
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 13
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 12
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 15
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 14
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 9
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 8
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 11
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 10
                        string  cpu.comment
                        string  cpu.status on-line
        pset pset_batch
                int     pset.sys_id -2
                boolean pset.default false
                uint    pset.min 2
                uint    pset.max 10
                string  pset.units population
                uint    pset.load 0
                uint    pset.size 0
                string  pset.comment

8)to see pool configuration information
root@solaris2:~# 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
        pool pool_batch
                boolean pool.active true
                boolean pool.default false
                int     pool.importance 1
                string  pool.comment
                pset    pset_batch
        pset pset_default
                int     pset.sys_id -1
                boolean pset.default true
                uint    pset.min 1
                uint    pset.max 65536
                string  pset.units population
                uint    pset.load 7
                uint    pset.size 30
                string  pset.comment
                cpu
                        int     cpu.sys_id 21
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 20
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 23
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 22
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 17
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 16
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 19
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 18
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 29
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 28
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 25
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 24
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 27
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 26
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 5
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 4
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 7
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 6
                        string  cpu.comment
                        string  cpu.status on-line
                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
                cpu
                        int     cpu.sys_id 3
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 2
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 13
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 12
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 15
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 14
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 9
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 8
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 11
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 10
                        string  cpu.comment
                        string  cpu.status on-line
        pset pset_batch
                int     pset.sys_id -2
                boolean pset.default false
                uint    pset.min 2
                uint    pset.max 10
                string  pset.units population
                uint    pset.load 0
                uint    pset.size 0
                string  pset.comment
9)to seel poolconfiguration information
root@solaris2:~# pooladm
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
        pset pset_default
                int     pset.sys_id -1
                boolean pset.default true
                uint    pset.min 1
                uint    pset.max 65536
                string  pset.units population
                uint    pset.load 7
                uint    pset.size 30
                string  pset.comment
                cpu
                        int     cpu.sys_id 21
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 20
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 23
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 22
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 17
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 16
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 19
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 18
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 29
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 28
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 25
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 24
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 27
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 26
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 5
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 4
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 7
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 6
                        string  cpu.comment
                        string  cpu.status on-line
                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
                cpu
                        int     cpu.sys_id 3
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 2
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 13
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 12
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 15
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 14
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 9
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 8
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 11
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 10
                        string  cpu.comment
                        string  cpu.status on-line
root@solaris2:~# who
root       pts/1        Dec 28 11:38    (10.48.9.66)
root       pts/2        Dec 28 12:20    (10.48.9.66)
8)after commiting of configuration only we are getting pool information.
root@solaris2:~# pooladm -c
root@solaris2:~# pooladm
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_batch
                int     pool.sys_id 2
                boolean pool.active true
                boolean pool.default false
                int     pool.importance 1
                string  pool.comment
                pset    pset_batch
        pset pset_batch
                int     pset.sys_id 1
                boolean pset.default false
                uint    pset.min 2
                uint    pset.max 10
                string  pset.units population
                uint    pset.load 8
                uint    pset.size 10
                string  pset.comment
                cpu
                        int     cpu.sys_id 5
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 4
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 7
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 6
                        string  cpu.comment
                        string  cpu.status on-line
                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
                cpu
                        int     cpu.sys_id 3
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 2
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 9
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 8
                        string  cpu.comment
                        string  cpu.status on-line
        pset pset_default
                int     pset.sys_id -1
                boolean pset.default true
                uint    pset.min 1
                uint    pset.max 65536
                string  pset.units population
                uint    pset.load 8
                uint    pset.size 20
                string  pset.comment
                cpu
                        int     cpu.sys_id 21
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 20
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 23
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 22
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 17
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 16
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 19
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 18
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 29
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 28
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 25
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 24
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 27
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 26
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 13
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 12
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 15
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 14
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 11
                        string  cpu.comment
                        string  cpu.status on-line
                cpu
                        int     cpu.sys_id 10
                        string  cpu.comment
                        string  cpu.status on-line

9)How to Associate a Pool With a Scheduling Class

 pool pool_batch
                int     pool.sys_id 2
                boolean pool.active true
                boolean pool.default false
                int     pool.importance 1
                string  pool.comment
                pset    pset_batch
        pset pset_batch
                int     pset.sys_id 1
                boolean pset.default false
                uint    pset.min 2
                uint    pset.max 10
                string  pset.units population
                uint    pset.load 8
                uint    pset.size 10
                string  pset.comment

root@solaris2:~# poolcfg -c 'modify pool pool_batch (string pool.scheduler="FSS")'

root@solaris2:~# pooladm -c
root@solaris2:~# pooladm
 pool pool_batch
                int     pool.sys_id 2
                boolean pool.active true
                boolean pool.default false
                string  pool.scheduler FSS
                int     pool.importance 1
                string  pool.comment
                pset    pset_batch
pset pset_batch
                int     pset.sys_id 1
                boolean pset.default false
                uint    pset.min 2
                uint    pset.max 10
                string  pset.units population
                uint    pset.load 0
                uint    pset.size 10
                string  pset.comment

10)How to Set Configuration Constraints
# poolcfg -dc 'modify cpu <cpuid> (boolean cpu.pinned = true)'
#pooladm -C
11)How to Define Configuration Objectives
You can specify objectives for poold to consider when taking corrective action.
In the following procedure, the wt-load objective is being set so that poold tries to match resource allocation to resource utilization.
The locality objective is disabled to assist in achieving this configuration goal.

# poolcfg -c 'modify system tester (string system.poold.objectives="wt-load")'
# poolcfg -c 'modify pset pset_default (string pset.poold.objectives="locality none")'
# poolcfg -c 'modify pset pset_batch (string pset.poold.objectives="locality none")'

root@solaris2:~# poolcfg -c 'modify pset pset_default (string pset.poold.objectives="locality none")'
root@solaris2:~# pooladm -c
 pset pset_default
                int     pset.sys_id -1
                boolean pset.default true
                uint    pset.min 1
                uint    pset.max 65536
                string  pset.units population
                uint    pset.load 13
                uint    pset.size 20
                string  pset.comment
                string  pset.poold.objectives locality none

root@solaris2:~# poolcfg -c 'modify pset pset_batch (string pset.poold.objectives="locality none")'
root@solaris2:~# pooladm -c


 pset pset_batch
                int     pset.sys_id 1
                boolean pset.default false
                uint    pset.min 2
                uint    pset.max 10
                string  pset.units population
                uint    pset.load 0
                uint    pset.size 10
                string  pset.comment
                string  pset.poold.objectives locality none

12)LOGS for resources
root@solaris2:~# cat /var/log/pool/poold
Dec 28 12:54:26 Configuration INFO: starting
Dec 28 12:54:27 Configuration INFO: configuration complete
Dec 28 12:54:41 poold ERR: terminating due to signal: SIGTERM
Dec 28 12:54:41 Monitoring INFO: interrupted
Dec 28 12:54:41 poold NOTICE: exiting


root@solaris2:~# /usr/lib/pool/poold -l INFO
Dec 28 15:30:11 Configuration INFO: starting
Dec 28 15:30:11 Configuration INFO: configuration complete
Dec 28 15:30:26 Monitoring INFO: not evaluating workload-dependent objectives un                                                                            
til sufficient statistics are collected
Dec 28 15:30:26 Monitoring INFO: reconfiguration required
Dec 28 15:30:26 Optimization INFO: move (from pset pset_batch to pset pset_defau                                                                            
lt components [cpu 9]) score 0.00 not applied as benefit not significant
Dec 28 15:30:41 Monitoring INFO: not evaluating workload-dependent objectives until sufficient statistics are collected
Dec 28 15:30:41 Monitoring INFO: reconfiguration required
Dec 28 15:30:41 Optimization INFO: move (from pset pset_batch to pset pset_default components [cpu 0]) score 0.00 not applied as benefit not significant
Dec 28 15:30:56 Monitoring INFO: not evaluating workload-dependent objectives until sufficient statistics are collected
Dec 28 15:30:56 Monitoring INFO: reconfiguration required
Dec 28 15:30:56 Optimization INFO: move (from pset pset_batch to pset pset_default components [cpu 7]) score 0.00 not applied as benefit not significant
Dec 28 15:31:11 Monitoring INFO: not evaluating workload-dependent objectives until sufficient statistics are collected
Dec 28 15:31:11 Monitoring INFO: reconfiguration required
Dec 28 15:31:11 Optimization INFO: move (from pset pset_batch to pset pset_default components [cpu 5]) score 0.00 not applied as benefit not significant
Dec 28 15:31:26 Monitoring INFO: not evaluating workload-dependent objectives until sufficient statistics are collected
Dec 28 15:31:26 Monitoring INFO: reconfiguration required
Dec 28 15:31:26 Optimization INFO: move (from pset pset_batch to pset pset_default components [cpu 4]) score 0.00 not applied as benefit not significant
Dec 28 15:31:41 Monitoring INFO: reconfiguration required
Dec 28 15:31:41 Optimization INFO: move (from pset pset_batch to pset pset_default components [cpu 5]) score -0.00 not applied as benefit not significant
Dec 28 15:31:56 Monitoring INFO: reconfiguration required
Dec 28 15:31:56 Optimization INFO: move (from pset pset_batch to pset pset_default components [cpu 3]) score -0.00 not applied as benefit not significant
^CDec 28 15:31:56 poold ERR: terminating due to signal: SIGINT
Dec 28 15:31:56 Monitoring INFO: interrupted
Dec 28 15:31:56 poold NOTICE: exiting


13)How to Use Command Files With poolcfg

$ cat > poolcmds.txt
create system tester create pset pset_batch (uint pset.min = 2; uint pset.max = 10) create pool pool10
 /usr/sbin/poolcfg -f poolcmds.txt

14)How to Move CPUs Between Processor Sets

# poolcfg -dc 'transfer 2 from pset pset1 to pset2'
If specific known IDs of a resource type are to be transferred
# poolcfg -dc 'transfer to pset pset_large (cpu 0; cpu 2)'
15)How to Activate a Pools Configuration
# pooladm -c
# pooladm -s /tmp/backup

16)How to Validate a Configuration Before Committing the Configuration
# pooladm -n -c /home/admin/newconfig
17)How to Remove a Pools Configuration
# pooladm -x

No comments:

Post a Comment