HP 418800-B21 HP StorageWorks Replication Solutions Manager 4.0.1 job command - Page 45
PresentStorageVolume $Rep1, $host_name, %LUN1%, READ_WRITE onerror pauseat E2
UPC - 882780564640
View all HP 418800-B21 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 45 highlights
56 // 57 // Set the DR group at Site 1 back to asynchronous. 58 SetDrGroupIoMode ($site_1_array_DR_Group_name_unc, ASYNCHRONOUS) onerror continue 59 // 60 // Present the snapclone at Site 2 to a host. 61 // NOTE: This is required only for VCS 3.x. For later versions, you may remove this step. 62 // Typically you will NOT want to present to an Enabled Host Agent, but instead 63 // use the name of a 'dummy' EVA host that you have set up in Command View. 64 PresentStorageVolume ($Rep1, $host_name, %LUN1%, READ_WRITE) onerror pauseat E2: 65 // 66 // Make a DR group with the Site 3 storage system. 67 $DRG1 = CreateDrGroup ($DR_group_name, $DR_source_storvol_unc1, $site_3_array, "", "", SAME, "", "", 0, FALSE) onerror pauseat E3: 68 // 69 // Check the state of the DR group before we continue. 70 WaitDrGroupNormalization ($DRG1) 71 // 72 // Delete the DR group from Site 2 to Site 3, but keep the copy at Site 3. 73 // Keep trying until the destination is finished allocating. 74 // The time required depends on virtual disk size, workload, etc. 75 ddgwt: Wait ("0:0:3" 76 DeleteDrGroup ($DR_group_name, DETACH) onerror goto ddgwt: 77 // 78 // Delete the presentation. 79 // This is required only for VCS 3.x. For later versions, you may remove this step. 80 E3: UnpresentStorageVolume ($Rep1, $host_name) onerror pauseat E3: 81 // 82 // Delete the snapclone(s) at Site 2 that the DR group was using. 83 E2: DeleteStorageVolume ($Rep1) onerror pauseat E2: 84 // 85 Exit (SUCCESS) 86 // 87 // Failure exit - no rollback needed. 88 E1: Exit (FAILURE) HP StorageWorks Replication Solutions Manager 4.0.1 45