HP 418800-B21 HP StorageWorks Replication Solutions Manager 4.0.1 user guide ( - Page 228
VG1 = MountEntireVolumeGroup $HV1, $source_VolumeGroup_unc1, %VGcopyPre
UPC - 882780564640
View all HP 418800-B21 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 228 highlights
Line Task 1 // Replicate host volume group(s), and mount to a host. 2 // 3 // Assign some variables that will be used in this job. 4 $source_VolumeGroup_unc1 = SetVariable(%source_VolumeGroup_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) 11 ValidateSnapshotHostVolumeGroup ($source_VolumeGroup_unc1) 12 // 13 $Rep1 = SnapshotHostVolumeGroup ($source_VolumeGroup_unc1, FULLY_ALLOCATED, SAME, WAIT) onerror pauseat E1: 14 // 15 // Mount the replicated volume(s) on a host. 16 $HV1 = CreateHostVolumeGroup ($source_VolumeGroup_unc1, $Rep1, $mount_host) onerror pauseat E2: 17 $VG1 = MountEntireVolumeGroup ($HV1, $source_VolumeGroup_unc1, %VGcopyPrefix%) onerror pauseat E3: 18 // 19 // Wait for user to initiate rollback. 20 Pause () 21 // 22 // Rollback. 23 E4: UnmountEntireVolumeGroup ($VG1) onerror pauseat E3: 24 E3: DeleteHostVolumeGroup ($HV1) onerror pauseat E3: 25 // 26 E2: DeleteStorageVolumes ($Rep1) onerror pauseat E2: 27 // 28 Exit (SUCCESS) 29 // 30 // Failure exit - no rollback needed. 31 E1: Exit (FAILURE) 228 Jobs