HighPoint RocketRAID
この記事で参照されているオーバーレイは、作者に放棄されています。これらの手順が今も使えるかどうかは分かりません。
このガイドでは、Gentoo Linux 上への RocketRAID カードのインストールを支援します。
インストール
HPT-RR オーバーレイを有効化する
HPT-RR オーバーレイには、RocketRAID カードを簡単にインストールして構成するために必要なパッケージが含まれています。
eselect repository を使う
app-eselect/eselect-repository と dev-vcs/git がインストールされていることを確認してください:
root #
emerge --ask --noreplace app-eselect/eselect-repository dev-vcs/git
次にオーバーレイを構成して同期してください:
root #
eselect repository add RocketRAID git https://github.com/dsiggi/RocketRAID.git
root #
emerge --sync RocketRAID
layman を使う
オーバーレイを有効化するための 2 番目の方法は layman を使う方法です。/etc/layman/layman.cfg を編集して、オーバーレイ定義を追加してください:
/etc/layman/layman.cfg
コンフィグのオーバーレイの部分...
overlays :
https://api.gentoo.org/overlays/repositories.xml
https://raw.githubusercontent.com/dsiggi/RocketRAID/master/overlays.xml
...
次に、オーバーレイを同期して、RocketRAID のオーバーレイ (RocketRAID という名前です) を追加してください:
root #
layman -S
root #
layman -a RocketRAID
もちろん、リポジトリをクローンしてローカルオーバーレイにすることもできます:
root #
git clone https://github.com/dsiggi/RocketRAID.git
Linux カーネルモジュールをビルドしてインストールする
ハードウェアカードに応じて、正しい USE フラグを有効化してください。
そして、正しいカーネルモジュールを自動的にビルドしてインストールするために、sys-block/rocketraid パッケージをインストールしてください。
root #
emerge --ask rocketraid
カーネルモジュールをロードする
Load the newly built kernel module (example for the rr232x module):
root #
modprobe rr232x
Validate that the hardware has been properly detected by reading through the dmesg output close after loading the module:
root #
dmesg
... [ 2.499913] rr232x: module license 'Proprietary' taints kernel. [ 2.500453] rr232x:RocketRAID 232x controller driver v1.10 (Dec 24 2014 11:50:36) [ 2.500684] rr232x:adapter at PCI 3:4:0, IRQ 16 [ 3.073130] rr232x:start channel [0,0] [ 3.073149] rr232x:start channel [0,1] [ 3.073167] rr232x:start channel [0,3] [ 3.424978] rr232x:channel [0,0] started successfully [ 3.785922] rr232x:channel [0,1] started successfully [ 4.156860] rr232x:channel [0,3] started successfully [ 4.498815] scsi host6: rr232x ...
If the module correctly found the hardware, then make sure that this module is automatically loaded at boot. This can be accomplished by adding it to the /etc/modules-load.d/raid.conf file.
サポートソフトウェアをインストールする
There are a couple of software packages that provide additional support for the RocketRAID cards.
The sys-block/hptraidconf package provides configuration and monitoring support for the RocketRAID card. It requires a daemon running on the system, provided through the sys-block/hptsvr package. The client itself does not need to be installed on the system that has the RAID card in it.
Deploy the two packages:
root #
emerge --ask hptsvr
root #
emerge --ask hptraidconf
設定
To run the server, add the right hardware module to /etc/hptcfg:
root #
echo "rr232x" > /etc/hptcfg
Now start the server:
root #
/etc/init.d/hptsvr start
To start the server on every system boot, type in:
root #
rc-update add hptsvr default
管理
To administer the RAID card settings, connect to the server using the hptraidconf command.
The default username is RAID and the default password is hpt.
root #
hptraidconf [-i server:port]
HighPoint RAID Management Command Line Utility v3.3 Copyright (C) 2009 HighPoint Technologies, Inc. All rights reserved. Login:RAID Password:
After a successful login, a prompt will appear through which the administrative tasks can be executed.
HighPoint CLI>
query arrays 1
ID: 1 Name: Storage Type: RAID5 Status: NORMAL Capacity(GB): 2000.25 BlockSize: 64k SectorSize: 512B CachePolicy: WB Progress: -- ID Capacity MaxFree Flag Statue ModelNumber ------------------------------------------------------------------------------- 1/1 1000.12 0 NORMAL RAID ST1000LM024 HN-M101MBB 1/2 1000.12 0 NORMAL RAID ST1000LM024 HN-M101MBB 1/4 1000.12 0 NORMAL RAID ST1000LM024 HN-M101MBB -------------------------------------------------------------------------------
All supported commands are documented in the official documentation (.tgz).
サポートされているカード
Card | module |
---|---|
RocketRAID 1720 | rr172x |
RocketRAID 1740/1742 | rr174x |
RocketRAID 2210 | rr2210 |
RocketRAID 2220/2224 | rr222x |
RocketRAID 2240 | rr2240 |
RocketRAID 2314/2310/2302/2300 | rr231x |
RocketRAID 2322/2320 | rr232x |
RocketRAID 2340 | rr2340 |
RocketRAID 2522 | rr2522 |
RocketRAID 2644X4 | rr2644 |
RocketRAID 2640X4/2640X1/2642 | rr264x |
RocketRAID 2680/2684 | rr268x |
RocketRAID 620/622 | rr62x |
RocketRAID 640/644 | rr64x |
RocketRAID 640L/644L/644LS/642L | rr64xl |
スペシャルサンクス
Special thanks go to camper2 from ubuntuforums.org who wrote the patches for the kernel modules.
Also special thanks goes to dlder from forums.opensuse.org for the new patches for kernels >=4.7.