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

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

Advertisement

Line Task
1
// Make multiple snapclones of the same Host Volume, and mount to a host.
2
// This requires normalization between each snapclone.
3
//
4
// Assign some variables that will be used in this job.
5
$source_hostvol_unc1 = SetVariable(%source_hostvol_unc1%)
6
$mount_host1 = SetVariable(%mount_host1%)
7
//
8
// Validate that resources are as expected.
9
ValidateHost ($mount_host1)
10
ValidateSnapcloneHostVolume ($source_hostvol_unc1)
1 1
//
12
$Rep1 = SnapcloneHostVolume ($source_hostvol_unc1, SAME, WAIT) onerror pauseat E1:
13
//
14
// Mount the replicated volume(s) on a host.
15
PresentStorageVolumes ($Rep1, $mount_host1) onerror pauseat E2:
16
DiscoverDiskDevices
$HV1 = CreateHostVolumeFromDiskDevices ($source_hostvol_unc1, $Rep1, $mount_host1) onerror
17
pauseat E2
18
$MP1 = MountHostVolume ($HV1, %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: DeleteHostVolume ($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
51

Advertisement

Table of Contents
loading

Table of Contents