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

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

Example
This template was generated to create one DR group pair.
Line Task
1
// Setup Continuous Access.
2
//
3
// Assign some variables that will be used in this job.
4
$DR_source_array = SetVariable(%DR_source_array%)
5
$DR_dest_array = SetVariable(%DR_dest_array%)
6
$DR_group_name = SetVariable(%DR_group_name%)
7
$DR_source_storvol_unc1 = SetVariable(%DR_source_storvol_unc1%)
8
$dest_host_name = SetVariable(%dest_host_name%)
9
//
10
// Validate that resources are as expected.
1 1
ValidateHost ($dest_host_name)
12
ValidateStorageSystem ($DR_source_array)
13
ValidateStorageSystem ($DR_dest_array)
14
ValidateStorageVolume ($DR_source_storvol_unc1)
15
//
$DRG1 = CreateDrGroup ($DR_group_name, $DR_source_storvol_unc1, $DR_dest_array, "", "",
16
SAME, "", "", 0, FALSE) onerror pauseat E1:
17
//
18
SetDrGroupFailsafe($DRG1, %failsafe_mode%) onerror continue
19
SetDrGroupIoMode($DRG1, %io_mode%) onerror continue
20
SetDrGroupDestinationAccess($DRG1, NONE) onerror continue
21
SetDrGroupSuspend($DRG1, RESUMED) onerror continue
22
//
23
// Present destination vdisk to a destination host.
24
WaitDrGroupNormalization ($DRG1
25
// The dest_storvol will be created AFTER the job,
26
// so enter the name of the storage volume manually.
27
// Default name is the same as the source storage volume.
28
PresentStorageVolume (%dest_storvol%, $dest_host_name, %lun_number%, READ_WRITE)
29
//
30
Exit (SUCCESS)
31
//
32
// Failure exit - no rollback needed.
33
E1: Exit (FAILURE)
252
Jobs

Advertisement

Table of Contents
loading

Table of Contents