Sample scripts, Sample scripts for scsi and sas controllers, Mments, see – Adaptec SAS/SATA/SCSI RAID Controllers User Manual

Page 95: 95 sample scripts

Advertising
background image

Appendix D: Using the Array Configuration Utility for DOS

95

Sample Scripts

This MS-DOS command invokes the ACU and creates arrays on controller 1 based on the
array keywords defined in the script file A:\RAID.ACU. It also configures Channel 0 and saves
a log of the operation in the log file C:\RAID.LOG:

A:\> ACU /P A:\RAID.ACU /L C:\RAID.LOG /C1

Sample Scripts for SCSI and SAS Controllers

Note:

For a sample script for a SATA controller, see

page 96

.

This sample script file is a sample RAID.ACU script as referred to in the ACU command above.
This script creates these arrays—a 500 MB single-disk volume, and a 2-GB two-disk drive
RAID 1 with a hot spare:

# Script to create volume, mirror, and RAID 5 arrays

# Create a 500MB volume labeled ‘MySystem’

Array=MySystem

Type=Volume

Size=500MB

Drives=0:0:0

End

# Create a 2GB mirror labeled ‘MyMirror’

Array=MyMirror

Type=RAID1

Size=2GB

# Use drives 1 and 2

Drives=0:1:0,0:2:0

# Disable write cache

WriteCache=No

# Assign 1 spare drive

HotspareDrives=0:3:0

End

This sample script file creates a maximum-size three-disk-drive RAID 5:

# Create a maximum size RAID 5 labeled ‘MyData’

Array=MyData

Type=RAID5

Size=Maximum

# Use the maximum stripe size

StripeSize=256

# Clear the array (don’t build/verify it)

Method=Clear

# Don’t wait for clear to complete

Wait=No

# Use drives 0, 1, 2

Drives=0:0:0, 0:1:0, 0:2:0

End

Advertising