Example 3, Example 3 15-8 – HP NetRAID-4M Controller User Manual

Page 318

Advertising
background image

15-8

Command Line Interface User’s Guide

container create raid5 /cache /scrub ((0,0,0),30M) (0,1,0)

(0,2,0) (0,3,0) (1,0,0) (1,1,0) (1,2,0) (2,1,0) (2,2,0) (2,3,0)

(3,1,0) (3,2,0) (3,3,0)

container create stripe /cache ((0,0,0),100M) (0,1,0) (0,2,0)

(0,3,0) (1,0,0) (1,1,0) (1,2,0) (2,1,0) (2,2,0) (2,3,0) (3,1,0)

(3,2,0) (3,3,0)

container assign drive_letter 0 R

container assign drive_letter 1 S

container format /file_system=NTFS /quick/wait R

container format /file_system=NTFS /quick/wait S

Example 3

The script in this example accomplishes the following tasks:

Creates a snapshot of container

Backs-up a disk onto another disk

Removes the snapshot once the backup completes.

This script contains CLI commands and a DOS command. Because it
contains a DOS command (

backup d: e:

), it cannot be run from

the CLI command prompt. See the Command Line Interface Reference
Guide
for information on each CLI command. See your DOS
documentation for a description of the

backup

command.

afacli; open HPN0; container create snapshot /compact 0 1;

close; exit

backup d: e:

afacli; open HPN0; container remove snapshot 1; close; exit

Advertising