Enabling a script to exit on error

When a script encounters an error during execution, the exitonerror keyword enables the script to decide whether to continue or to exit the application and return an exit code.

Syntax:

set [exitonerror=enable disable] Example commands:

set exitonerror=enable set eoe=disable

show exitonerror

Using the Split Mirror command

The "splitmirror" command splits original RAID 1, RAID10 or ADM mirrored volumes into individual RAID0 volumes. The command will also split volumes into RAID1 or RAID10 volumes if ADM, and can be used to recombine the volumes. Optionally, the command will hide the new volume from the OS.

Syntax

<target> splitmirror action=[splitwithbackupremirrorrollbackactivatebackup]

where <target> is the array.

Actions

The "splitwithbackup" action splits an array consisting of one or more RAID 1, RAID 1+0, RAID 1 (ADM), or RAID 10 (ADM) and creates two arrays: A primary array and a backup array. The new arrays have the following characteristics:

If the original array contained RAID 1 or RAID 1+0 drives, the primary array will contain RAID 0 drives.

If the original array contained RAID 1 (ADM) drives, the primary array will contain RAID 1 drives.

If the original array contained RAID 10 (ADM) drives, the primary array will contain RAID 1+0 drives.

The backup array always contains RAID 0 logical drives. The primary array continues to be fully accessible to the OS while the backup array is hidden from the operating system.

The "remirror" action remirrors the array and preserves the existing data. Discard the backup array. This option recreates the original mirrored array with the contents of the primary array.

The "rollback" action remirrors the array and rollback to the contents of the backup array. Discard existing data. This option recreates the mirrored array but restores its contents to the point in time when the backup array was created. It is not recommended that this option be performed online, or while the logical drive to be rolled back is mounted or in use by the OS.

The "activatebackup" action activates the backup array. This option makes the backup array fully accessible to the operating system. The target can be any valid individual array target.

Example command

=> ctrl slot= 5 array A splitmirror action=split with backup => ctrl slot= 5 array A splitmirror action=remirror

=> ctrl slot= 5 array A splitmirror action=rollback

=> ctrl slot= 5 array A splitmirror action=activatebackup

Enabling SmartCache Write-back

Operations 78