ITPub博客

首页 > Linux操作系统 > Linux操作系统 > How to create solaris zone sample.

How to create solaris zone sample.

原创 Linux操作系统 作者:JoshuaJin 时间:2011-06-03 16:56:33 0 删除 编辑


vi /export/home3/zone251tomcat6.sh
create -b
set zonepath=/export/home3/zone251tomcat6
set autoboot=true

add dedicated-cpu
set ncpus=16
set importance=5
end

add capped-memory
set physical=16g
set swap=32g
set locked=1g
end

add net
set address=129.200.9.251
set physical=bge0
end

add net
set address=10.33.33.251
set physical=bge1
end

add attr
set name=comment
set type=string
set value="zone251 for tomcat"
end

commit
exit








svcs -a |grep pool
disabled   17:21:57 svc:/system/pools/dynamic:default
disabled   18:15:41 svc:/system/pools:default
svcadm enable svc:/system/pools/dynamic:default
svcadm enable svc:/system/pools:default
mkdir -p /export/home3/zone251tomcat6
chmod 700 /export/home3/zone251tomcat6
zonecfg -z zone251tomcat6 -f /export/home3/zone251tomcat6.sh
zoneadm list -vc
zoneadm -z zone251tomcat6 install
zoneadm -z zone251tomcat6 boot
zlogin -C zone251tomcat6
psrinfo; prstat -s size; mpstat 5; prtdiag -v; prtconf |grep Mem; ifconfig -a

zonecfg -z zone251tomcat6
zonecfg:zone251tomcat6> help
zonecfg:zone251tomcat6> info  
zonecfg:zone251tomcat6> remove net physical=igb0  
zonecfg:zone251tomcat6> select dedicated-cpu ncpus=24-32
zonecfg:zone251tomcat6:dedicated-cpu> set ncpus=14
zonecfg:zone251tomcat6:dedicated-cpu> end
zonecfg:zone251tomcat6> exit

zoneadm -z zone251tomcat6 reboot

vi  /export/home/zone251tomcat6/root/etc/sysidcfg
system_locale=C
terminal=dtterm
network_interface=primary {
hostname=zone_1
default_route=10.10.10.1
ip_address=10.10.10.13
netmask=255.255.255.0
}
timeserver=localhost
security_policy=NONE
name_service=NONE
touch /export/home/zone251tomcat6/root/etc/.NFS4inst_state.domain



来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/25196159/viewspace-697130/,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2011-01-05

  • 博文量
    30
  • 访问量
    62552