Using hp ssa scripting, Capturing a configuration, Using an input script – HP Smart Storage Administrator User Manual

Page 70

Advertising
background image

Operations 70

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

Using HP SSA scripting

Access HP SSA with one of the many methods available:

Accessing HP SSA in the offline environment (on page

10

)

Accessing HP SSA in the online environment (on page

14

)

The HP SSA Scripting application has two scripting modes:

Capture mode for capturing a configuration (on page

70

)

HP SSA inspects the configuration of all internal and external array controllers connected to the server
and then writes a script file describing this configuration.

Input mode for using an Input script (on page

70

)

HP SSA reads the array configuration described in a specified script file. See "Creating an HP SSA
script file (on page

71

)." HP SSA then applies this configuration to a target system.

Capturing a configuration

To capture the configuration of a system, enter the following command at the system command line prompt:

hpssascripting -c FILENAME [-internal | -external] -e FILENAME

The -c switch information, if provided, specifies the capture file name. The capture filename is optional. If no
capture file is specified, HP SSA names the default capture file acucapt.ini and places it in the HP SSA

working directory.
The -internal and -external switches limit capture to internal or external controllers.
The -e switch information is used only if HP SSA must generate an error file. The error filename is optional.

By default, HP SSA names the error file error.ini and places it in the HP SSA working directory.

Using an Input script

To use an Input script to configure or reconfigure a system, first locate a suitable HP SSA script or see

"Creating an HP SSA script file (on page

71

)."

Advertising