Replicate host volume, mount components to a host, Template summary – HP P6000 Continuous Access Software User Manual
Page 215
} ALWAYS {
24
// Restore the writeback cache on the host volume(s).
25
SetHostVolumeWriteCacheMode ($source_hostvol_unc1, WRITE_CACHE_ENABLED, NOWAIT) onerror continue
26
//
27
}
28
//
29
// Wait for replicated storage to appear.
30
WaitForStorageVolumesDiscovery ($Rep1) onerror pauseat E2:
31
//
32
// Mount the replicated volume(s) on a host.
33
PresentStorageVolumes ($Rep1, $mount_host) onerror pauseat E2:
34
DiscoverDiskDevices ($mount_host, $Rep1) onerror continue
35
$HV1 = CreateHostVolumeFromDiskDevices ($source_hostvol_unc1, $Rep1, $mount_host) onerror pauseat E2:
36
$MP1 = MountHostVolume ($HV1, %mount_point1%) onerror pauseat E3:
37
//
38
// Wait for user to initiate rollback.
39
Pause ()
40
//
41
// Rollback.
42
E4: UnmountHostVolume ($MP1) onerror pauseat E4:
43
E3: DeleteHostVolume ($HV1) onerror pauseat E3:
44
//
45
E2: DeleteStorageVolumesInManagedSet (%dest_container_set1%) onerror pauseat E2:
46
//
47
Exit (SUCCESS)
48
//
49
// Failure exit - no rollback needed.
50
E1: Exit (FAILURE)
51
Replicate host volume, mount components to a host (template)
Template summary
A.
Locally replicates (copies) the storage volumes that underlie a host volume on an enabled host.
B.
Presents the underlying storage volume copies to a second enabled host (creates a new host
volume).
C.
Mounts a component in the new host volume on the second enabled host.
D.
Pauses the job.
E.
After continuing, unmounts the component from the second enabled host, unpresents and
deletes the storage volume copies from the storage system.
Job templates
215