How to create solaris zone sample.



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/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/25196159/viewspace-697130/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值