HP 418800-B21 - StorageWorks Modular Smart Array 70 Storage Enclosure User Manual page 228

Hp storageworks replication solutions manager 4.0.1 user guide (t3680-96308, june 2008)
Hide thumbs Also See for 418800-B21 - StorageWorks Modular Smart Array 70 Storage Enclosure:
Table of Contents

Advertisement

Line Task
1
// Replicate host volume group(s), and mount 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
//
8
// Validate that resources are as expected.
9
ValidateHost ($source_host)
10
ValidateHost ($mount_host)
1 1
ValidateSnapshotHostVolumeGroup ($source_VolumeGroup_unc1)
12
//
$Rep1 = SnapshotHostVolumeGroup ($source_VolumeGroup_unc1, FULLY_ALLOCATED, SAME, WAIT)
13
onerror pauseat E1:
14
//
15
// Mount the replicated volume(s) on a host.
$HV1 = CreateHostVolumeGroup ($source_VolumeGroup_unc1, $Rep1, $mount_host) onerror pauseat
16
E2:
$VG1 = MountEntireVolumeGroup ($HV1, $source_VolumeGroup_unc1, %VGcopyPrefix%) onerror
17
pauseat E3:
18
//
19
// Wait for user to initiate rollback.
20
Pause ()
21
//
22
// Rollback.
23
E4: UnmountEntireVolumeGroup ($VG1) onerror pauseat E3:
24
E3: DeleteHostVolumeGroup ($HV1) onerror pauseat E3:
25
//
26
E2: DeleteStorageVolumes ($Rep1) onerror pauseat E2:
27
//
28
Exit (SUCCESS)
29
//
30
// Failure exit - no rollback needed.
31
E1: Exit (FAILURE)
228
Jobs

Advertisement

Table of Contents
loading

Table of Contents