Saturday 28 December 2013

SOALRIS 11 ZONES ( CPU ASSIGN THROUG POOLS)

ASSigning pool to zones
zonecfg:testzone> remove dedicated-cpu
zonecfg:testzone> set pool=pool_batch
zonecfg:testzone> info
zonename: testzone
zonepath: /TESTZONE
brand: solaris
autoboot: true
bootargs:
file-mac-profile:
pool: pool_batch
limitpriv:
scheduling-class:
ip-type: exclusive
hostid:
fs-allowed:
net:
        address not specified
        allowed-address not specified
        configure-allowed-address: true
        physical: net3
        defrouter not specified
capped-memory:
        physical: 4G
        [swap: 1G]
        [locked: 100M]
rctl:
        name: zone.max-swap
        value: (priv=privileged,limit=1073741824,action=deny)
rctl:
        name: zone.max-locked-memory
        value: (priv=privileged,limit=104857600,action=deny)

root@solaris2:/usr/lib/pool# zoneadm -z testzone boot
root@solaris2:/usr/lib/pool# zoneadm list -cv
  ID NAME             STATUS     PATH                           BRAND    IP
   0 global           running    /                              solaris  shared
  10 testzone         running    /TESTZONE                      solaris  excl

root@solaris2:/etc/zones# zlogin testzone
[Connected to zone 'testzone' pts/3]
Oracle Corporation      SunOS 5.11      11.1    May 2013
root@testzone:~# psrinfo
0       on-line   since 12/27/2013 23:12:07
1       on-line   since 12/27/2013 23:12:09
2       on-line   since 12/27/2013 23:12:09
3       on-line   since 12/27/2013 23:12:09
4       on-line   since 12/27/2013 23:12:09
5       on-line   since 12/27/2013 23:12:09
6       on-line   since 12/27/2013 23:12:09
7       on-line   since 12/27/2013 23:12:09
8       on-line   since 12/27/2013 23:12:09
9       on-line   since 12/27/2013 23:12:09


how to add virtual load on cpu
#perl -e 'while (--$ARGV[0] and fork) {}; while () {}' 10
#zonestat 5
#sar ===>cmd not work inside zone
root@testzone:~# sar
-bash: sar: command not found

No comments:

Post a Comment