#Begin Copy # # Promise VTrak E-Class configuration script # # Script Name: RAID Controllers and SAS-connected Expansion Chassis: Direct Attached # Script Version: 1.0 (01/27/08) # # # Script Details: builds 4 RAID 5 LUNs from 32 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] # Host Cache Flushing: disabled [optional] # Forced Read Ahead: enabled [optional] # ctrl -a mod -i 1 -s "lunaffinity=enable, adaptivewbcache=enable, hostcacheflushing=disable, forcedreadahead=enable" ctrl -a mod -i 2 -s "lunaffinity=enable, adaptivewbcache=enable, hostcacheflushing=disable, forcedreadahead=enable" # # Delete any existing arrays # Delete array 0 thru 3 # Note: uncomment out delete array commands to delete any existing LUNs; # all physical drives must be available for script to run # successfully # #array -a del -d 0 #array -a del -d 1 #array -a del -d 2 #array -a del -d 3 # # Build Data1 LUN # RAID level: 5 # Physical Drives: 1, 2, 5, 6, 9, 10, 13 # Alias: OnAir1A_Primary # Controller Affinity: 1 # Configuration options: Capacity all (default), 64K stripe size (default), # 512K sector (default), Read Ahead, Write Through # array -a add -p 1,2,5,6,9,10,13 -s "alias=OnAir1A_Primary" -c 1 -l "alias=OnAir1A_Primary,raid=5,readpolicy=readahead,writepolicy=writeback,preferredctrlid=1" # # Build Data2 LUN # RAID level: 5 # Physical Drives: 3, 4, 7, 8, 11, 12, 15 # Alias: OnAir1B_Primary # Controller Affinity: 2 # Configuration options: Capacity all (default), 64K stripe size (default), # 512K sector (default), Read Ahead, Write Through # array -a add -p 3,4,7,8,11,12,15 -s "alias=OnAir1B_Primary" -c 1 -l "alias=OnAir1B_Primary,raid=5,readpolicy=readahead,writepolicy=writeback,preferredctrlid=2" # # Build Data3 LUN # RAID level: 5 # Physical Drives: 17, 18, 21, 22, 25, 26, 29 # Alias: News1A_Secondary # Controller Affinity: 1 # Configuration options: Capacity all (default), 64K stripe size (default), # 512K sector (default), Read Ahead, Write Through # array -a add -p 17,18,21,22,25,26,29 -s "alias=OnAir1A_Secondary" -c 1 -l "alias=OnAir1A_Secondary,raid=5,readpolicy=readahead,writepolicy=writeback,preferredctrlid=1" # # Build Data4 LUN # RAID level: 5 # Physical Drives: 19, 20, 23, 24, 27, 28, 31 # Alias: News1B_Secondary # Controller Affinity: 2 # Configuration options: Capacity all (default), 64K stripe size (default), # 512K sector (default), Read Ahead, Write Through # array -a add -p 19,20,23,24,27,28,31 -s "alias=OnAir1B_Secondary" -c 1 -l "alias=OnAir1B_Secondary,raid=5,readpolicy=readahead,writepolicy=writeback,preferredctrlid=2" # # Set up global spares # Physical Drives: 14, 16, 30, 32 # Type: Global spares, Revertible spare -a add -p 14 -t g -r y spare -a add -p 16 -t g -r y spare -a add -p 30 -t g -r y spare -a add -p 32 -t g -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 # # END # #End Copy