SnapServer 7.0 Administrator's Guide
Command
raid add disk
raid remove disk
raid repair
raidsettings get
raidsettings set
raid-speed-limit get
raid-speed-limit set
The following commands are available only in DynamicRAID:
Command
storagepool create
storagepool edit
storagepool get
storagepool list
storagepool repair
storagepool delete
Scripts in SnapCLI
Administrative tasks can be automated with shell scripts that call SnapCLI commands.
Running a SnapCLI Script
1. Create the script and put it in a share on the local server.
• Be sure to use an application that is compatible with the standard Unix text file
• Place the script in a share that will never be part of a delete script.
2. Log in to the SnapCLI (see Logging into SnapCLI for instructions).
3. Type
4. At the prompt, make sure the script is executable by typing the following and
pressing
chmod +x/shares/[sharename]/[scriptname]
where sharename is the name of the share where you put the script and scriptname is
the name of the script.
5. To run the script, type the path again, and press
/shares/[sharename]/[scriptname]
10400317-001 10/2011
format (for example, vi). Avoid using Windows clients to create or edit scripts.
to get a bash prompt (
osshell
:
Enter
©2010-11 Overland Storage, Inc.
E – Command Line Interface
Description
Add a disk to a raid set
Remove a disk from a raid set
Repair a degraded raid set
Get auto-incorporation and back-round disk
settings
Set the auto-incorporation and background
disk properties
Get the current setting for the RAID sync
speed limit.
Change the maximum RAID sync or resync
speed. Use with caution.
Description
Create a new storage pool
Edit an existing storagepool
Get storagepool properties
List available storagepools
Repair an existing storagepool
Delete a storage pool
).
#
:
Enter
E-12
Need help?
Do you have a question about the SnapServer and is the answer not in the manual?