HP 418800-B21 HP StorageWorks Replication Solutions Manager 4.0.1 user guide ( - Page 226
Rep1 = SnapshotHostVolumeGroup $source_VolumeGroup_unc1, FULLY_ALLOCATED, SAME, WAIT
UPC - 882780564640
View all HP 418800-B21 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 226 highlights
Line Task 1 // Replicate a host volume group, and mount component(s) 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 $source_VG_component_unc1 = SetVariable(%source_VG_component_unc1% 8 // 9 // Validate that resources are as expected. 10 ValidateHost ($source_host) 11 ValidateHost ($mount_host) 12 ValidateSnapshotHostVolumeGroup ($source_VolumeGroup_unc1) 13 // 14 $Rep1 = SnapshotHostVolumeGroup ($source_VolumeGroup_unc1, FULLY_ALLOCATED, SAME, WAIT) onerror pauseat E1: 15 // 16 // Mount the replicated volume(s) on a host. 17 $HV1 = CreateHostVolumeGroup ($source_VolumeGroup_unc1, $Rep1, $mount_host) onerror pauseat E2: 18 $MP1 = MountVolumeGroupComponent ($HV1, $source_VolumeGroup_unc1, $source_VG_component_unc1, %mount_point1%) onerror pauseat E3: 19 // 20 // Wait for user to initiate rollback. 21 Pause () 22 // 23 // Rollback. 24 E4: UnmountHostVolume ($MP1) onerror pauseat E4: 25 E3: DeleteHostVolumeGroup ($HV1) onerror pauseat E3: 26 // 27 E2: DeleteStorageVolumes ($Rep1) onerror pauseat E2 28 // 29 Exit (SUCCESS) 30 // 31 // Failure exit - no rollback needed. 32 E1: Exit (FAILURE) 226 Jobs