PROJECT “DESKTOP RAID” DOCUMENT STATUS OFFICIAL RELEASE
REV. G–05-NOV-2007
ACCUSYS, INC.
Revision History
Rev – A
11-JUN -2007
Rev – B
10-AUG -2007
Rev – C
14-AUG -2007
Rev – D
03-SEP -2007
Rev – E
19-OCT -2007
Rev – F
02-NOV -2007
Rev – G
05-NOV -2007
JeffChang 1. Initial Draft.
ShoneCheng
ShoneCheng
ShoneCheng
ShoneCheng
ShoneCheng 6. Modified the description in section 2.1 Pre-action.
ShoneCheng 7. Of ficial release version 1.0.
2. Removed unnecessary commands and modified command
names to match GUI’s.
3. Modified some command names and parameters of command
‘SetLunMap’, ‘CreateShot’ and ‘MigrateArray’, added Appendix I
for Migration command reference. Added ‘CancelSplitSchedule’
command.
4. Removed parameter “Array” for CreateArray command. Added
DumpMiscInfo and DumpDriveInfo commands. Modified the
description of DumpCtrlEvent command.
5. Removed CLI command “BatteryState”. Added Chapter 1
“Introduction” and Chapter 2 “Using CLI”, the original Chapter 1
had been moved to Chapter 3.
PROJECT “DESKTOP RAID” DOCUMENT STATUS OFFICIAL RELEASE
REV. G–05-NOV-2007
ACCUSYS, INC.
PAGE 6 OF 27
1. Introduction
This user guide provides eXpeRAID Command Line Interface (CLI) instructions for
configuring and maintaining your eXpeRAID. Before using this CLI, we assume that you
have already installed your controller in your system. If you have not yet installed
eXpeRAID, see Accusys eXpeRAID Installation User manual for instructions.
1.1 Overview
This Command Line Interface (CLI) is provided for you to configure and manage the
Accusys eXpeRAID components in Linux, Mac or Windows. The CLI is useful under
environments where a graphical user interface (GUI) is not available. Through CLI, you
can perform most of the storage management tasks that you perform with the eXpeRAID
storage manager GUI. CLI commands can be executed under either interactive or
non-interactive (script) mode, providing higher level API functionalities.
1.2 Supported Operating Systems
• Windows: XP, 20xx, Vista, …, etc.
• Linux: Fedora Code, SuSE, Debian, …, etc.
• Mac: Mac Pro, G5 …, etc.
CLI supports both 32-bit and 64-bit versions. Be sure you are using the correct version.
PROJECT “DESKTOP RAID” DOCUMENT STATUS OFFICIAL RELEASE
REV. G–05-NOV-2007
ACCUSYS, INC.
PAGE 7 OF 27
2. Using CLI
2.1 Pre-action
Before using CLI, make sure the controller(s) has been connected to the host and the driver(s)
of the controller(s) has been installed on the OS properly.
Under Linux, you may need to execute the following command to let CLI find the controller
normally: mknod /dev/ACS_CDEVi c NUM i
where number NUM is determined by referencing the Character devices listed in
/proc/devices in which the string ACS_CDEV is located. The number i should be 0
when only one controller is found. If other controllers are found, use 1, 2.. for i
to make node of each controller one by one.
Anyway, the necessity of this procedure depends on how the driver is installed.
Example for Linux special case:
1. Type: insmod acs_ame.ko [Enter] under the folder where the driver “acs_ame.ko” is located.
2. Type: cat /proc/devices [Enter], a list of Character devices will appear, in which the device
number of ACS_CDEV is 253(The value alters through different systems.)
PROJECT “DESKTOP RAID” DOCUMENT STATUS OFFICIAL RELEASE
REV. G–05-NOV-2007
ACCUSYS, INC.
PAGE 8 OF 27
3. Type: mknod /dev/ACS_CDEV0 c 253 0 [Enter], a device file “ACS_CDEV0” will be
created and CLI will be able to find the controller through this device file.
2.2 Execution Mode
There are two methods to run CLI commands - interactive mode and non-interactive mode.
For each mode, all commands and parameters must follow the CLI command format to be
executed normally.
2.2.1 Interactive Mode
To trigger CLI interactive mode, simply run the CLI execution file under the
command line of the OS. If the controller has been found, a password verification
prompt for the default controller will appear. After inputting the correct password,
the CLI prompt “CLI>” will appear. All CLI commands can be executed under this
prompt.
2.2.2 Non-interactive Mode
There are two types of non-interactive mode for CLI. One calls the CLI command
"RunScript" to execute pre-written script files which contain bunches of CLI
commands. The other one calls CLI commands by adding them as the parameter
of the CLI execution file individually.
The scripts of both types of non-interactive mode are written based on the following
format:
acs_cli <CLI command> [Parameters of the CLI command]
which can be executed as a single command under the command line of the OS.
PROJECT “DESKTOP RAID” DOCUMENT STATUS OFFICIAL RELEASE
REV. G–05-NOV-2007
ACCUSYS, INC.
PAGE 9 OF 27
This non-interactive mode is implemented by calling the CLI command "RunScript".
For example:
In Sample1.sh(Included in the folder where CLI application is located) under Linux,
it contains the following commands:
./acs_cli RunScript acs_sample1.script
./acs_cli RunScript acs_sample2.script
Both acs_sample1.script and acs_sample2.script contain a bunch of CLI commands.
2.2.2.2 Shell script Mode
This mode is implemented by executing all CLI commands following the format:
acs_cli <CLI command> [Parameters of the CLI command]
For example:
In Sample2.sh under Linux, it contains commands like
./acs_cli CtrlIndex 0
./acs_cli CheckPassword 00000000
…
The first line sets the controller index to 0 and the second line verifies the password
of the controller with index 0.
To complete both Sample1.sh and Sample2.sh successfully, the active controller must
have 4 Spare drives(On slot 1~4) connected. For both scripts, all 4 drives will be
restored to Spare after completing the script successfully.
Command Format field description:
Command Name: CLI Command Name.
Parameter 1 ~ n: CLI Command Parameters.
Command Description: Describe CLI Commands in brief.
Parameter Description: Describe Parameters in detail.
Example: Gives an example for the command.
Command Syntax:
<Command Name> [Forma t 1] …[Format n]
Format Conventions:
<text> indicates items that user must specify.
[text] The text item within brackets is optional.
< :> indicates the ‘or’ condition. For which user has a choice for the options listed within,
and only one can be specified.
<~> indicates the value range. For which user has a choice for the values within the range,
and only one can be specified.
<,> indicates a separation between integer values.
PROJECT “DESKTOP RAID” DOCUMENT STATUS OFFICIAL RELEASE
REV. G–05-NOV-2007
ACCUSYS, INC.
PAGE 14 OF 27
3.3.2 Information Display Commands
3.3.2.1
Command Name Command Description
DumpArrayInfo Use this command to display information of the specified array.
Parameter 1 Parameter Description
Array No.:
<1~4>
Array No.:
Specified array number from 1 ~ 4 for information display.
Example
CLI>DumpArrayInfo 1 [Enter]
CLI will display the information of Array 1 if it exists.
T3.3.2.2T
Command Name Command Description
DumpSliceInfo Use this command to display slice information of the specified array.
Parameter 1 Parameter Description
Array No.:
<1~4>
Array No.:
Specified array number from 1 ~ 4 to display slice information.
3.3.2.3
Command Name Command Description
DumpJBODInfo
Use this command to display JBOD information of the active
controller.
Parameter Description
/A
3.3.2.4
Command Name Command Description
DumpCtrlEvent
Use this command to display event(s) of the active controller. CLI will
display up to 32 latest events(if any) each time when this command has
been issued.
Parameter Description
/A
3.3.2.5
Command Name Command Description
DumpCtrlInfo
Use this command to display controller information of the active
controller.
Array will be created with drive 3,4,6,7,8 with an unused array number
if all specified drives are available. If all array numbers have been used
CLI will reply error.
PROJECT “DESKTOP RAID” DOCUMENT STATUS OFFICIAL RELEASE
REV. G–05-NOV-2007
ACCUSYS, INC.
PAGE 18 OF 27
3.3.3.6
Command Name Command Description
SetLunMap Use this command to set a Lun Map for an existing slice or JBOD.
Parameter 1Parameter Description
LUN No.:
<Lun=<0~63>>
Parameter 2
Array No.:
<Array=<1~4>:
JBOD= <1~n>>
Parameter 3
Slice No.:
LUN No.:
Specify the Lun number to be mapped.
Array No.:
Array =1~4, Maps Lun to a specified Array
JBOD=1~n, Maps Lun to a specified JBOD
Slice No.:
This parameter is not needed when parameter 2 uses JBOD.
<Slice= <0~15>>
Example
CLI>SetLunMap Lun=0 JBOD=1 [Enter]
Lun 0 will be mapped to JBOD1 if it exists.
CLI>SetLunMap Lun=0 Array=1 Slice=0 [Enter]
Lun 0 will be mapped to slice 0 of array 1 if it exists.
3.3.3.7
Command Name Command Description
DeleteLunMap Use this command to delete an existing Lun Map.
Parameter 1Parameter Description
LUN No.:
<0~63>
PROJECT “DESKTOP RAID” DOCUMENT STATUS OFFICIAL RELEASE
REV. G–05-NOV-2007
ACCUSYS, INC.
PAGE 19 OF 27
3.3.4 Advanced Array Configuration Commands
3.3.4.1
Command Name Command Description
ExpandArray Use this command to expand an array with specified drive count.
Parameter 1Parameter Description
Array No.:
<Array=<1~4>>
Parameter 2
Drive Count:
<DriveCnt=<1~n>>
Array No.:
Specify an array number to be expanded.
Drive Count:
Specify how many drives will be expanded to the array. Drive Count
must not be larger then the number of spare drives.
Example
CLI>ExpandArray Array=1 DriveCnt=3 [Enter]
Array 1 will be expanded with 3 drives if Array 1 exists and the spare
drive quantity are more then or equal to 3.
3.3.4.2
Command Name Command Description
MigrateArray Use this command to migrate an array from the original RAID level to
Array No.:
Specify an array number to be migrated.
Target RAID Level:
Specify the target RAID level for the specified array to be migrated to.
Drive Count:
Specify the total drive count which the target RAID level would have.
Please refer to the Array Migration Matrix listed in Appendix I to
check the migration legality.
Example
CLI>MigrateArray Array=1TargetLevel=R5 DriveCnt=4 [Enter]
Array 1 will be migrated from the original RAID level to RAID level 5
which has a total member drive count of 4 if Array 1 exists and all
arameters follow the rule of the Array Migration Matrix.
Array No.:
Specify an array number to verify parity.
Status setting:
Start or stop the parity verification of the specified array.
3.3.4.5
Command Name Command Description
RefreshArray Use this command to refresh data of the specified array.
Parameter 1 Parameter Description
Array No.:
<Array=<1~4>>
Parameter 2
State setting:
<State=<Start:Stop:Pause>
>
Array No.:
Specify an array number to be refreshed.
State setting:
Start, stop the array refreshment or just pause the refreshment and
restart it with ‘State=Start’ parameter any time after it has been paused.
Example
CLI>RefreshArray Array=1 State=S tart[Enter]
PROJECT “DESKTOP RAID” DOCUMENT STATUS OFFICIAL RELEASE
REV. G–05-NOV-2007
ACCUSYS, INC.
PAGE 24 OF 27
3.3.6.4
Command Name Command Description
SMARTPollingPeriod Use this command to set the polling frequency of SMART pre-failure
warning mode.
Parameter 1 Parameter Description
Polling Time:
<1Min:15Min:30Min:
Polling Time:
Set Polling Time as the SMART polling period.
60Min:2Hr:4Hr:8Hr>
3.3.6.5
Command Name Command Description
BeeperMode Use this command to enable or disable the controller beeper.
Parameter 1 Parameter Description
<Enable:Disable> Enable/Disable controller beeper.
3.3.6.6
Command Name Command Description
EQMode Use this command to enable or disable Equalization Mode.
CtrlCache Use this command to enable or disable controller cache.
Parameter 1Parameter Description
<Enable:Disable> Enable/Disable controller cache.
3.3.6.8
Command Name Command Description
SyncCacheMode Use this command to enable or disable Synchronize Cache mode.
Parameter 1Parameter Description
<Enable:Disable> Enable/Disable Synchronize Cache mode.
PROJECT “DESKTOP RAID” DOCUMENT STATUS OFFICIAL RELEASE
REV. G–05-NOV-2007
ACCUSYS, INC.
PAGE 25 OF 27
3.3.6.9
Command Name Command Description
PrefetchNumber Use this command to assign the maximum pre-fetch number.
Parameter 1Parameter Description
Pre-fetch Number:
<1:2:4:8:16:32:64:128>
Pre-fetch Number:
The basic unit of maximum pre-fetch number is one stripe. For
example, if the maximum pre-fetch number is 8 and the stripe size is
128KB, then the maximum pre-fetch size is 8x128KB.
3.3.6.10
Command Name Command Description
DriveCacheMode Use this command to enable or disable drive cache(s).
Parameter 1Parameter Description
Drive No.:
<Drive=<1~n:All>>
Parameter 2
Switch setting:
<Switch
=<Enable:Disable>>
Drive No.:
Specify a drive or all drives to enable or disable cache.
<1~n>, where n stands for maximum existing drive number.
Drive=All, the command will have effect on all existing drives.
Switch setting:
Enable or disable the cache(s) on the specified drive(s).
3.3.6.11
Command Name Command Description
CtrlTime Use this command to set controller time.
Parameter 1Parameter Description
Year:
<Year=<0~99>>
Parameter 2
Note: Most RAID levels can be migrated to other levels. The migration may require additional
disk(s) to be added. The data capacity of the new array is equal to or larger than the original array.
The variable 'N' represents the number of member disks in the "Source RAID" array.
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.