How to create Resource Pool and assign it to zone.
nlxusd01:a511627> zonecfg -z USD-zone info
zonename: USD-zone
zonepath: /export/home/zones/USD-zone
brand: native
autoboot: true
bootargs:
pool: pool_default
limitpriv:
scheduling-class:
ip-type: shared
hostid:
[cpu-shares: 3]
inherit-pkg-dir:
dir: /lib
inherit-pkg-dir:
dir: /platform
inherit-pkg-dir:
dir: /sbin
inherit-pkg-dir:
dir: /usr
fs:
dir:
/usr/local
special:
/export/home/zones/USD-zone/local
raw not
specified
type: lofs
options: [rw,nodevices]
net:
address:
161.89.90.14
physical:
nxge0
defrouter not
specified
net:
address:
192.168.147.19
physical:
nxge1
defrouter not
specified
attr:
name: comment
type: string
value:
"USD R12 GZ Primary Application Server"
dataset:
name:
rpool/USD
dataset:
name:
USDpool/USD
rctl:
name:
zone.cpu-shares
value:
(priv=privileged,limit=3,action=none)
nlxusd01:a511627> zonecfg -z UAT-zone info
zonename: UAT-zone
zonepath: /export/home/zones/UAT-zone
brand: native
autoboot: true
bootargs:
pool: pool_default
limitpriv:
scheduling-class:
ip-type: shared
hostid:
[cpu-shares: 3]
inherit-pkg-dir:
dir: /lib
inherit-pkg-dir:
dir: /platform
inherit-pkg-dir:
dir: /sbin
inherit-pkg-dir:
dir: /usr
fs:
dir:
/usr/local
special:
/export/home/zones/UAT-zone/local
raw not
specified
type: lofs
options:
[rw,nodevices]
net:
address: 161.89.90.37
physical:
nxge0
defrouter not
specified
net:
address:
192.168.147.26
physical:
nxge1
defrouter not
specified
attr:
name: comment
type: string
value:
"USD R12 UAT01-zone UAT Server"
dataset:
name:
rpool/UAT
rctl:
name:
zone.cpu-shares
value:
(priv=privileged,limit=3,action=none)
nlxusd01:a511627> zonecfg -z SDM-zone info
zonename: SDM-zone
zonepath: /export/home/zones/SDM-zone
brand: native
autoboot: true
bootargs:
pool: pool_default
limitpriv:
scheduling-class:
ip-type: shared
hostid:
[cpu-shares: 3]
inherit-pkg-dir:
dir: /lib
inherit-pkg-dir:
dir: /platform
inherit-pkg-dir:
dir: /sbin
inherit-pkg-dir:
dir: /usr
fs:
dir:
/usr/local
special:
/export/home/zones/SDM-zone/local
raw not
specified
type: lofs
options:
[rw,nodevices]
net:
address:
161.89.90.15
physical:
nxge0
defrouter not
specified
net:
address:
192.168.147.20
physical:
nxge1
defrouter not
specified
attr:
name: comment
type: string
value:
"SDM R12 GZ Primary Application Server"
dataset:
name:
rpool/SDM
dataset:
name: SDMpool/SDM
rctl:
name:
zone.cpu-shares
value:
(priv=privileged,limit=3,action=none)
nlxusd01:a511627> zonecfg -z DEV-zone info
zonename: DEV-zone
zonepath: /export/home/zones/DEV-zone
brand: native
autoboot: true
bootargs:
pool: pool_default
limitpriv:
scheduling-class:
ip-type: shared
hostid:
[cpu-shares: 3]
inherit-pkg-dir:
dir: /lib
inherit-pkg-dir:
dir: /platform
inherit-pkg-dir:
dir: /sbin
inherit-pkg-dir:
dir: /usr
fs:
dir:
/usr/local
special:
/export/home/zones/DEV-zone/local
raw not
specified
type: lofs
options:
[rw,nodevices]
net:
address:
161.89.90.36
physical:
nxge0
defrouter not
specified
net:
address:
192.168.147.25
physical:
nxge1
defrouter not
specified
attr:
name: comment
type: string
value:
"USD R12 DEV01-zone DEV Server"
dataset:
name:
rpool/DEV
rctl:
name:
zone.cpu-shares
value:
(priv=privileged,limit=3,action=none)
nlxusd01:a511627>
nlxusd01:a511627>
nlxusd01:a511627> zoneadm list -cv
ID NAME STATUS PATH BRAND IP
0 global running / native
shared
1 USD-zone running /export/home/zones/USD-zone native
shared
2 UAT-zone running /export/home/zones/UAT-zone native
shared
3 SDM-zone running /export/home/zones/SDM-zone native
shared
4 DEV-zone running /export/home/zones/DEV-zone native
shared
nlxusd01:a511627> zlogin USD-zone halt
tnlxusd01:a511627> zlogin UAT-zone
halt^C
nlxusd01:a511627> zlogin UAT-zone halt
nlxusd01:a511627> zlogin SDM-zone halt
nlxusd01:a511627> zlogin DEV-zone halt
nlxusd01:a511627>
nlxusd01\:a511627>
cp -p /etc/pooladm.conf /etc/pooladm.conf.280213
nlxusd01\:a511627>
nlxusd01\:a511627>
nlxusd01\:a511627> svcs svc:/system/pools/dynamic
STATE
STIME FMRI
disabled
0:49:42 svc:/system/pools/dynamic:default
nlxusd01\:a511627> svcs svc:/system/pools:default
STATE
STIME FMRI
online
0:50:23 svc:/system/pools:default
nlxusd01\:a511627> svcadm enable svc:/system/pools/dynamic
nlxusd01\:a511627> svcadm enable
svc:/system/pools:default
nlxusd01\:a511627> svcs svc:/system/pools/dynamic
STATE
STIME FMRI
online
1:00:19 svc:/system/pools/dynamic:default
nlxusd01\:a511627> svcs svc:/system/pools:default
STATE
STIME FMRI
online
0:50:23 svc:/system/pools:default
nlxusd01\:a511627> poolcfg -c discover
nlxusd01\:a511627> touch /tmp/create_pools.input
nlxusd01\:a511627> vi /tmp/create_pools.input
"/tmp/create_pools.input" 0 lines, 0 characters
create pset pset_USD_zone (uint pset.min = 16; uint pset.max
= 16 )
create pool pool_USD_zone
associate pool pool_USD_zone (pset pset_USD_zone)
transfer to pset pset_USD_zone ( cpu 0 ; cpu 1 ; cpu 2 ; cpu
3 )
transfer to pset pset_USD_zone ( cpu 4 ; cpu 5 ; cpu 6 ; cpu
7 )
transfer to pset pset_USD_zone ( cpu 8 ; cpu 9 ; cpu 10 ;
cpu 11 )
transfer to pset pset_USD_zone ( cpu 12 ; cpu 13 ; cpu 14 ;
cpu 15 )
create pset pset_SDM_zone (uint pset.min = 8; uint pset.max
= 8 )
create pool pool_SDM_zone
associate pool pool_SDM_zone (pset pset_SDM_zone)
transfer to pset pset_SDM_zone ( cpu 16 ; cpu 17 ; cpu 18 ;
cpu 19 )
transfer to pset pset_SDM_zone ( cpu 20 ; cpu 21 ; cpu 22 ;
cpu 23 )
create pset pset_DEV_zone (uint pset.min = 2; uint pset.max
= 4 )
create pool pool_DEV_zone
associate pool pool_DEV_zone (pset pset_DEV_zone)
transfer to pset pset_DEV_zone ( cpu 24 ; cpu 25 )
create pset pset_UAT_zone (uint pset.min = 2; uint pset.max
= 4 )
create pool pool_UAT_zone
associate pool pool_UAT_zone (pset pset_UAT_zone)
transfer to pset pset_UAT_zone ( cpu 26 ; cpu 27 )
~
"/tmp/create_pools.input" 20 lines, 1077
characters
nlxusd01\:a511627>
nlxusd01\:a511627> more /tmp/create_pools.input
create pset pset_USD_zone (uint pset.min = 16; uint pset.max
= 16 )
create pool pool_USD_zone
associate pool pool_USD_zone (pset pset_USD_zone)
transfer to pset pset_USD_zone ( cpu 0 ; cpu 1 ; cpu 2 ; cpu
3 )
transfer to pset pset_USD_zone ( cpu 4 ; cpu 5 ; cpu 6 ; cpu
7 )
transfer to pset pset_USD_zone ( cpu 8 ; cpu 9 ; cpu 10 ;
cpu 11 )
transfer to pset pset_USD_zone ( cpu 12 ; cpu 13 ; cpu 14 ;
cpu 15 )
create pset pset_SDM_zone (uint pset.min = 8; uint pset.max
= 8 )
create pool pool_SDM_zone
associate pool pool_SDM_zone (pset pset_SDM_zone)
transfer to pset pset_SDM_zone ( cpu 16 ; cpu 17 ; cpu 18 ;
cpu 19 )
transfer to pset pset_SDM_zone ( cpu 20 ; cpu 21 ; cpu 22 ;
cpu 23 )
create pset pset_DEV_zone (uint pset.min = 2; uint pset.max
= 4 )
create pool pool_DEV_zone
associate pool pool_DEV_zone (pset pset_DEV_zone)
transfer to pset pset_DEV_zone ( cpu 24 ; cpu 25 )
create pset pset_UAT_zone (uint pset.min = 2; uint pset.max
= 4 )
create pool pool_UAT_zone
associate pool pool_UAT_zone (pset pset_UAT_zone)
transfer to pset pset_UAT_zone ( cpu 26 ; cpu 27 )
nlxusd01\:a511627> poolcfg -f /tmp/create_pools.input -d
nlxusd01\:a511627> pooladm
system default
string system.comment
int system.version 1
boolean
system.bind-default true
string system.poold.objectives wt-load
pool
pool_UAT_zone
int pool.sys_id 4
boolean pool.active true
boolean pool.default false
int pool.importance 1
string pool.comment
pset pset_UAT_zone
pool
pool_USD_zone
int pool.sys_id 1
boolean pool.active true
boolean pool.default false
int pool.importance 1
string
pool.comment
pset pset_USD_zone
pool
pool_default
int pool.sys_id 0
boolean pool.active true
boolean pool.default true
string pool.scheduler FSS
int
pool.importance 1
string pool.comment
pset pset_default
pool
pool_DEV_zone
int pool.sys_id 3
boolean pool.active true
boolean pool.default false
int pool.importance 1
string pool.comment
pset pset_DEV_zone
pool
pool_SDM_zone
int pool.sys_id 2
boolean pool.active true
boolean pool.default false
int pool.importance 1
string pool.comment
pset pset_SDM_zone
pset
pset_UAT_zone
int pset.sys_id 4
boolean pset.default false
uint pset.min 2
uint pset.max 4
string pset.units population
uint pset.load 7
uint pset.size 2
string pset.comment
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
pset
pset_USD_zone
int pset.sys_id 1
boolean pset.default false
uint pset.min 16
uint pset.max 16
string pset.units population
uint
pset.load 57
uint pset.size 16
nlxusd01\:a511627> zoneadm list -cv
ID NAME STATUS PATH BRAND IP
0 global running / native shared
- USD-zone installed /export/home/zones/USD-zone native
shared
- DEV-zone installed /export/home/zones/DEV-zone native
shared
- UAT-zone installed /export/home/zones/UAT-zone native
shared
- SDM-zone installed /export/home/zones/SDM-zone native
shared
nlxusd01\:a511627>
nlxusd01\:a511627>
nlxusd01\:a511627> zonecfg -z USD-zone export -f
usdzone_280213
nlxusd01\:a511627> zonecfg -z DEV-zone export -f
DEV-zone_280213
nlxusd01\:a511627>
nlxusd01\:a511627>
nlxusd01\:a511627> zonecfg -z UAT-zone export -f
UAT-zone_280213
nlxusd01\:a511627>
nlxusd01\:a511627>
nlxusd01\:a511627> zonecfg -z SDM-zone export -f
SDM-zone_280213
nlxusd01\:a511627>
nlxusd01\:a511627>
nlxusd01\:a511627> zonecfg -z USD-zone
zonecfg:USD-zone> remove rctl name=zone.cpu-shares
zonecfg:USD-zone> set pool=pool_SDM_zone
zonecfg:USD-zone> exit
nlxusd01\:a511627> zonecfg -z USD-zone info
zonename: USD-zone
zonepath: /export/home/zones/USD-zone
brand: native
autoboot: true
bootargs:
pool: pool_SDM_zone
limitpriv:
scheduling-class:
ip-type: shared
hostid:
inherit-pkg-dir:
dir: /lib
inherit-pkg-dir:
dir: /platform
inherit-pkg-dir:
dir: /sbin
inherit-pkg-dir:
dir: /usr
fs:
dir:
/usr/local
special:
/export/home/zones/USD-zone/local
raw not
specified
type: lofs
options:
[rw,nodevices]
net:
address:
161.89.90.14
physical:
nxge0
defrouter not
specified
net:
address:
192.168.147.19
physical:
nxge1
defrouter not
specified
attr:
name: comment
type: string
value:
"USD R12 GZ Primary Application Server"
dataset:
name:
rpool/USD
dataset:
name:
USDpool/USD
No comments:
Post a Comment