Promise VTrak:RAID コントローラ - 直接接続の構成スクリプト - RAID1 の論理ドライブが 8 台

この記事では、Promise RAID コントローラを、直接接続のストレージに構成するスクリプトを紹介します。

構成スクリプトを作成するには、以下のテキストにある「#Begin Copy」から「#End Copy」の間の行をコピーし、こちらのガイドライン にそって「テキストエディット」にそのテキストをペーストします。スクリプトを作成した後、こちらの記事 のガイドラインにそって、構成スクリプトを読み込みます。


#Begin
#
# Promise VTrak E-Class configuration script
#
#
#
# Script Details: builds 8 RAID 1 LUNs from 16 drives (head unit only)
# for direct attached usage
#
# Script Assumptions: no arrays or logical drives created
# (uncomment out array deletion if needed)
# script works with either SATA or SAS configurations
#
#
#
# Global controller settings
# LUN Affinity: enabled [required]
# Adaptive Writeback Cache: enabled [optional, recommended]
# Host Cache Flushing: disabled [optional, recommended]
# Forced Read Ahead: disabled [optional, recommended]
#
#
ctrl -a mod -i 1 -s "lunaffinity=enable, adaptivewbcache=enable, hostcacheflushing=disable, forcedreadahead=disable"
ctrl -a mod -i 2 -s "lunaffinity=enable, adaptivewbcache=enable, hostcacheflushing=disable, forcedreadahead=disable"
#
#
#
# Build Data1 LUN
# RAID level: 1
# Physical Drives: 1, 2
# Alias: Data1
# Controller Affinity: 1
# Configuration options: Capacity all (default), 64K stripe size (default),
# 512 byte sector (default), Read Cache, Write Back
#
array -a add -p 1,2 -s "alias=Data1" -c 1 -l "alias=Data1,raid=1,readpolicy=readcache,writepolicy=writeback,preferredctrlid=1"
#
#
# Build Data1 LUN
# RAID level: 1
# Physical Drives: 3, 4
# Alias: Data2
# Controller Affinity: 2
# Configuration options: Capacity all (default), 64K stripe size (default),
# 512 byte sector (default), Read Cache, Write Back
#
array -a add -p 3,4 -s "alias=Data2" -c 1 -l "alias=Data2,raid=1,readpolicy=readcache,writepolicy=writeback,preferredctrlid=2"
#
#
# Build Data1 LUN
# RAID level: 1
# Physical Drives: 5, 6
# Alias: Data3
# Controller Affinity: 1
# Configuration options: Capacity all (default), 64K stripe size (default),
# 512 byte sector (default), Read Cache, Write Back
#
array -a add -p 5,6 -s "alias=Data3" -c 1 -l "alias=Data3,raid=1,readpolicy=readcache,writepolicy=writeback,preferredctrlid=1"
#
#
# Build Data1 LUN
# RAID level: 1
# Physical Drives: 7, 8
# Alias: Data4
# Controller Affinity: 2
# Configuration options: Capacity all (default), 64K stripe size (default),
# 512 byte sector (default), Read Cache, Write Back
#
array -a add -p 7,8 -s "alias=Data4" -c 1 -l "alias=Data4,raid=1,readpolicy=readcache,writepolicy=writeback,preferredctrlid=2"
#
#
# Build Data1 LUN
# RAID level: 1
# Physical Drives: 9, 10
# Alias: Data1
# Controller Affinity: 1
# Configuration options: Capacity all (default), 64K stripe size (default),
# 512 byte sector (default), Read Cache, Write Back
#
array -a add -p 9,10 -s "alias=Data5" -c 1 -l "alias=Data5,raid=1,readpolicy=readcache,writepolicy=writeback,preferredctrlid=1"
#
#
# Build Data1 LUN
# RAID level: 1
# Physical Drives: 11, 12
# Alias: Data6
# Controller Affinity: 1
# Configuration options: Capacity all (default), 64K stripe size (default),
# 512 byte sector (default), Read Cache, Write Back
#
array -a add -p 11,12 -s "alias=Data6" -c 1 -l "alias=Data6,raid=1,readpolicy=readcache,writepolicy=writeback,preferredctrlid=2"
#
#
# Build Data1 LUN
# RAID level: 1
# Physical Drives: 13, 14
# Alias: Data7
# Controller Affinity: 1
# Configuration options: Capacity all (default), 64K stripe size (default),
# 512 byte sector (default), Read Cache, Write Back
#
array -a add -p 13,14 -s "alias=Data7" -c 1 -l "alias=Data7,raid=1,readpolicy=readcache,writepolicy=writeback,preferredctrlid=1"
#
#
# Build Data1 LUN
# RAID level: 1
# Physical Drives: 15, 16
# Alias: Data8
# Controller Affinity: 2
# Configuration options: Capacity all (default), 64K stripe size (default),
# 512 byte sector (default), Read Cache, Write Back
#
array -a add -p 15,16 -s "alias=Data8" -c 1 -l "alias=Data8,raid=1,readpolicy=readcache,writepolicy=writeback,preferredctrlid=2"
#
# Perform Quick Init on all LUNs
# Note: Ensure any state filesystem data is destroyed
#
init -a start -l 0 -q 512
init -a start -l 1 -q 512
init -a start -l 2 -q 512
init -a start -l 3 -q 512
init -a start -l 4 -q 512
init -a start -l 5 -q 512
init -a start -l 6 -q 512
init -a start -l 7 -q 512
# END

公開日: