PRIMERGY がやって来た
PRIMERGY をお借りしましたので、FreeBSD 8.2RC3 を入れてみました。
PRIMARGE RX200 S6
http://primeserver.fujitsu.com/primergy/catalog/rx200s6/
未サポートのLinux OS動作確認情報の中に FreeBSD についても情報があります。
http://primeserver.fujitsu.com/primergy/software/linux/technical/#support
注意すべき点としては
hint.atkbd.0.disabled=1 hint.psm.0.disabled=1
の設定が必要です。
今回使用した機器は
Xeon X5650 @ 2.67GHz Dual
Memory 8G
6CORE 2個に、SMT で、 CPU が (6 x 2 x 2) の 24個見えています。
FreeBSD/SMP: Multiprocessor System Detected: 24 CPUs FreeBSD/SMP: 2 package(s) x 6 core(s) x 2 SMT threads cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 cpu2 (AP): APIC ID: 2 cpu3 (AP): APIC ID: 3 cpu4 (AP): APIC ID: 4 cpu5 (AP): APIC ID: 5 cpu6 (AP): APIC ID: 16 cpu7 (AP): APIC ID: 17 cpu8 (AP): APIC ID: 18 cpu9 (AP): APIC ID: 19 cpu10 (AP): APIC ID: 20 cpu11 (AP): APIC ID: 21 cpu12 (AP): APIC ID: 32 cpu13 (AP): APIC ID: 33 cpu14 (AP): APIC ID: 34 cpu15 (AP): APIC ID: 35 cpu16 (AP): APIC ID: 36 cpu17 (AP): APIC ID: 37 cpu18 (AP): APIC ID: 48 cpu19 (AP): APIC ID: 49 cpu20 (AP): APIC ID: 50 cpu21 (AP): APIC ID: 51 cpu22 (AP): APIC ID: 52 cpu23 (AP): APIC ID: 53
NIC は igb0/igb1 として動作します。
RAID は mpt ドライバで動いています。
mptutil というコマンドでステータス等が確認出来ます。
# mptutil show config mpt0 Configuration: 1 volumes, 2 drives volume 0 (136G) RAID-1 OPTIMAL spans: drive 1 (137G) ONLINESAS drive 0 (137G) ONLINE SAS spare pools: 0
make buildwolrd
取りあえず、馴染みのあるテストとして make buildworld してみました。
/usr/src /usr/obj /tmp は tmpfs を使っています。
j オプションの数字を変えて、どれくらい変化があるか見てみました。
1回毎に /usr/obj は消していますが、それ以外は何もしていません。
それぞれ1回しかやっていませんので、信頼性は少ないと思います。
# time make -j[n] buildworld > /dev/null # rm -rf /usr/obj/*
結果
-j time 4 17:23 6 13:15 8 11:26 10 10:25 12 10:03 14 09:57 16 09:54 17 09:54 18 09:51 19 09:59 20 09:54 22 10:00 24 10:06 30 11:06 36 12:42 48 15:58
余り増やしすぎると却って遅くなりますね。
mptutil -- Utility for managing LSI Fusion-MPT controllers
FreeBSD 標準搭載のツールです。
# mptutil usage: mptutil [-u unit]... Commands include: version show adapter - display controller information show config - display RAID configuration show drives - list physical drives show events - display event log show volumes - list logical volumes fail - fail a physical drive online - bring an offline physical drive online offline - mark a physical drive offline name volume status - display volume status volume cache - Enable or disable the volume drive caches clear - clear volume configuration create [-vq] [-s stripe] [, [,...]] delete add [volume] - add a hot spare remove - remove a hot spare # mptutil show adapter mpt0 Adapter: Board Name: RAID 0 1 SAS 4P Board Assembly: 2007-11-27-0 Chip Name: C1064E Chip Revision: UNUSED RAID Levels: RAID0, RAID1, RAID1E RAID0 Stripes: 64K RAID1E Stripes: 64K RAID0 Drives/Vol: 2-10 RAID1 Drives/Vol: 2 RAID1E Drives/Vol: 3-10 # mptutil show config mpt0 Configuration: 1 volumes, 2 drives volume 0 (136G) RAID-1 OPTIMAL spans: drive 1 (137G) ONLINE SAS drive 0 (137G) ONLINE SAS spare pools: 0 # mptutil show drives mpt0 Physical Drives: 0 ( 137G) ONLINE SAS bus 0 id 1 1 ( 137G) ONLINE SAS bus 0 id 2
# mptutil fail 1
# mptutil offline 1
# mptutil online 1
で、停止・リビルドさせてみました。
mpt0:vol0(mpt0:0:0): 2 Members: (mpt0:1:1:0): Primary Online (mpt0:1:2:0): Secondary Online mpt0:vol0(mpt0:0:0): RAID-1 - Degraded mpt0:vol0(mpt0:0:0): Status ( Enabled ) (mpt0:vol0:1): No longer configured mpt0: Volume(0:2:1): Physical Disk Status Changed mpt0: mpt_cam_event: 0x15 mpt0: mpt_cam_event: 0x21 mpt0: Volume(0:2:1): Physical Disk Status Changed mpt0: mpt_cam_event: 0x15 mpt0: mpt_cam_event: 0x21 (mpt0:vol0:1): Physical (mpt0:0:2:0), Pass-thru (mpt0:1:1:0) (mpt0:vol0:1): Online (mpt0:vol0:1): Status ( Out-Of-Sync ) mpt0: mpt_cam_event: 0x21 mpt0:vol0(mpt0:0:0): Volume Status Changed mpt0:vol0(mpt0:0:0): RAID-1 - Degraded mpt0:vol0(mpt0:0:0): Status ( Enabled Re-Syncing ) mpt0:vol0(mpt0:0:0): Low Priority Re-Sync mpt0:vol0(mpt0:0:0): 285155328 of 285155328 blocks remaining mpt0: IR resync update 1 completed mpt0: IR resync update 2 completed mpt0: IR resync update 3 completed mpt0: IR resync update 4 completed mpt0: IR resync update 5 completed mpt0: IR resync update 6 completed mpt0: IR resync update 7 completed mpt0: IR resync update 8 completed mpt0: IR resync update 9 completed 〜 mpt0: IR resync update 99 completed mpt0:vol0(mpt0:0:0): RAID-1 - Degraded mpt0:vol0(mpt0:0:0): Status ( Enabled Re-Syncing ) mpt0:vol0(mpt0:0:0): Low Priority Re-Sync mpt0:vol0(mpt0:0:0): 2800696 of 285155328 blocks remaining mpt0: IR resync update 0 completed (mpt0:vol0:1): Physical Disk Status Changed mpt0: mpt_cam_event: 0x21 mpt0:vol0(mpt0:0:0): Volume Status Changed mpt0: mpt_cam_event: 0x15 mpt0: mpt_cam_event: 0x21 mpt0: mpt_cam_event: 0x21 mpt0:vol0(mpt0:0:0): RAID-1 - Optimal mpt0:vol0(mpt0:0:0): Status ( Enabled ) (mpt0:vol0:1): Online
144G HDD リビルドに約1時間と言う所でした。