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

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

Advertisement

3
// Assign some variables that will be used in this job.
4
$source_hostvol_unc1 = SetVariable(%source_hostvol_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
ValidateHostVolume ($source_hostvol_unc1
12
//
13
// Begin flushing the cache on the host volume(s).
SetHostVolumeWriteCacheMode ($source_hostvol_unc1, WRITE_CACHE_DISABLED, NOWAIT) onerror
14
pauseat E1:
15
//
16
// Wait for the cache flush to complete.
17
WaitForHostVolumeWriteCacheFlush ($source_hostvol_unc1) onerror pauseat E1:
18
//
19
DO {
$Rep1 = SnapshotHostVolumeToContainersInManagedSet ($source_hostvol_unc1,
20
%dest_container_set1%, FULLY_ALLOCATED, NOWAIT) onerror pauseat E1:
21
//
22
} ALWAYS {
23
// Restore the writeback cache on the host volume(s).
SetHostVolumeWriteCacheMode ($source_hostvol_unc1, WRITE_CACHE_ENABLED, NOWAIT) onerror
24
continue
25
//
26
}
27
//
28
// Wait for replicated storage to appear.
29
WaitForStorageVolumesDiscovery ($Rep1) onerror pauseat E2:
30
//
31
// Mount the replicated volume(s) on a host.
32
PresentStorageVolumes ($Rep1, $mount_host) onerror pauseat E2:
33
DiscoverDiskDevices ($mount_host, $Rep1) onerror continue
$HV1 = CreateHostVolumeFromDiskDevices ($source_hostvol_unc1, $Rep1, $mount_host) onerror
34
pauseat E2:
35
$MP1 = MountHostVolume ($HV1, %mount_point1%) onerror pauseat E3:
36
//
37
// Wait for user to initiate rollback.
38
Pause ()
HP StorageWorks Replication Solutions Manager 4.0.1
65

Advertisement

Table of Contents
loading

Table of Contents