This article contains a script used to configure Promise VTrak RAID Controllers and SAS-connected Expansion Chassis: Xsan (Metadata and Data) configuration script - E5320f + (2) J5600s

To create the configuration script, copy the text below beginning with the line "#Begin Copy" to the line "#End Copy" and paste the text into TextEdit, using these guidelines. Once you've created the script, follow the guidelines in this article to import the configuration script.

#Begin Copy 
#
# Promise E5320f + (2) J5600s Configuration Script
#
# Script Name: RAID Controllers Only: Xsan (Metadata and Data)
#
#
# Script Details: builds 7 LUNs from 56 drives (head units)
# in the recommended configuration for use with Xsan and StorNext
#
# 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]
# ALUA: enable [required]
# Adaptive Writeback Cache: enabled [optional]
# Host Cache Flushing: disabled [optional]
# Forced Read Ahead: enabled [optional]
#
ctrl -a mod -s "lunaffinity=enable, alua=enable, adaptivewbcache=enable, hostcacheflushing=disable, forcedreadahead=enable"
#
# Delete any existing arrays
# Delete array 0 thru 3
#
#array -a del -d 0
#array -a del -d 1
#array -a del -d 2
#array -a del -d 3
#
# Build MDC LUN
# RAID level: 1
# Physical Drives: 1, 2
# Alias: MDC
# 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=MDC" -l "alias=MDC, raid=1, readpolicy=readcache, writepolicy=writeback, preferredctrlid=1"
#
# Build Data1 LUN
# RAID level: 5
# Physical Drives: 5,6,7,8,9,10,11,12,13,14
# Alias: Data1
# Controller Affinity: 1
# Configuration options: Capacity all (default), 64K stripe size (default),
# 512 byte sector (default), Read Ahead, Write Back
#
array -a add -p 5,6,7,8,9,10,11,12,13,14 -s "alias=Data1" -l "alias=Data1, raid=5, readpolicy=readahead, writepolicy=writeback, preferredctrlid=1"
#
# Build Data2 LUN
# RAID level: 5
# Physical Drives: 15,16,17,18,19,20,21,22,23,24
# Alias: Data2
# Controller Affinity: 2
# Configuration options: Capacity all (default), 64K stripe size (default),
# 512 byte sector (default), Read Ahead, Write Back
#
array -a add -p 15,16,17,18,19,20,21,22,23,24 -s "alias=Data2" -l "alias=Data2, raid=5, readpolicy=readahead, writepolicy=writeback, preferredctrlid=2"
#
# Build Data3 LUN
# RAID level: 6
# Physical Drives: 25,29,30,33,34,37,38
# Alias: Data3
# Controller Affinity: 2
# Configuration options: Capacity all (default), 64K stripe size (default),
# 512 byte sector (default), Read Ahead, Write Back
#
array -a add -p 25,29,30,33,34,37,38 -s "alias=Data3" -l "alias=Data3, raid=6, readpolicy=readahead, writepolicy=writeback, preferredctrlid=2"
#
# Build Data4 LUN
# RAID level: 6
# Physical Drives: 28,31,32,35,36,39,40
# Alias: Data4
# Controller Affinity: 2
# Configuration options: Capacity all (default), 64K stripe size (default),
# 512 byte sector (default), Read Ahead, Write Back
#
array -a add -p 28,31,32,35,36,39,40 -s "alias=Data4" -l "alias=Data4, raid=6, readpolicy=readahead, writepolicy=writeback, preferredctrlid=2"
#
# Build Data5 LUN
# RAID level: 6
# Physical Drives: 41,45,46,49,50,53,54
# Alias: Data5
# Controller Affinity: 2
# Configuration options: Capacity all (default), 64K stripe size (default),
# 512 byte sector (default), Read Ahead, Write Back
#
array -a add -p 41,45,46,49,50,53,54 -s "alias=Data5" -l "alias=Data5, raid=6, readpolicy=readahead, writepolicy=writeback, preferredctrlid=2"
#
# Build Data6 LUN
# RAID level: 6
# Physical Drives: 44,47,48,51,52,55,56
# Alias: Data6
# Controller Affinity: 2
# Configuration options: Capacity all (default), 64K stripe size (default),
# 512 byte sector (default), Read Ahead, Write Back
#
array -a add -p 44,47,48,51,52,55,56 -s "alias=Data6" -l "alias=Data6, raid=6, readpolicy=readahead, writepolicy=writeback, preferredctrlid=2"
#
# Set up dedicated spares
# Physical Drives: 3, 4
# Type: dedicated spares, Revertible to meta, data1, data2
#
spare -a add -p 3 -d 0,1,2 -t d -r y
spare -a add -p 4 -d 0,1,2 -t d -r y
#
# Set up dedicated spares
# Physical Drives: 26, 27
# Type: dedicated spares, Revertible to data3, data4
#
spare -a add -p 26 -d 3,4 -t d -r y
spare -a add -p 27 -d 3,4 -t d -r y
#
# Set up dedicated spares
# Physical Drives: 50, 51
# Type: dedicated spares, Revertible to data5, data6
#
spare -a add -p 42 -d 5,6 -t d -r y
spare -a add -p 43 -d 5,6 -t d -r y
#
# Perform Quick Init on all LUNs
# Note: Ensure any stale filesystem data is destroyed
#
init -a start -l 0 -q 100
init -a start -l 1 -q 100
init -a start -l 2 -q 100
init -a start -l 3 -q 100
init -a start -l 4 -q 100
init -a start -l 5 -q 100
init -a start -l 6 -q 100
#
# END
#
#End Copy

For more information about options configured by this script, see Promise VTrak: Configuring for Optimal Performance (E5000 Series)