Resource Pools

From Tom
Jump to: navigation, search

This documentation can be redistributed and/or modified under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version.

Unless required by applicable law, this documentation is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

This documentation should not be used as a replacement for a valid Oracle service contract and/or an Oracle service engagement. Failure to follow Oracle guidelines for installation and/or maintenance could result in service/warranty issues with Oracle.

Use of this documentation is at your own risk!

--Tom Stevenson (talk) 17:11, 26 May 2015 (EDT)


Index

Banner 8 setups			 (Still a work in progress)
T5440 Setup			 (Still a work in progress) 
M5000 Setup			 (Still a work in progress) 
Solaris 10 Setup		 (Still a work in progress) 
Fair Share Scheduler		 (Still a work in progress) 
Resource Pools			 (Still a work in progress) 
Solaris Cluster 3.2		 (Still a work in progress) 
Solaris Zones			 (Still a work in progress) 
Patching Cluster with HA-Zones	 (Still a work in progress) 

Setting up the Resource Pools

Although only one server is used in the following examples, all of the following steps much be executed on all servers within the cluster.

Determine if Static pools or Dynamic pools are operational

Determine if Static pools or Dynamic pools are operational. If either service is disabled, follow the remaining steps to enable them.

[root@banpapp1 ~]# svcs svc:/system/pools:default svc:/system/pools/dynamic:default
 STATE          STIME    FMRI
 disabled       19:34:36 svc:/system/pools/dynamic:default
 disabled       19:40:17 svc:/system/pools:default

Enable Resource Pools

Enable the pools service so that pools can be manipulated.

[root@banpapp2 ~]# pooladm -e

Create initial Resource Pool database

Create the initial, default, /etc/pooladm.conf file.

[root@banpapp2 ~]# pooladm -s

Validate that both Static pools and Dynamic pools are online

Validate that both Static pools and Dynamic pools are online.

[root@banpapp1 ~]# svcs svc:/system/pools:default svc:/system/pools/dynamic:default
 STATE          STIME    FMRI
 disabled       19:34:36 svc:/system/pools/dynamic:default
 online         19:35:21 svc:/system/pools:default

Enable any pools services that are not online

If any of the pools services are not online, enable them.

[root@banpapp1 ~]# svcadm enable svc:/system/pools/dynamic:default

Validate that both Static pools and Dynamic pools are online.

[root@banpapp1 ~]# svcs svc:/system/pools:default svc:/system/pools/dynamic:default
 STATE          STIME    FMRI
 online         19:45:33 svc:/system/pools:default
 offline*       19:45:33 svc:/system/pools/dynamic:default

offline* indicates that the state is changing. Wait a few seconds (up to 2 minutes on some servers), and check again.

[root@banpapp1 ~]# svcs svc:/system/pools:default svc:/system/pools/dynamic:default
 STATE          STIME    FMRI
 online         19:45:33 svc:/system/pools:default
 online         19:45:34 svc:/system/pools/dynamic:default

This time both services are online. If not, determine the cause of the problem before continuing.

Listing active Resource Pools

List the names of all active Resource Pools. This example lists one static pool, pool_default, and one dynamic pool, SUNWtmp_banpmrt1. Based on the output below, pool SUNWtmp_banpmrt1 can use between 1 to 4 CPUs, and is currently using 3.

[root@banpdb2 banpdbs1]# poolstat -r all
 id pool                 type rid rset                  min  max size used load
  0 pool_default         pset  -1 pset_default            1  66K   61 0.00 0.04
  8 SUNWtmp_banpmrt1     pset   1 SUNWtmp_banpmrt1        1    4    3 0.00 0.01

Displaying the configuration for a dynamic Resource Pool

Display Resource Pools configuration for SUNWtmp_banpmrt1.

[root@banpdb2 banpdbs1]# poolcfg -dc "info pool SUNWtmp_banpmrt1"

pool SUNWtmp_banpmrt1
        int     pool.sys_id 8
        boolean pool.active true
        boolean pool.default false
        int     pool.importance 1
        string  pool.comment
        boolean pool.temporary true
        pset    SUNWtmp_banpmrt1

        pset SUNWtmp_banpmrt1
                int     pset.sys_id 1
                boolean pset.default false
                uint    pset.min 1
                uint    pset.max 4
                string  pset.units population
                uint    pset.load 3
                uint    pset.size 3
                string  pset.comment
                boolean pset.temporary true

                cpu
                        int     cpu.sys_id 56
                        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 11
                        string  cpu.comment
                        string  cpu.status on-line

Monitoring Resource Pools

Monitor all of the Resource Pools, and display stats onces every 5 seconds (cntl-C to stop).

[root@banpdb2 ~]# poolstat -r all 5
 id pool                 type rid rset                  min  max size used load
  0 pool_default         pset  -1 pset_default            1  66K   60 0.00 0.06
  8 SUNWtmp_banpmrt1     pset   1 SUNWtmp_banpmrt1        1    4    4 0.00 0.01

 id pool                 type rid rset                  min  max size used load
  0 pool_default         pset  -1 pset_default            1  66K   60 0.05 0.06
  8 SUNWtmp_banpmrt1     pset   1 SUNWtmp_banpmrt1        1    4    4 0.00 0.00

 id pool                 type rid rset                  min  max size used load
  0 pool_default         pset  -1 pset_default            1  66K   60 0.04 0.05
  8 SUNWtmp_banpmrt1     pset   1 SUNWtmp_banpmrt1        1    4    4 0.00 0.00
^C

Changing the number of CPUs a dynamic Resource Pool has

This example dynamically changes the minimum number of CPUs from 1 to 2, and the maximum from 4 to 10. Zone banpmrt1 will revert back to it's default values the next time the zone is rebooted. Use the zonecfg command to change the default reboot values.

[root@banpdb2 ~]# poolstat -r all
 id pool                 type rid rset                  min  max size used load
  0 pool_default         pset  -1 pset_default            1  66K   61 0.00 0.04
  8 SUNWtmp_banpmrt1     pset   1 SUNWtmp_banpmrt1        1    4    3 0.00 0.01

[root@banpdb2 ~]# poolcfg -dc "modify pset SUNWtmp_banpmrt1 (uint pset.min=2;uint pset.max=10)"

[root@banpdb2 ~]# poolstat -r all
 id pool                 type rid rset                  min  max size used load
  0 pool_default         pset  -1 pset_default            1  66K   61 0.00 0.04
  8 SUNWtmp_banpmrt1     pset   1 SUNWtmp_banpmrt1        2   10    3 0.00 0.07

--Tom Stevenson (talk) 13:50, 16 April 2013 (EDT)

Help contents:

Reading: Go | Search | URL | Namespace | Page name | Section | Link | Backlinks | Piped link | Interwiki link | Redirect | Variable | Category | Special page
Tracking changes: Recent | (enhanced) | Related | Watching pages | Page history | Diff | User contributions | Edit summary | Minor edit | Patrolled edit
Logging in and preferences: Logging in | Preferences | User style
Editing: Overview | Wikitext | New page | List | Images/files | Image page | Special characters | Formula | Table | EasyTimeline | Inputbox | Template | (p. 2) | Renaming (moving) a page | Editing shortcuts | Talk page | Testing | Export | Import | rlc |