跳至主要内容

博文

目前显示的是 十二月, 2009的博文

IP地址子网掩码位数换算方法及解释子网掩码的作用

IP地址子网掩码: 子网位    /主机位         子网掩码           子网最大数       /主机最大数  2         /22         /10 | 255.192.0.0           2           /4194302  3         /21         /11 | 255.224.0.0           6           /2097150  4         /20         /12 | 255.240.0.0           14          /1048574  5         /19         /13 | 255.248.0.0           30          /524286  6         /18         /14 | 255.252.0.0           62          /262142  7         /17         /15 | 255.254.0.0           126         /131070  8         /16         /16 | 255.255.0.0           254         /65536  9         /15         /17 | 255.255.128.0         510         /32766  10        /14         /18 | 255.255.192.0         1022        /16382  11        /13         /19 | 255.255.224.0         2046        /8190  12        /12         /20 | 255.255.240.0         4094        /4094  13        /11         /21 | 255.255.248.0         8190        /2046  14        /10         /22 | 255.255.252.0         16382       /1022  15        /9    

fssnap & ufsdump

昨天下班前在捣鼓关于如何使用更好的zone更快捷和方面,从目前已知的角度而言在 zoneadm -z test_zone export > test_zone.conf后会到出已经设置好的zone文件,那我们现在将这个文件导出之后,进行修改。 root@cnnjx026 # more cnnjx026z011.conf  create -b set zonepath=/local/zones/cnnjx026z011 set autoboot=true set ip-type=shared add fs set dir=/app set special=/app set type=lofs add options rw add options nodevices end add fs set dir=/env set special=/env set type=lofs add options rw add options nodevices end add fs set dir=/var/home set special=/var/home set type=lofs add options rw add options nodevices end add net set address= 147.128.38.11/24 set physical=nxge0 set defrouter=147.128.38.1 end add rctl set name=zone.max-swap add value (priv=privileged,limit=2147483648,action=deny) end add attr set name=machine set type=string set value=sun4v end add dedicated-cpu set ncpus=1 end add capped-memory set physical=2G end 按照这个设置,只需要稍微改下里面的系统文件在run一下zonecfg -z 123 -f cnnjx026z011.conf 就能产生一个新的zone,然后就能换能up and running了。免去了大量配置的麻烦。 捣鼓完批量安装后,是捣鼓备份。 最近有位同事被开了,主要还是备份

Solaris Zone

闲来无事,开始折腾Solaris的机器,虚拟化一直是作为之后几年的首要卖点,当然啊了,从整体的应用角度而言,确实是这样。 越来越多的end-user开始自己安装或者通过老外的requirement开始进行zone的deploy,目前手上就遇到大概2个case. 而且在过一段时间,等ip address assignment结束,还有一个case也将开始使用zone. 早先在CSS team里其实接触过zone,但是更多的表现是已webzone的方式使用的,完全不知道是何物。今天初装,有半天领悟。   #zonecfg -z yourzonename #zonecfg:yourzonename> create -b set zonepath=/local/zones/yourzonename set autoboot=true add fs set dir=/app  --->做这个之前确保是localdisk而不是nfs。 set special=/app set type=lofs add options rw add options nodevices end add fs set dir=/env set special=/env set type=lofs add options rw add options nodevices end add fs set dir=/etc/home set special=/etc/home set type=lofs add options rw add options nodevices end add net set address= 137.58.166.216/24 --->确保你有IP,而非DHCP。netmask是跟着主机的netmask走的. 之后在里面设置会导致报错。 set physical=bge0 set defrouter=137.58.166.1 -->取保你的router是走的通的,跟主机保持一致。 end add attr set name=machine set type=string set value=sun4u end set add capped-cpu --->cpu set ncpus=1 add capped-memory -