22. 2-8.App/zonecfg
[global]# zonecfg -z AAAAA01 export
create -b
set zonepath=/export/zones/AAAAA01
set autoboot=true
set pool=pool_AAAAA01
set ip-type=shared
add inherit-pkg-dir
set dir=/lib
end
add inherit-pkg-dir
set dir=/platform
end
add inherit-pkg-dir
set dir=/sbin
end
add inherit-pkg-dir
set dir=/usr
end
add inherit-pkg-dir
set dir=/opt
end
add net
set address=10.123.49.1/24
set physical=aggr49010
end
add net
set address=10.123.50.1/24
set physical=aggr50010
end
22
23. 2-9.App/MAC Address
• ip-type=shared だと MAC Addr 共通
• Switch の LAG/Port-channel 設定に注意!
• MAC Addr の hash だと Port が偏る
• src-dst-ip などへの変更は必須
Catalyst6500(config)#port-channel load-balance ?
dst-ip Dst IP Addr
dst-mac Dst Mac Addr
dst-port Dst TCP/UDP Port
mpls Load Balancing for MPLS packets
src-dst-ip Src XOR Dst IP Addr
src-dst-mac Src XOR Dst Mac Addr
src-dst-port Src XOR Dst TCP/UDP Port
src-ip Src IP Addr
src-mac Src Mac Addr
src-port Src TCP/UDP Port
23
24. 2-10.App/MTU
• local-zone の MTU 設定できず
global の cron で ifconfig…(ダサい)
• vnic で exclusive にすれば OK
[global]# cat .../set_MTU_of_local-zone.sh
#!/bin/sh
(snip)
while [ ${alias} -le ${max} ]
do
ifconfig aggr11001:${alias} mtu 1500
ifconfig aggr12001:${alias} mtu 1500
ifconfig aggr21001:${alias} mtu 9000
ifconfig aggr22001:${alias} mtu 9000
alias=`expr ${alias} + 1`
done
24
25. 2-11.App/まとめ
○ リソース分離
Solaris Container(local-zone)任せ
○ 最小リソースでサービスを提供可能
× local-zone の MTU 設定しづらい(できない)
- crossbow には色々期待
25
33. 4-2.Storage/NAS with ZFS
• ZFS on Intel Server はシングルポイント
• 落ちてサービス影響が無い部分でのみ使用
[ZFS-NAS]# cat /etc/release
Solaris 10 10/09 s10x_u8wos_08a X86
Copyright 2009 Sun Microsystems, Inc. All Rights Reserved.
Use is subject to license terms.
Assembled 16 September 2009
[ZFS-NAS]# zpool get version zfspool
NAME PROPERTY VALUE SOURCE
zfspool version 15 default
[ZFS-NAS]# zfs get compressratio
NAME PROPERTY VALUE SOURCE
rpool compressratio 1.28x -
rpool/ROOT compressratio 1.00x -
(snip)
rpool/xxx compressratio 1.29x -
rpool/xxx/home compressratio 3.45x -
rpool/xxx/log compressratio 5.86x -
33
34. 4-3.Storage/WAFLと比較
• ZFS と WAFL(NetApp)
• filesystem としての機能はほぼ同じ
• 性能は・・・ハードウェア依存?
• ZFS は filesystem 以外も多機能
• Solaris などの OS があって便利
• DTrace (使いこなせてないけど)
• NetApp は cluster で可用性 UP
• IB(など)で head 間を接続し
• TCP張りっ放しで fail-over 可能
34