ラベル 3ware の投稿を表示しています。 すべての投稿を表示
ラベル 3ware の投稿を表示しています。 すべての投稿を表示

2014年12月20日土曜日

3wareとLSIのRAIDディスク状態情報をテキストで書き出したい>grepで複数の単語をつかんでリダイレクト。

3wareのRAIDcontroller状況は3dm2をインストールすることでブラウザ閲覧していたのだけれども、
LSIはブラウザではなく、MEGARAID STRAGE MANAGERで管理することになった。
このMegaRAID Strage Managerがすこぶる使いづらい。
外部PCからはポートを開放しないと参照できないし、何より管理PCにMegaRAID Storage Managerをインストールしなければならない。
3071,5571とか正直わざわざ開けたくない。
そこで、CUIで動く3ware CLIと、MegaRAID CLIで出した情報をテキストに書き込むシェルを書いて対応した。
MegaRAID CLIも使い勝手はかなり微妙。大文字小文字入り乱れるわ、インストール時にパス通してくれないわ・・・。
そもそも見たい情報が分かりやすく出てこない。
LSIは買収したのだから、そろそろ3wareの新商品を出してほしいものである・・・。
気を取り直して


3ware CLIについては
http://www.clustcom.com/content/view/149/32/

MegaCLIについては

http://www.maruko2.com/mw/MegaRAID%E3%81%AE%E3%82%B9%E3%83%86%E3%83%BC%E3%82%BF%E3%82%B9%E3%82%92%E7%A2%BA%E8%AA%8D%E3%81%99%E3%82%8B

http://d.hatena.ne.jp/mtkys+tech-memo/20121215/1355591665

を参考にした。

単純にほしい情報をgrepでつかんでリダイレクトさせる。
grepは"-e"で連続してつかんでくれるので、それを利用する。
まず書き出し日時をdateで書き出し。次に情報を追記する。
それをcronに突っ込むと、定期的に書き出してくれる(たとえば/etc/cron.daily/に実行権限をつけて入れておく)。
(foobarには書き出したいディレクトリを指定)

3wareは

#! /bin/sh
#書き出しファイル指定
writefile=/foobar/raidstatus.txt
#日時
date > $writefile
#スロットナンバーと、書き出したいディスク状態、ディスクデータを指定する
tw_cli show >> $writefile
#/c0のところはサーバによって違うことがあるので、必ず事前に確認する
tw_cli /c0 show >> $writefile

megaraidは

#!/bin/sh
#書き出しファイル指定
writefile=/foobar/raidstatus.txt
#日時
date > $writefile
#スロットナンバーと、書き出したいディスク状態、ディスクデータを指定する
/opt/MegaRAID/MegaCli/MegaCli64 -PDList -aALL | grep -e Slot -e state >> $writefile
echo '-----------------------------------------------------'
/opt/MegaRAID/MegaCli/MegaCli64 -PDList -aALL | grep -e Slot -e Raw -e Inquiry >> $writefile

以下のようなテキストファイルができあがるので、参照しやすいところに直書きだしするようにすればいい。
ただし、改行コードがLFなので、LFを正しく解釈する、たとえばワードパッドやnoeditor等で開かないと、
すごく長い一行を読まされる。

3ware CLIは以下--------------------

Wed Dec 10 00:00:00 JST 2014

Ctl   Model        (V)Ports  Drives   Units   NotOpt  RRate   VRate  BBU
------------------------------------------------------------------------
c0    9650SE-8LPML 8         8        3       0       1       1      OK      


Unit  UnitType  Status         %RCmpl  %V/I/M  Stripe  Size(GB)  Cache  AVrfy
------------------------------------------------------------------------------
u0    RAID-10   VERIFYING      -       12%     256K    5587.9    RiW    ON    
u1    SPARE     OK             -       -       -       1863.01   -      OFF   
u2    SPARE     OK             -       -       -       1863.01   -      OFF   

VPort Status         Unit Size      Type  Phy Encl-Slot    Model
------------------------------------------------------------------------------
p0    OK             u0   1.82 TB   SATA  0   -            ST2000DM001-1CH164 
p1    OK             u0   1.82 TB   SATA  1   -            ST2000DM001-1CH164 
p2    OK             u0   1.82 TB   SATA  2   -            ST2000DM001-1CH164 
p3    OK             u0   1.82 TB   SATA  3   -            ST2000DM001-1CH164 
p4    OK             u0   1.82 TB   SATA  4   -            ST2000DM001-1CH164 
p5    OK             u0   1.82 TB   SATA  5   -            ST2000DM001-1CH164 
p6    OK             u1   1.82 TB   SATA  6   -            ST2000DM001-1CH164 
p7    OK             u2   1.82 TB   SATA  7   -            ST2000DM001-1CH164 

Name  OnlineState  BBUReady  Status    Volt     Temp     Hours  LastCapTest
---------------------------------------------------------------------------
bbu   On           Yes       OK        OK       OK       220    10-May-2014 



LSI MegaRAIDは以下--------------------


2014年 12月 10日 水曜日 10:00:00 JST
Slot Number: 0
Firmware state: Online, Spun Up
Slot Number: 1
Firmware state: Online, Spun Up
Slot Number: 2
Firmware state: Online, Spun Up
Slot Number: 3
Firmware state: Online, Spun Up
Slot Number: 4
Firmware state: Online, Spun Up
Slot Number: 5
Firmware state: Online, Spun Up
Slot Number: 6
Firmware state: Hotspare, Spun down
Slot Number: 7
Firmware state: Hotspare, Spun down
-----------------------------------------------------
Slot Number: 0
Raw Size: 1.819 TB [0xe8e088b0 Sectors]
Inquiry Data:             Z5XXXXHVST2000DM001-1ER164                      CC43   
Slot Number: 1
Raw Size: 1.819 TB [0xe8e088b0 Sectors]
Inquiry Data:             Z4XXXX4QST2000DM001-1ER164                      CC43   
Slot Number: 2
Raw Size: 1.819 TB [0xe8e088b0 Sectors]
Inquiry Data:             Z4XXXXGJST2000DM001-1ER164                      CC43   
Slot Number: 3
Raw Size: 1.819 TB [0xe8e088b0 Sectors]
Inquiry Data:             Z4XXXXABST2000DM001-1ER164                      CC43   
Slot Number: 4
Raw Size: 1.819 TB [0xe8e088b0 Sectors]
Inquiry Data:             Z4XXXXJJST2000DM001-1ER164                      CC43   
Slot Number: 5
Raw Size: 1.819 TB [0xe8e088b0 Sectors]
Inquiry Data:             Z5XXXXZ9ST2000DM001-1ER164                      CC43   
Slot Number: 6
Raw Size: 1.819 TB [0xe8e088b0 Sectors]
Inquiry Data:             Z5XXXXK6ST2000DM001-1ER164                      CC43   
Slot Number: 7
Raw Size: 1.819 TB [0xe8e088b0 Sectors]
Inquiry Data:             Z4XXXXQTST2000DM001-1ER164                      CC43   

-----------------------------------------
余談だが、SeagateのST2000DM001がとにかく悩ましい。
よく飛ぶ。というか、環境を選ぶ。
普通の環境(室温24から30度)だと、半年に数台壊れていく。壊れたHDDは東芝に換装。
逆にサーバ室(室温21度)だと年に2台程度。他社とあまり変わらず。
デスクトップ用だよね?これ・・・。

2014年6月26日木曜日

centosで3wareのRAIDカード(9650SE)ファームウェアをアップデートする

9650SEに2TBのHDDを入れようとしたら、どうも容量計算がおかしい。
RAID0を組んだら容量が「減る」。何故。
1.5TBなら普通に認識するので、恐らくファームウェアだろうと思い、RAIDボードのファームウェアをアップデートする。

新規案件だったけれども、USB起動で入れるのが面倒だったので、取り敢えずシングルディスクのみ活性化させて、そこにcentosをインストール。

ダウンロード先はこちら
 http://www.lsi.com/support/Pages/download-search.aspx
レガシーに分類されているので注意。

続けてファームウェアと3dm2_cliをインストール。
 全てrootで行う。
インストールは
3DM2_CLI-linux_10.2.2.1_9.5.5.1.zipを解凍し
unzip ./3DM2_CLI-linux_10.2.2.1_9.5.5.1.zip
その中のinstall.shに実行権限を与え
chmod +x install.sh
起動させる。
sh ./install.sh -i
あとは全部入れるか監視だけ入れるか聞かれるので、全部入り(たしか0を選択)。
そのまま入ってくれるはず。

ファームのアップデートは以下を参考に
http://voicetwo.selfip.com/yashikiba/blog/item_319.html


9650SEのファームは
9650SE_9690SA_firmware_9.5.5.1codeset_fw4.10.00.027.zip

prom0006.img
です。
3dm2のコマンドプロンプト呼び出し
tw_cli
//localhost>というプロンプトに変わるので、
/c0 update fw=/(イメージファイルを置いたディレクトリ)/prom0006.img

と叩けば終了。
複数カードがある場合は、先頭のc0だけではなくc1とかにもなるので、
tw_cli info
でカードを確認すること。

2012年で更新ストップなので、今後は辛くなるかな・・・。
一応4TB以上の云々みたいなのがリリースノートに書いてあったので、多分行ける、と思うが・・・。

追記
カードは必ず確認した方がよさそう。ファーム上げたらc0がc4になってた・・・。

2013年7月2日火曜日

3dm2にまたまたつながらない

3ware(旧AMCC、今はLSIロジックに権利移行)のRAIDカードにくっついてくる、3dm2。
直観的な操作と現状把握には非常にわかりやすく、使い勝手がよかったのだが、ある日突然つながらなくなった。
初めは
http://kuni92.net/2012/04/-3ware-3dm2.html
のように、windowsのセキュリティアップデートで繋がらないものだと思っていたのだが、linux上のfirefoxでもつながらなくなってしまっているからたちが悪い。
上記URLだと、パッチを当てることで解決するようだが、リンク先が

Server Error in '/' Application.

とか言い出すので、探す気も失せた。

で、どうやって解決したのかというと、なんてことはない。
ブラウザを別の奴に変えたのだ。

xfaceで標準搭載されている軽量ブラウザ「midori」。
http://ja.wikipedia.org/wiki/Midori_%28%E3%82%A6%E3%82%A7%E3%83%96%E3%83%96%E3%83%A9%E3%82%A6%E3%82%B6%29

ubuntuやlinuxmintならば、
sudo apt-get install midori
これでインストールできる。


Windows版もあるが、試していない。
今度試してみよう。

追記
すみません、これ3dm2cliの更新をサボってたからでした。
更新方法は、
http://www.lsi.com/support/Pages/download-search.aspx
から
 3DM2_CLI-linux_10.2.2.1_9.5.5.1.zipをダウンロード、
3DM2_CLI-linux_10.2.2.1_9.5.5.1.zipを解凍し

unzip ./3DM2_CLI-linux_10.2.2.1_9.5.5.1.zip
その中のinstall.shに実行権限を与え
chmod +x install.sh
起動させる。
sh ./install.sh -u
でアンインストールして

sh /\install.sh -i
でインストール。


midoriでは勿論繋がるのでtipsとして残しておきます。

2008年4月9日水曜日

9650SEを挿してLINUXをインストールすると、ファーストブートから「Disk read error」と吐いて固まる

9650SEを使ってRAIDを構築し、ファイルサーバを制作しようとマシンを組んでいたのだけれども、
GRUBがエラーを吐いておかしなことになっていた。今回はその話。

3ware 9650SEを挿し、centcentos5を入れたまではよかったのだけれども、再起動させると
どうしても

root(hd1,0)
Error 25:Disk read error

と吐いて止まる。

このエラーが出るときは、大抵当該HDDが御臨終で読めません、という類なのだけれども、
エラーチェックをしても何も出て来ないし、そもそも(何でエラー出すのかさっぱりわからなかったので)
centos5を何度も入れており、壊れている筈が無い。

此処で嵌ったのが、当初はRAIDで作った領域にインストールしていたので、それが壊れているものだと思い込ん
でいたこと。
後々普通にSATAにインストールしている時も,その思い込みから抜け出せなかった。

最終的なトラブルシュート---------------
とりあえずあらゆるカードを取り外してcentos5をインストール
→インストール成功 ブート成功

LANカードを挿してインストール
→インストール成功 ブート成功

3ware 9650SE RAIDカードを挿してインストール
→インストール成功 ブート成功(これではまった。HDDを付けていない状態でinstallすると大丈夫なようだ
が、HDDを付けると下記になる)

LANカード、3ware 9650SE RAIDカード+RAID用HDDを挿してインストール
→インストール成功 ブート失敗
---------------

この状況から察するに、どうやらRAID用のHDDを付けてインストール作業をすると、インストール時のドライブ
構成とは別物で認識するらしい。
エラーを吐いて止まる際、起動のコンフィグレーションができるので、

試しに
root(hd1,0)

root(hd0,0)
としてbootさせると、すんなりbootしてしまった。
(というか、むしろどこに何を入れたのか覚えて置けよという話な気がしないでもないのだが・・・)。

GRUBの設定を書き換える
http://www.atmarkit.co.jp/flinux/rensai/linuxtips/313grubsetting.html
のもありかなあと思ったのだけれども、それはそれで気持ち悪かったので、

centos5のインストール時に、詳細なGRUBの設定で、
MBRではなくファーストパーティションに書き込むようにすると、普通に起動した。

ということで、同じ症状が出た場合の対処法は「GRUBをMBRに書き込まず、ブートドライブのファーストパー
ティションに書き込むことで回避できる。

まさかGRUBで止まるとは思っていなかったので、この問題で散々悩み抜いてしまった。
手間を惜しまず、トラブルシュートの時間を惜しまないようにしなければならない(相対的に解決までの時間が
短くなる)。

2008年2月8日金曜日

3ware 9650SE ドライバアップデート

何故か移動時毎回
controller queue error: cleaning 0x06:0x000e
と出る。凄く不安。

まあ、多分ボード自体が・・・。

気を取り直し、ドライバアップデート。

まずは3ware AMCCからドライバをダウンロード
http://www.3ware.com/support/download.asp

製品名 3ware 9650SE
モデル 8LPMLが入ってるところ
アイテム ドライバ
OSはcentosの5.1なので、RedHat EL5を選択。

とりあえず、zip圧縮のものを引っ張ってきた。
driver-redhat-el5-x86_64-9.5.0.zip 97 KB 64-bit Drivers only in .zip format
選択すると、確認画面が表示されるので、agreeのリンクをコピーして
コンソール上で適当なフォルダを作り、貼り付けでダウンロード。
wget http://www.3ware.com/download/Escalade9690SA-Series/9.5.0/driver-redhat-el5-x86_64-9.5.0.zip

解凍
unzip driver-redhat-el5-x86_64-9.5.0.zip

マニュアル
http://japan.3ware.com/support/9000UG_JA.pdf
に沿ってインストールしていく。

cp /3w-9xxx.o /lib/modules//drivers/scsi/3w-9xxx.o

なので、解凍して出来た3w-9xxx.koがあるディレクトリに移動し、
cp 3w-9xxx.ko /lib/modules/2.6.18-53.1.6.el5(ここは今使ってるカーネルバージョン)/kernel/drivers/scsi/
マニュアルと記述が違うのは何故かは知りません。マニュアルと構造が食い違うのは多分バージョンのせいです。
上書きした後、modprobeを編集。
alias scsi_hostadapter 3w-9xxx
が書かれていることを確認。無ければ書く。
マニュアルには
alias scsi_hostadapter 3w-9xxx.ko

と書いてあるが、このまま書いたらabortされる。
最後に、初期RAMディスクをアップグレード。
cd /boot
mkinitrd -v -f initrd-.img

とマニュアルにあるので、そのままやる。
/sbin/mkinitrd -v(おしゃべり) -f(上書き可能) initrd-2.6.18-53.1.6.el5(ここも使っているkernelバージョン),img 2.6.18-53.1.6.el5(ここも使っているkernelバージョン)
-vを付けないと何も表示されない。





そのときのlog。
/sbin/mkinitrd -v -f initrd-2.6.18-53.1.6.el5.img 2.6.18-53.1.6.el5
Creating initramfs
Looking for deps of module uhci-hcd
Looking for deps of module ohci-hcd
Looking for deps of module ehci-hcd
Looking for deps of module ext3: jbd
Looking for deps of module jbd
Looking for driver for device sda2
Looking for deps of module pci:v000013C1d00001004sv000013C1sd00001004bc01sc04i00: scsi_mod 3w-9xxx
Looking for deps of module scsi_mod
Looking for deps of module sd_mod: scsi_mod
Looking for deps of module 3w-9xxx: scsi_mod
Looking for deps of module 3w-9xxx.ko
No module 3w-9xxx.ko found for kernel 2.6.18-53.1.6.el5, aborting.
[root@zilcon boot]# vi /etc/modprobe.conf
[root@zilcon boot]# /sbin/mkinitrd -v -f initrd-2.6.18-53.1.6.el5.img 2.6.18-53.1.6.el5
Creating initramfs
Looking for deps of module uhci-hcd
Looking for deps of module ohci-hcd
Looking for deps of module ehci-hcd
Looking for deps of module ext3: jbd
Looking for deps of module jbd
Looking for driver for device sda2
Looking for deps of module pci:v000013C1d00001004sv000013C1sd00001004bc01sc04i00: scsi_mod 3w-9xxx
Looking for deps of module scsi_mod
Looking for deps of module sd_mod: scsi_mod
Looking for deps of module 3w-9xxx: scsi_mod
Looking for deps of module ata_piix: scsi_mod libata
Looking for deps of module libata: scsi_mod
Looking for deps of module pata_marvell: scsi_mod libata
Looking for deps of module ide-disk
Looking for deps of module dm-mod
Looking for deps of module dm-mirror: dm-mod
Looking for deps of module dm-zero: dm-mod
Looking for deps of module dm-snapshot: dm-mod
Using modules: /lib/modules/2.6.18-53.1.6.el5/kernel/drivers/usb/host/uhci-hcd.ko /lib/modules/2.6.18-53.1.6.el5/kernel/drivers/usb/host/ohci-hcd.ko /lib/modules/2.6.18-53.1.6.el5/kernel/drivers/usb/host/ehci-hcd.ko /lib/modules/2.6.18-53.1.6.el5/kernel/fs/jbd/jbd.ko /lib/modules/2.6.18-53.1.6.el5/kernel/fs/ext3/ext3.ko /lib/modules/2.6.18-53.1.6.el5/kernel/drivers/scsi/scsi_mod.ko /lib/modules/2.6.18-53.1.6.el5/kernel/drivers/scsi/sd_mod.ko /lib/modules/2.6.18-53.1.6.el5/kernel/drivers/scsi/3w-9xxx.ko /lib/modules/2.6.18-53.1.6.el5/kernel/drivers/ata/libata.ko /lib/modules/2.6.18-53.1.6.el5/kernel/drivers/ata/ata_piix.ko /lib/modules/2.6.18-53.1.6.el5/kernel/drivers/ata/pata_marvell.ko /lib/modules/2.6.18-53.1.6.el5/kernel/drivers/md/dm-mod.ko /lib/modules/2.6.18-53.1.6.el5/kernel/drivers/md/dm-mirror.ko /lib/modules/2.6.18-53.1.6.el5/kernel/drivers/md/dm-zero.ko /lib/modules/2.6.18-53.1.6.el5/kernel/drivers/md/dm-snapshot.ko
/sbin/nash -> /tmp/initrd.lB3280/bin/nash
/sbin/insmod.static -> /tmp/initrd.lB3280/bin/insmod
copy from `/lib/modules/2.6.18-53.1.6.el5/kernel/drivers/usb/host/uhci-hcd.ko' [elf64-x86-64] to `/tmp/initrd.lB3280/lib/uhci-hcd.ko' [elf64-x86-64]
copy from `/lib/modules/2.6.18-53.1.6.el5/kernel/drivers/usb/host/ohci-hcd.ko' [elf64-x86-64] to `/tmp/initrd.lB3280/lib/ohci-hcd.ko' [elf64-x86-64]
copy from `/lib/modules/2.6.18-53.1.6.el5/kernel/drivers/usb/host/ehci-hcd.ko' [elf64-x86-64] to `/tmp/initrd.lB3280/lib/ehci-hcd.ko' [elf64-x86-64]
copy from `/lib/modules/2.6.18-53.1.6.el5/kernel/fs/jbd/jbd.ko' [elf64-x86-64] to `/tmp/initrd.lB3280/lib/jbd.ko' [elf64-x86-64]
copy from `/lib/modules/2.6.18-53.1.6.el5/kernel/fs/ext3/ext3.ko' [elf64-x86-64] to `/tmp/initrd.lB3280/lib/ext3.ko' [elf64-x86-64]
copy from `/lib/modules/2.6.18-53.1.6.el5/kernel/drivers/scsi/scsi_mod.ko' [elf64-x86-64] to `/tmp/initrd.lB3280/lib/scsi_mod.ko' [elf64-x86-64]
copy from `/lib/modules/2.6.18-53.1.6.el5/kernel/drivers/scsi/sd_mod.ko' [elf64-x86-64] to `/tmp/initrd.lB3280/lib/sd_mod.ko' [elf64-x86-64]
copy from `/lib/modules/2.6.18-53.1.6.el5/kernel/drivers/scsi/3w-9xxx.ko' [elf64-x86-64] to `/tmp/initrd.lB3280/lib/3w-9xxx.ko' [elf64-x86-64]
copy from `/lib/modules/2.6.18-53.1.6.el5/kernel/drivers/ata/libata.ko' [elf64-x86-64] to `/tmp/initrd.lB3280/lib/libata.ko' [elf64-x86-64]
copy from `/lib/modules/2.6.18-53.1.6.el5/kernel/drivers/ata/ata_piix.ko' [elf64-x86-64] to `/tmp/initrd.lB3280/lib/ata_piix.ko' [elf64-x86-64]
copy from `/lib/modules/2.6.18-53.1.6.el5/kernel/drivers/ata/pata_marvell.ko' [elf64-x86-64] to `/tmp/initrd.lB3280/lib/pata_marvell.ko' [elf64-x86-64]
copy from `/lib/modules/2.6.18-53.1.6.el5/kernel/drivers/md/dm-mod.ko' [elf64-x86-64] to `/tmp/initrd.lB3280/lib/dm-mod.ko' [elf64-x86-64]
copy from `/lib/modules/2.6.18-53.1.6.el5/kernel/drivers/md/dm-mirror.ko' [elf64-x86-64] to `/tmp/initrd.lB3280/lib/dm-mirror.ko' [elf64-x86-64]
copy from `/lib/modules/2.6.18-53.1.6.el5/kernel/drivers/md/dm-zero.ko' [elf64-x86-64] to `/tmp/initrd.lB3280/lib/dm-zero.ko' [elf64-x86-64]
copy from `/lib/modules/2.6.18-53.1.6.el5/kernel/drivers/md/dm-snapshot.ko' [elf64-x86-64] to `/tmp/initrd.lB3280/lib/dm-snapshot.ko' [elf64-x86-64]
/sbin/lvm.static -> /tmp/initrd.lB3280/bin/lvm
/etc/lvm -> /tmp/initrd.lB3280/etc/lvm
`/etc/lvm/lvm.conf' -> `/tmp/initrd.lB3280/etc/lvm/lvm.conf'
/sbin/dmraid.static -> /tmp/initrd.lB3280/bin/dmraid
/sbin/kpartx.static -> /tmp/initrd.lB3280/bin/kpartx
Adding module uhci-hcd
Adding module ohci-hcd
Adding module ehci-hcd
Adding module jbd
Adding module ext3
Adding module scsi_mod
Adding module sd_mod
Adding module 3w-9xxx
Adding module libata
Adding module ata_piix
Adding module pata_marvell
Adding module dm-mod
Adding module dm-mirror
Adding module dm-zero
Adding module dm-snapshot

2007年6月28日木曜日

RAID BOARD 3ware 9650SEのBIOS起動ボタン(ショートカット)、ストライプサイズ。

最速RAIDカードの名が高い3ware 9650のBIOS。
3BMと呼ばれるそれを立ち上げるには、pcが起動してから「ALT+3」を押す。
一番困ったのがストライプサイズ。
ストライプサイズとは、RAID0に代表される並列データ転送のサイズのこと。
http://www.runser.jp/doc/sata-raid-stripe-1.html
を参考にすると、

これまでRAID0(ストライピング)は、動画編集のような用途で大容量とシーケンシャル アクセス性能の向上を目的にした技術と思っていましたが、たまたまインテルが掲載した記事を見ていると、ストライプ サイズを大きくすると非シーケンシャル I/O の性能が向上するという記述がありました。
「非シーケンシャル I/O」というのはランダム アクセスになりますが、よくよく考えたらそうなることも理解できます。

動画編集などでシーケンシャル アクセスを重視するならストライプ サイズは8K/16K、OSやアプリケーション等を使用するランダム アクセスを重視するなら64K/128Kバイト、両者のバランスを取るなら32Kでもいいかと思います。
さらにランダム アクセスを重視するならストライプ サイズ256Kとか512Kとか大きな設定ができるRAIDを使う方法もあるでしょう。


とりあえずデフォルトは64KBになっている。
ファイルを入れておくためだけのサーバなので、どっちつかずなデフォルト値でいくことにした。

全ての設定を終え、保存するために「F8」を押すと、アレイのbuildが始まる。死ぬほど長いので気を付けること。

2007年6月4日月曜日

3dm2 SETTINGS

3ware 9590SE-8LPMLのインストール。
ドライバは組み込みなので必要なし(CENTOS5)。
PCI-eの4x以上のポートに差せば認識される。

3ware Software Download Center
http://www.3ware.com/support/download.asp
より、3dm2をダウンロード。
3dm2にはcliも含まれている。

productを指定し、モデルを選択、3DM2_CLI Management Utilitiesを選択、
Linux - 64 bitを選択。
画面遷移後、ライセンス認証画面になるので、Agreeのリンク先を
wget等で、該当物をダウンロード。

wget http://www.3ware.com/download/Escalade9650SE-Series/9.4.1.1/3DM2_CLI-Linux_x86_64-9.4.1.1.tgz

解凍。
tar zxvf 3DM2_CLI-Linux_x86_64-9.4.1.1.tgz

(zxvf以降はその時の最新を指定)。

コンソールオプションを付けて実行
sh setupLinux_x64.bin -console

--------------------------------
iptablesなどでポートをがちがちに固めていると、たまに起動に失敗する(何故・・・)。
なので、僕はiptablesをstopさせてからやりました。
最終的にブラウザでhttps://192.168.X.XX:888などにアクセスする際も気を付けること。

パスワードが分からない
3wareのパスワードは、付属CDのUsrGuide.pdfに書いてある。が、見つけにくい。


以下はこんなの出ましたよ。適当に応えましたよの図。
ここの前にライセンスがでる。

You must approve to continue.

[ ] 1 - I accept the terms of the license agreement.
[X] 2 - I do not accept the terms of the license agreement.

To select an item enter its number, or 0 when you are finished: [0]


You must approve to continue.

[ ] 1 - I accept the terms of the license agreement.
[X] 2 - I do not accept the terms of the license agreement.

To select an item enter its number, or 0 when you are finished: [0]


You must approve to continue.

[ ] 1 - I accept the terms of the license agreement.
[X] 2 - I do not accept the terms of the license agreement.

To select an item enter its number, or 0 when you are finished: [0]


You must approve to continue.

[ ] 1 - I accept the terms of the license agreement.
[X] 2 - I do not accept the terms of the license agreement.

To select an item enter its number, or 0 when you are finished: [0]


You must approve to continue.

[ ] 1 - I accept the terms of the license agreement.
[X] 2 - I do not accept the terms of the license agreement.

To select an item enter its number, or 0 when you are finished: [0]


You must approve to continue.

[ ] 1 - I accept the terms of the license agreement.
[X] 2 - I do not accept the terms of the license agreement.

To select an item enter its number, or 0 when you are finished: [0]


You must approve to continue.

[ ] 1 - I accept the terms of the license agreement.
[X] 2 - I do not accept the terms of the license agreement.

To select an item enter its number, or 0 when you are finished: [0]


You must approve to continue.

[ ] 1 - I accept the terms of the license agreement.
[X] 2 - I do not accept the terms of the license agreement.

To select an item enter its number, or 0 when you are finished: [0]


You must approve to continue.

[ ] 1 - I accept the terms of the license agreement.
[X] 2 - I do not accept the terms of the license agreement.

To select an item enter its number, or 0 when you are finished: [0] 1


[X] 1 - I accept the terms of the license agreement.
[ ] 2 - I do not accept the terms of the license agreement.

To select an item enter its number, or 0 when you are finished: [0] 0



Press 1 for Next, 2 for Previous, 3 to Cancel or 5 to Redisplay [1] 1

-------------------------------------------------------------------------------
3ware Disk Management Tools - InstallShield Wizard

3ware Disk Management Tools Install Location

Please specify a directory or press Enter to accept the default directory.

Destination Directory [/opt/AMCC]

Press 1 for Next, 2 for Previous, 3 to Cancel or 5 to Redisplay [1] 1

-------------------------------------------------------------------------------
3ware Disk Management Tools - InstallShield Wizard

Select the features for "3ware Disk Management Tools" you would like to
install:

3ware Disk Management Tools

To select/deselect a feature or to view its children, type its number:

1. [x] 3ware Disk Manager 2 ( 3DM2 )
2. [x] Command Line Interface ( tw_cli )
3. [x] Firmware Upgrade Utility ( tw_update )
4. [x] 3ware Documentation ( HTML Bookshelf )

Other options:

0. Continue installing

Enter command [0] 0


Press 1 for Next, 2 for Previous, 3 to Cancel or 5 to Redisplay [1] 1

-------------------------------------------------------------------------------
3DM2 Email Configuration


Would You To Enable Email Notification?

[X] 1 - Yes
[ ] 2 - No

To select an item enter its number, or 0 when you are finished: [0] 0



Email(SMTP) Server Name.

Enter email server name: [] foobar.com


Sender Email Address.

Enter sender email address: [] info@foobar.com


Recipient Email Address.

Enter recipient email address: [] info@foobar.com
Enter recipient email address: [info@foobar.com]


Press 1 for Next, 2 for Previous, 3 to Cancel or 5 to Redisplay [1] 1
3DM2 has a feature that will log commands performed.

Would you like to enable Command Logging?

[X] 1 - Yes
[ ] 2 - No

To select an item enter its number, or 0 when you are finished: [0] 0



-------------------------------------------------------------------------------
3DM2 Security Configuration


Would you like to limit 3dm2 connections to localhost only?

[X] 1 - Yes
[ ] 2 - No

To select an item enter its number, or 0 when you are finished: [0] 2


[ ] 1 - Yes
[X] 2 - No

To select an item enter its number, or 0 when you are finished: [0] 0


3dm2 listening port.

Enter port for web management: [888]


Press 1 for Next, 2 for Previous, 3 to Cancel or 5 to Redisplay [1] 1

-------------------------------------------------------------------------------
3ware Disk Management Tools - InstallShield Wizard

3ware Disk Management Tools will be installed in the following location:

/opt/AMCC

with the following features:

3ware Disk Manager 2 ( 3DM2 )
Command Line Interface ( tw_cli )
Firmware Upgrade Utility ( tw_update )
3ware Documentation ( HTML Bookshelf )

for a total size:

124.2 MB

Press 1 for Next, 2 for Previous, 3 to Cancel or 5 to Redisplay [1] 1

-------------------------------------------------------------------------------
3ware Disk Management Tools - InstallShield Wizard


Installing 3ware Disk Management Tools. Please wait...


|-----------|-----------|-----------|------------|
0% 25% 50% 75% 100%
|||||||||||||||||||||||||||||||||||||||||||||||||
-------------------------------------------------------------------------------
3ware Disk Management Tools - InstallShield Wizard

The InstallShield Wizard has successfully installed 3ware Disk Management
Tools. Choose Finish to exit the wizard.

Press 3 to Finish or 5 to Redisplay [3] 3

Please wait while 3dm2 is started...

参考サイト
http://www.takajun.net/pc/storyp061214.htm

2007/06/30追記
元からRAIDにシステムを突っ込もうとする場合、CENTOS5インストーラだとRAIDを認識してくれない。
CENTOS4.5インストーラは認識するので、こちらからバージョンアップが適当。