HP 418800-B21 - StorageWorks Modular Smart Array 70 Storage Enclosure Command Reference Manual page 55

Job command reference
Hide thumbs Also See for 418800-B21 - StorageWorks Modular Smart Array 70 Storage Enclosure:
Table of Contents

Advertisement

Line Task
1
// Replicate a host volume group, and mount component(s) to a host.
2
//
3
// Assign some variables that will be used in this job.
4
$source_VolumeGroup_unc1 = SetVariable(%source_VolumeGroup_unc1%
5
$source_host = SetVariable(%source_host%)
6
$mount_host = SetVariable(%mount_host%
7
$source_VG_component_unc1 = SetVariable(%source_VG_component_unc1%
8
//
9
// Validate that resources are as expected.
10
ValidateHost ($source_host)
1 1
ValidateHost ($mount_host)
12
ValidateSnapshotHostVolumeGroup ($source_VolumeGroup_unc1)
13
//
$Rep1 = SnapshotHostVolumeGroup ($source_VolumeGroup_unc1, FULLY_ALLOCATED, SAME, WAIT)
14
onerror pauseat E1:
15
//
16
// Mount the replicated volume(s) on a host.
$HV1 = CreateHostVolumeGroup ($source_VolumeGroup_unc1, $Rep1, $mount_host) onerror pauseat
17
E2:
$MP1 = MountVolumeGroupComponent ($HV1, $source_VolumeGroup_unc1, $source_VG_compo-
18
nent_unc1, %mount_point1%) onerror pauseat E3:
19
//
20
// Wait for user to initiate rollback.
21
Pause ()
22
//
23
// Rollback.
24
E4: UnmountHostVolume ($MP1) onerror pauseat E4:
25
E3: DeleteHostVolumeGroup ($HV1) onerror pauseat E3:
26
//
27
E2: DeleteStorageVolumes ($Rep1) onerror pauseat E2
28
//
29
Exit (SUCCESS)
30
//
31
// Failure exit - no rollback needed.
32
E1: Exit (FAILURE)
HP StorageWorks Replication Solutions Manager 4.0.1
55

Advertisement

Table of Contents
loading

Table of Contents