Adaptec 2820SA User Guide - Page 92

Sample Scripts, Sample Scripts for SCSI and SAS Controllers

Page 92 highlights

Appendix D: Using the ACU for DOS ● 92 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 93. 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

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109

Appendix D: Using the ACU for DOS
92
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 93
.
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