HP StorageWorks 60 HP StorageWorks Replication Solutions Manager 4.0.1 user gu - Page 252
This template was generated to create one DR group pair.
View all HP StorageWorks 60 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 252 highlights
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. 11 ValidateHost ($dest_host_name) 12 ValidateStorageSystem ($DR_source_array) 13 ValidateStorageSystem ($DR_dest_array) 14 ValidateStorageVolume ($DR_source_storvol_unc1) 15 // 16 $DRG1 = CreateDrGroup ($DR_group_name, $DR_source_storvol_unc1, $DR_dest_array, "", "", 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