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

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 storage volume(s) via pre-allocated replication.
2
//
3
// Assign some variables that will be used in this job.
4
$source_storvol_list = SetListVariable(%source_storvol_list%)
5
$dest_container_list = SetListVariable(%dest_container_list%)
6
//
7
// Validate that resources are as expected.
8
ValidateStorageVolumes ($source_storvol_list)
9
//
10
// Begin flushing the cache on the storage volume(s).
SetStorageVolumesWriteCacheMode ($source_storvol_list, WRITE_CACHE_DISABLED, NOWAIT)
1 1
onerror pauseat E1:
12
//
13
// Wait for the cache flush to complete.
14
WaitForStorageVolumesWriteCacheFlush ($source_storvol_list) onerror pauseat E1:
15
//
16
DO {
$Rep1 = SnapshotStorageVolumesToContainers ($source_storvol_list, $dest_container_list,
17
FULLY_ALLOCATED, NOWAIT) onerror pauseat E2:
18
//
19
} ALWAYS {
20
// Restore the writeback cache on the storage volume(s).
SetStorageVolumesWriteCacheMode ($source_storvol_list, WRITE_CACHE_ENABLED, NOWAIT)
21
onerror continue
22
//
23
}
24
//
25
// Wait for user to initiate rollback.
26
Pause ()
27
//
28
E2: DeleteStorageVolumes ( $Rep1 ) onerror pauseat E2:
29
//
30
Exit (SUCCESS)
31
//
32
// Failure exit - no rollback needed.
33
E1: Exit (FAILURE
HP StorageWorks Replication Solutions Manager 4.0.1
243

Advertisement

Table of Contents
loading

Table of Contents