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

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 a host volume, and mount slices/partitions/LVs to a host.
2
//
3
// Assign some variables that will be used in this job.
4
$mount_host = SetVariable(%mount_host%)
5
$source_host = SetVariable(%source_host%)
6
$source_hostvol_unc1 = SetVariable(%source_hostvol_unc1%)
7
//
8
// Validate that resources are as expected.
9
ValidateHost ($mount_host)
10
ValidateHostVolume ($source_hostvol_unc1)
1 1
ValidateSnapshotHostVolume ($source_hostvol_unc1)
12
//
$Rep1 = SnapshotHostVolume ($source_hostvol_unc1, FULLY_ALLOCATED, SAME, WAIT) onerror
13
pauseat E1:
14
//
15
// Mount the replicated volume(s) on a host.
16
PresentStorageVolumes ($Rep1, $mount_host) onerror pauseat E2:
17
DiscoverDiskDevices ($mount_host, $Rep1) onerror continue
$HV1 = CreateHostVolumeFromDiskDevices ($source_hostvol_unc1, $Rep1, $mount_host) onerror
18
pauseat E2:
19
$MP1 = MountHostVolume ($HV1, %mount_point1%) onerror pauseat E3:
20
//
21
// Wait for user to initiate rollback.
22
Pause ()
23
//
24
// Rollback.
25
E4: UnmountHostVolume ($MP1) onerror pauseat E4:
26
E3: DeleteHostVolume ($HV1) onerror pauseat E3:
27
//
28
E2: DeleteStorageVolumes ($Rep1) onerror pauseat E2:
29
//
30
Exit (SUCCESS)
31
//
32
// Failure exit - no rollback needed.
33
E1: Exit (FAILURE)
238
Jobs

Advertisement

Table of Contents
loading

Table of Contents