目次
複数のコントローラが存在する場合も全て表示される
# tw_cli info Ctl Model (V)Ports Drives Units NotOpt RRate VRate BBU ------------------------------------------------------------------------ c7 9690SA-8I 7 7 1 1 1 1 - c8 9650SE-4LPML 4 4 1 0 1 1 -
# tw_cli info c7 Unit UnitType Status %RCmpl %V/I/M Stripe Size(GB) Cache AVrfy ------------------------------------------------------------------------------ u0 RAID-10 REBUILDING 31% - 64K 2095.44 ON ON VPort Status Unit Size Type Phy Encl-Slot Model ------------------------------------------------------------------------------ p0 OK u0 698.63 GB SATA 0 - Hitachi HTS727575A9 p1 OK u0 698.63 GB SATA 4 - Hitachi HTS727575A9 p2 OK u0 698.63 GB SATA 1 - Hitachi HTS727575A9 p3 OK u0 698.63 GB SATA 2 - Hitachi HTS727575A9 p4 OK u0 698.63 GB SATA 3 - Hitachi HTS727575A9 p5 DEGRADED u0 698.63 GB SATA 5 - Hitachi HTS727575A9 p6 OK u? 698.63 GB SATA 6 - Hitachi HTS727575A9
# tw_cli info c7 u0 Unit UnitType Status %RCmpl %V/I/M VPort Stripe Size(GB) ------------------------------------------------------------------------ u0 RAID-10 REBUILDING 31% - - 64K 2095.44 u0-0 RAID-1 INITIALIZING 36% - - - - u0-0-0 DISK OK - - p0 - 698.481 u0-0-1 DISK OK - - p1 - 698.481 u0-1 RAID-1 REBUILDING 34% - - - - u0-1-0 DISK DEGRADED - - p5 - 698.481 u0-1-1 DISK OK - - p2 - 698.481 u0-2 RAID-1 INITIALIZING 25% - - - - u0-2-0 DISK OK - - p3 - 698.481 u0-2-1 DISK OK - - p4 - 698.481 u0/v0 Volume - - - - - 2095.44
# tw_cli /c7 show all /c7 Driver Version = 2.27.08.036 /c7 Model = 9690SA-8I /c7 Available Memory = 448MB /c7 Firmware Version = FH9X 4.04.00.016 /c7 Bios Version = BE9X 4.04.00.003 /c7 Boot Loader Version = BL9X 3.08.00.001 /c7 Serial Number = ********** /c7 PCB Version = Rev 041 /c7 PCHIP Version = 2.00 /c7 ACHIP Version = 1501290D /c7 Controller Phys = 8 /c7 Connections = 7 of 128 /c7 Drives = 7 of 128 /c7 Units = 1 of 128 /c7 Active Drives = 6 of 128 /c7 Active Units = 1 of 32 /c7 Max Drives Per Unit = 32 /c7 Total Optimal Units = 0 /c7 Not Optimal Units = 1 /c7 Disk Spinup Policy = 1 /c7 Spinup Stagger Time Policy (sec) = 1 /c7 Auto-Carving Policy = off /c7 Auto-Carving Size = 2048 GB /c7 Auto-Rebuild Policy = on /c7 Rebuild Rate = 1 /c7 Verify Rate = 1 /c7 Controller Bus Type = PCIe /c7 Controller Bus Width = 8 lanes /c7 Controller Bus Speed = 2.5 Gbps/lane Unit UnitType Status %RCmpl %V/I/M Stripe Size(GB) Cache AVrfy ------------------------------------------------------------------------------ u0 RAID-10 REBUILDING 32% - 64K 2095.44 ON ON VPort Status Unit Size Type Phy Encl-Slot Model ------------------------------------------------------------------------------ p0 OK u0 698.63 GB SATA 0 - Hitachi HTS727575A9 p1 OK u0 698.63 GB SATA 4 - Hitachi HTS727575A9 p2 OK u0 698.63 GB SATA 1 - Hitachi HTS727575A9 p3 OK u0 698.63 GB SATA 2 - Hitachi HTS727575A9 p4 OK u0 698.63 GB SATA 3 - Hitachi HTS727575A9 p5 DEGRADED u0 698.63 GB SATA 5 - Hitachi HTS727575A9 p6 OK u? 698.63 GB SATA 6 - Hitachi HTS727575A9
[コントローラ番号] set rebuild=[1〜5]
| 1 | Fastest I/O |
| 5 | Fastest Rebuild |
# tw_cli /c2 set rebuild=5 Setting Rebuild task rate on /c2 to [5] (Fastest Rebuild) ... Done.
[コントローラ番号] set verify=[1〜5]
| 1 | Fastest I/O |
| 5 | Fastest Rebuild |
# tw_cli /c2 set verify=5 Setting Verify task rate on /c2 to [5] (Fastest Verify) ... Done.
特定のOS上で実行すと以下のエラーが発生する場合がある。
Creating new unit on controller /c0 ... (0x0B:0x0015): Failed to notify OS of unit change
このエラーが発生した場合には、コマンドの末尾に「noscan」を付けて実行する。
コントローラにより、ディスクを示す番号としてVPortとPhyの二つが表示される場合がある。
RAIDアレイの構築などでポートを指定する場合には「VPort」を使用する。
VPort Status Unit Size Type Phy Encl-Slot Model ------------------------------------------------------------------------------ p1 OK u2 111.79 GB SATA 4 - PNY CS1311 120GB SSD p3 OK u0 698.63 GB SATA 6 - Hitachi HTS727575A9 p4 OK u0 698.63 GB SATA 7 - Hitachi HTS727575A9 p6 OK u1 931.51 GB SATA 0 - HGST HTS721010A9E630
[コントローラ番号] add type=single disk=[ディスク番号] name=[アレイ名]
# tw_cli > /c5 add type=single disk=0 name=SINGLE01 Creating new unit on controller /c5 ... Done. The new unit is /c5/u1. Naming unit /c5/u1 to [SINGLE01] ... Done. Setting default Storsave policy to [balance] for the new unit ... Done. Setting default Command Queuing policy for unit /c5/u1 to [on] ... Done. Setting write cache = ON for the new unit ... Done. Warning: You do not have a battery backup unit for /c5/u1 and the enabled write cache (default) may cause data loss in the event of power failure.
RAID1構成の場合は、2台のディスクが必要。
diskの指定はshowコマンドで表示される「Phy」の番号を指定する。
[コントローラ番号] add type=Raid1 disk=[ディスク番号]:[ディスク番号] autoverify name=[アレイ名]
# tw_cli > /c5 add type=Raid1 disk=1:2 autoverify name=RAID1 Creating new unit on controller /c5 ... Done. The new unit is /c5/u0. Naming unit /c5/u0 to [RAID1] ... Done. Setting AutoVerify=ON for the new unit ... Done. Setting default Storsave policy to [balance] for the new unit ... Done. Setting default Command Queuing policy for unit /c5/u0 to [on] ... Done. Setting write cache = ON for the new unit ... Done. Warning: You do not have a battery backup unit for /c5/u0 and the enabled write cache (default) may cause data loss in the event of power failure.
RAID10構成の場合は、最低4台のディスクが必要。
diskの指定はshowコマンドで表示される「Phy」の番号を指定する。
[コントローラ番号] add type=Raid10 disk=[ディスク番号]:[ディスク番号]... autoverify name=[アレイ名] noscan
# tw_cli > /c0 add type=Raid10 disk=1:3:4:5 autoverify name=RAID-10 noscan Creating new unit on controller /c0 ... Done. The new unit is /c0/u1. Naming unit /c0/u1 to [RAID-10] ... Done. Setting AutoVerify=ON for the new unit ... Done. Setting default Storsave policy to [balance] for the new unit ... Done. Setting default Command Queuing policy for unit /c0/u1 to [on] ... Done. Setting write cache = ON for the new unit ... Done. Warning: You do not have a battery backup unit for /c0/u1 and the enabled write cache (default) may cause data loss in the event of power failure.
RAID5構成の場合は、最低3台のディスクが必要。
diskの指定はshowコマンドで表示される「Phy」の番号を指定する。
アレイの作成直後は、ステータスが「INIT-PAUSED」となる。
アレイの初期化は自動リビルドの実行スケジュールのタイミングで行われる。
自動リビルドの実行スケジュールは1時間単位で開始時間を設定できるため、アレイ作成後の時間から開始するように設定を登録することで、任意の時間から初期化を開始することができる。
[コントローラ番号] add type=Raid5 disk=[ディスク番号]:[ディスク番号]... autoverify name=[アレイ名] noscan
# tw_cli /c0 add type=Raid5 disk=0:1:4:5:6:7 autoverify name=RAID5 noscan Creating new unit on controller /c0 ... Done. The new unit is /c0/u0. Naming unit /c0/u0 to [RAID5] ... Done. Setting AutoVerify=ON for the new unit ... Done. Setting default Storsave policy to [balance] for the new unit ... Done. Setting default Command Queuing policy for unit /c0/u0 to [on] ... Done. Setting write cache = ON for the new unit ... Done. Warning: You do not have a battery backup unit for /c0/u0 and the enabled write cache (default) may cause data loss in the event of power failure.
# tw_cli /c0 show Unit UnitType Status %RCmpl %V/I/M Stripe Size(GB) Cache AVrfy ------------------------------------------------------------------------------ u0 RAID-5 INIT-PAUSED - 0% 256K 27939.6 RiW ON
# tw_cli /c0 show Unit UnitType Status %RCmpl %V/I/M Stripe Size(GB) Cache AVrfy ------------------------------------------------------------------------------ u0 RAID-5 INITIALIZING - 2% 256K 27939.6 RiW ON
[コントローラ番号]/[ユニット番号] del noscan
# tw_cli /c2/u1 del noscan Deleting /c2/u1 will cause the data on the unit to be permanently lost. Do you want to continue ? Y|N [N]: y Deleting unit c2/u1 ...Done.
[コントローラ番号] add type=spare disk=[ディスク番号]
# tw_cli > /c7 add type=spare disk=7 Creating new unit on controller /c7 ... Done. The new unit is /c7/u1. WARNING: This Spare unit may replace failed drive of same interface type only.
> /c7 show Unit UnitType Status %RCmpl %V/I/M Stripe Size(GB) Cache AVrfy ------------------------------------------------------------------------------ u0 RAID-10 OK - - 64K 2095.44 ON ON u1 SPARE OK - - - 698.629 - OFF VPort Status Unit Size Type Phy Encl-Slot Model ------------------------------------------------------------------------------ p0 OK u0 698.63 GB SATA 0 - Hitachi HTS727575A9 p1 OK u0 698.63 GB SATA 4 - Hitachi HTS727575A9 p2 OK u0 698.63 GB SATA 1 - Hitachi HTS727575A9 p3 OK u0 698.63 GB SATA 2 - Hitachi HTS727575A9 p4 OK u0 698.63 GB SATA 3 - Hitachi HTS727575A9 p5 OK u0 698.63 GB SATA 5 - Hitachi HTS727575A9 p7 OK u1 698.63 GB SATA 6 - Hitachi HTS727575A9
[コントローラ番号] start rebuild disk=[ディスク番号]
# tw_cli > /c5/u0 start rebuild disk=0 Sending rebuild start request to /c5/u0 on 1 disk(s) [0] ... Done.
スロットは若番から自動的に埋められるため、任意のスロットIDを付けるためには、登録と削除を繰り返して埋める必要がある。
/[コントローラ番号] add rebuild=[曜日]:[開始時]:[継続時間]
# tw_cli /c0 add rebuild=Sun:20:12 Adding scheduled rebuild to slot 1 for [Sun, 20:00PM, 12hr(s)] ... Done.
スロットの番号を指定して設定を削除する。
/[コントローラ番号] del rebuild=[番号]
# tw_cli /c0 del rebuild=1 Removing scheduled rebuild slot [1] ... Done.
/[コントローラ番号]/[ディスク番号] show
# tw_cli /c0/p0 show VPort Status Unit Size Type Phy Encl-Slot Model ------------------------------------------------------------------------------ p0 OK u0 465.76 GB SATA 0 - HGST HTS545050A7E380
/[コントローラ番号]/[ディスク番号] show serial
# tw_cli /c0/p5 show serial /c0/p5 Serial = J3740084HBA2JE
/[コントローラ番号]/[ディスク番号] remove
# tw_cli > /c7/p6 remove Removing /c7/p6 will take the disk offline. Do you want to continue ? Y|N [N]: y Removing port /c7/p6 ... Done.
接続したHDDを検出する際の操作。
/[コントローラ番号] rescan
# tw_cli >/c5 rescan Rescanning controller /c5 for units and drives ...Done. Found the following unit(s): [none]. Found the following drive(s): [none].
定期的な自動ベリファイの設定。
大容量なアレイになるほど通常はアクセスされない領域が増え、ディスクエラーが検知されにくくなることから、週1回程度の自動ベリファイを行うことが推奨されている。
AVrfy列がONの場合、ベリファイは自動実行される。
/[コントローラ番号] show
# tw_cli /c6 show Unit UnitType Status %RCmpl %V/I/M Stripe Size(GB) Cache AVrfy ------------------------------------------------------------------------------ u0 RAID-5 VERIFY-PAUSED - 95% 256K 9313.17 ON ON u1 RAID-10 VERIFY-PAUSED - 50% 256K 1396.96 ON ON u2 SPARE OK - - - 1863.01 - OFF
自動ベリファイ用の設定スロットが7つ用意されており、有効/無効と実行時間が定義される。
/[コントローラ番号] show verify
# tw_cli /c6 show verify Verify Schedule for Controller /c6 ======================================================== Slot Day Hour Duration AdvVerify -------------------------------------------------------- 1 Sun 1:00am 6 hr(s) on 2 Mon 1:00am 6 hr(s) on 3 Tue 1:00am 6 hr(s) on 4 Wed 1:00am 6 hr(s) on 5 Thu 1:00am 6 hr(s) on 6 Fri 1:00am 6 hr(s) on 7 Sat 1:00am 6 hr(s) on
スロットは若番から自動的に埋められるため、任意のスロットIDを付けるためには、登録と削除を繰り返して埋める必要がある。
/[コントローラ番号] add verify=[曜日]:[開始時]:[継続時間]
# tw_cli /c1 add verify=Sun:12:24 Adding scheduled verify to slot 1 for [Sun, 12:00PM, 24hr(s)] ... Done.
上記の入力例の場合、日曜日 12:00より24時間の間で実行となる。
# tw_cli /c1 show verify Verify Schedule for Controller /c1 ======================================================== Slot Day Hour Duration Status -------------------------------------------------------- 1 Sun 12:00pm 24 hr(s) enabled 2 - - - enabled 3 - - - enabled 4 - - - enabled 5 - - - enabled 6 - - - enabled 7 Sat 12:00am 24 hr(s) enabled
自動実行スケジュールを削除するには、以下のコマンドを実行する。
尚、Auto Verifyが有効化されている場合には、最低1つはタスクが必要である。
/[コントローラ番号] del verify=[スロットID]
# tw_cli /c6 del verify=6 Removing scheduled verify slot [6]... Done.
コントローラの自動ベリファイを有効化するには、以下のコマンドを実行する。
/[コントローラ番号] set verify=enable
# tw_cli /c1 set verify=enable Enabling scheduled verifies on controller /c1 ... Done.
ユニットの自動ベリファイを有効化するには、以下のコマンドを実行する。
/[コントローラ番号]/[ユニット番号] set autoverify=on
# tw_cli /c1/u0 set autoverify=on Setting Auto-Verify Policy on /c1/u0 to [on] ... Done.
コマンドの実行時にエラーが発生した場合の対処方法。
# ./tw_cli /c1/u1 del noscan Deleting /c1/u1 will cause the data on the unit to be permanently lost. Do you want to continue ? Y|N [N]: y Deleting unit c1/u1 ...Done.
# ./tw_cli /c1 add type=Raid0 disk=6:7 noscan name=test01 Creating new unit on controller /c1 ... Done. The new unit is /c1/u1. Naming unit /c1/u1 to [test01] ... Done. Setting default Storsave policy to [balance] for the new unit ... Done. Setting default Command Queuing policy for unit /c1/u1 to [on] ... Done. Setting write cache = ON for the new unit ... Done. Warning: You do not have a battery backup unit for /c1/u1 and the enabled write cache (default) may cause data loss in the event of power failure.
ECC-ERRORが発生してアレイがデグレードした場合の暫定対処方法。
ECC-ERRORはセクタレベルの物理故障であるためディスクの交換が望ましいが、暫定措置としてデグレードを解消することもできる。
# tw_cli /c1 show Unit UnitType Status %RCmpl %V/I/M Stripe Size(GB) Cache AVrfy ------------------------------------------------------------------------------ u0 RAID-10 DEGRADED - - 256K 3725.27 RiW ON VPort Status Unit Size Type Phy Encl-Slot Model ------------------------------------------------------------------------------ p0 ECC-ERROR u0 1.82 TB SATA 0 - TOSHIBA DT01ACA200 p1 OK u0 1.82 TB SATA 1 - Hitachi HDS723020BL p2 OK u0 1.82 TB SATA 2 - TOSHIBA DT01ACA200 p3 OK u0 1.82 TB SATA 3 - TOSHIBA DT01ACA200
# tw_cli /c1/p0 remove Removing /c1/p0 will take the disk offline. Do you want to continue ? Y|N [N]: y Removing port /c1/p0 ... Done.
# tw_cli /c1 show Unit UnitType Status %RCmpl %V/I/M Stripe Size(GB) Cache AVrfy ------------------------------------------------------------------------------ u0 RAID-10 DEGRADED - - 256K 3725.27 RiW ON VPort Status Unit Size Type Phy Encl-Slot Model ------------------------------------------------------------------------------ p1 OK u0 1.82 TB SATA 1 - Hitachi HDS723020BL p2 OK u0 1.82 TB SATA 2 - TOSHIBA DT01ACA200 p3 OK u0 1.82 TB SATA 3 - TOSHIBA DT01ACA200
# tw_cli /c1 rescan Rescanning controller /c1 for units and drives ...Done. Found the following unit(s): [none]. Found the following drive(s): [/c1/p0].
# tw_cli /c1 show Unit UnitType Status %RCmpl %V/I/M Stripe Size(GB) Cache AVrfy ------------------------------------------------------------------------------ u0 RAID-10 DEGRADED - - 256K 3725.27 RiW ON VPort Status Unit Size Type Phy Encl-Slot Model ------------------------------------------------------------------------------ p0 OK - 1.82 TB SATA 0 - TOSHIBA DT01ACA200 p1 OK u0 1.82 TB SATA 1 - Hitachi HDS723020BL p2 OK u0 1.82 TB SATA 2 - TOSHIBA DT01ACA200 p3 OK u0 1.82 TB SATA 3 - TOSHIBA DT01ACA200
# tw_cli /c1 add type=spare disk=0 Creating new unit on controller /c1 ... Done. The new unit is /c1/u1. WARNING: This Spare unit may replace failed drive of same interface type only.
# tw_cli /c1 show Unit UnitType Status %RCmpl %V/I/M Stripe Size(GB) Cache AVrfy ------------------------------------------------------------------------------ u0 RAID-10 DEGRADED - - 256K 3725.27 RiW ON u1 SPARE OK - - - 1863.01 - OFF VPort Status Unit Size Type Phy Encl-Slot Model ------------------------------------------------------------------------------ p0 OK u1 1.82 TB SATA 0 - TOSHIBA DT01ACA200 p1 OK u0 1.82 TB SATA 1 - Hitachi HDS723020BL p2 OK u0 1.82 TB SATA 2 - TOSHIBA DT01ACA200 p3 OK u0 1.82 TB SATA 3 - TOSHIBA DT01ACA200
# tw_cli /c1 show rebuild Rebuild Schedule for Controller /c1 ======================================================== Slot Day Hour Duration Status -------------------------------------------------------- 1 Sun 1:00am 24 hr(s) enabled 2 Thu 6:00am 24 hr(s) enabled
# tw_cli /c1 del rebuild=1 Removing scheduled rebuild slot [1] ... Done.
# tw_cli /c1 show rebuild Rebuild Schedule for Controller /c1 ======================================================== Slot Day Hour Duration Status -------------------------------------------------------- 1 - - - enabled 2 Thu 6:00am 24 hr(s) enabled
# tw_cli /c1 add rebuild=Fri:0:24 Adding scheduled rebuild to slot 1 for [Fri, 12:00AM, 24hr(s)] ... Done.
# tw_cli /c1 show rebuild Rebuild Schedule for Controller /c1 ======================================================== Slot Day Hour Duration Status -------------------------------------------------------- 1 Fri 12:00am 24 hr(s) enabled 2 Thu 6:00am 24 hr(s) enabled
# tw_cli /c1 show Unit UnitType Status %RCmpl %V/I/M Stripe Size(GB) Cache AVrfy ------------------------------------------------------------------------------ u0 RAID-10 REBUILDING 13% - 256K 3725.27 RiW ON VPort Status Unit Size Type Phy Encl-Slot Model ------------------------------------------------------------------------------ p0 DEGRADED u0 1.82 TB SATA 0 - TOSHIBA DT01ACA200 p1 OK u0 1.82 TB SATA 1 - Hitachi HDS723020BL p2 OK u0 1.82 TB SATA 2 - TOSHIBA DT01ACA200 p3 OK u0 1.82 TB SATA 3 - TOSHIBA DT01ACA200
※注意:この方法は一時対処に過ぎないため、ECC-ERRORが発生したディスクは速やかに交換すること