zonecfg¥³¥Þ¥ó¥É¤Çzone¤Ë¥×¡¼¥ë(pool)¤ò³ä¤êÅö¤Æ¤ë
¡Ú¸¡¾Ú´Ä¶¡Û
#
more /etc/release
Solaris 10 3/05 s10_74L2a SPARC
Copyright
2005 Sun Microsystems, Inc. All Rights Reserved.
Use is subject to license terms.
Assembled 22 January 2005
zonecfg¥³¥Þ¥ó¥É¤Ç°Ê²¼¤Î¤è¤¦¤Ëpool¤ò³ä¤êÅö¤Æ¤ë¤³¤È¤¬¤Ç¤¤ë¡£´û¤Ë¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤¿¥¾¡¼¥ó¤Ë³ä¤êÅö¤Æ¤ë¤È¤¤ÏÀßÄê¸å¤Ë¥¾¡¼¥ó¤ÎºÆµ¯Æ°¤¬É¬
Íס£
#
zonecfg -z zone1
zonecfg:zone1>
set pool=zone1-pool
zonecfg:zone1>
exit
°Ê²¼¤Î¤è¤¦¤ËÀßÄê¤ò³Îǧ¤¹¤ë¡£
#
cat /etc/zones/zone1.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE zone PUBLIC "-//Sun Microsystems Inc//DTD Zones//EN"
"file:///usr/share/lib/xml/dtd/zonecfg.dtd.1">
<!--
DO NOT EDIT THIS FILE. Use zonecfg(1M) instead.
-->
<zone name="zone1" zonepath="/export/zone1" autoboot="true"
pool="zone1-pool">
<inherited-pkg-dir directory="/lib"/>
<inherited-pkg-dir directory="/platform"/>
<inherited-pkg-dir directory="/sbin"/>
<inherited-pkg-dir directory="/usr"/>
<network address="192.168.110.101" physical="qfe0"/>
<filesystem special="/opt/zone1" directory="/usr/local"
type="lofs"/>
<rctl name="zone.cpu-shares">
<rctl-value priv="privileged" limit="20"
action="none"/>
</rctl>
</zone>
zone1¤ò¥ê¥Ö¡¼¥È¤·zone1¤Ë¥í¥°¥¤¥ó¤·¤Æ»È¤Ã¤Æ¤¤¤ëCPU¤ò³Îǧ¤·¤Æ¤ß¤ë¡£
¤Þ¤º¡¢¥°¥í¡¼¥Ð¥ë¥¾¡¼¥ó¤Ç¤Îpooladm¤Èmpstat¤Î·ë²Ì¤ò¤ß¤ë¡£
#
pooladm
system domain-a
string system.comment
int
system.version 1
boolean system.bind-default
true
int
system.poold.pid 12948
pool zone1-pool
int pool.sys_id 1
boolean pool.active true
boolean pool.default false
int pool.importance 1
string pool.comment
pset zone1-pset
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 zone1-pset
int pset.sys_id 1
boolean pset.default false
uint pset.min 1
uint pset.max 3
string pset.units population
uint pset.load 0
uint pset.size 3
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
cpu
int cpu.sys_id 2
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 11
uint pset.size 1
string pset.comment
cpu
int cpu.sys_id 3
string cpu.comment
string cpu.status on-line
#
mpstat
CPU minf mjf xcal intr ithr csw icsw migr smtx srw
syscl usr sys wt idl
0 1 0 906
603 502 35 0
3 1 0
10 3 0 0 97
1 0 0
2 305 301 14
0 1 0
0 8 3
0 0 97
2 1 0
3 305 301 58
1 5 1
0 14 3 0
0 97
3 1 0
3 307 301 92
2 7 1
0 21 3 1
0 97
¾åµ·ë²Ì¤«¤ézone1-pool ¤Ï zone1-pset ¤ËɳÉÕ¤±¤é¤ì¤Æ¤¤¤Æ zone1-pset ¤Ï¸½»þÅÀ¤Ç
£³¤Ä¤ÎCPU¤ò»ý¤Ã¤Æ¤¤¤ë¤³¤È¤¬¤ï¤«¤ë¡£
¤Þ¤¿¡¢°Ê²¼¤Î¤è¤¦¤Ëzone1¤Ç¤âƱÍͤ˥³¥Þ¥ó¥É¤ò¼Â¹Ô¤·¤Æ¤ß¤¿¡£
ÀßÄêÄ̤ꡢzone1-pool¤òÍøÍѤ·¤Æ¤¤¤ë¤¿¤áCPU¤Ï³ä¤êÅö¤Æ¤é¤ì¤Æ¤¤¤ë£³¤Ä¤À¤±¤·¤«É½¼¨¤µ¤ì¤Ê¤¤¡£pooladm¥³¥Þ¥ó¥É¤Ç¤â³ä¤êÅö¤Æ¤é¤ì¤Æ¤¤¤ë
¥×¡¼¥ë(zone1-pool)¤È¥×¥í¥»¥Ã¥µ¥»¥Ã¥È(zone1-pset)¤Î¾ðÊó¤·¤«É½¼¨¤µ¤ì¤Ê¤¤¤³¤È¤¬¤ï¤«¤ë¡£
# zlogin zone1
[¥¾¡¼¥ó 'zone1' pts/4 ¤ËÀܳ¤µ¤ì¤Þ¤·¤¿]
Last login: Wed Mar 16 16:20:21 on pts/4
Sun Microsystems Inc. SunOS
5.10 Generic January 2005
zone1#
zone1#
mpstat
CPU minf mjf xcal intr ithr csw icsw migr smtx srw
syscl usr sys wt idl
0 1 0 906
603 502 35 0
3 1 0
10 3 0 0 97
1 0 0
2 305 301 14
0 1 0
0 8 3
0 0 97
2 1 0
3 305 301 58
1 5 1
0 14 3 0
0 97
zone1#
pooladm
system domain-a
string system.comment
int
system.version 1
boolean system.bind-default
true
int
system.poold.pid 12948
pool zone1-pool
int pool.sys_id 1
boolean pool.active true
boolean pool.default false
int pool.importance 1
string pool.comment
pset zone1-pset
pset zone1-pset
int pset.sys_id 1
boolean pset.default false
uint pset.min 1
uint pset.max 3
string pset.units population
uint pset.load 0
uint pset.size 3
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
cpu
int cpu.sys_id 2
string cpu.comment
string cpu.status on-line
¡Ú¥¢¥ó¥±¡¼¥È¡Û
¤³¤Îµ»ö¤Ï¤¿¤á¤Ë¤Ê¤ê¤Þ¤·¤¿¤«¡©
¡¡¡¡¡¡¤Ï¤¤¡¡¡¡/¡¡¡¡¤¤¤¤¤¨