HP StorageWorks 70 HP StorageWorks Replication Solutions Manager 4.0.1 user gu - Page 222
E4: UnmountHostVolume $MP1 onerror pauseat E4
View all HP StorageWorks 70 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 222 highlights
Line Task 1 // Make multiple snapclones of the same Host Volume, and mount to a host. 2 // This requires normalization between each snapclone. 3 // 4 // Assign some variables that will be used in this job. 5 $source_hostvol_unc1 = SetVariable(%source_hostvol_unc1%) 6 $mount_host1 = SetVariable(%mount_host1%) 7 // 8 // Validate that resources are as expected. 9 ValidateHost ($mount_host1) 10 ValidateSnapcloneHostVolume ($source_hostvol_unc1) 11 // 12 $Rep1 = SnapcloneHostVolume ($source_hostvol_unc1, SAME, WAIT) onerror pauseat E1: 13 // 14 // Mount the replicated volume(s) on a host. 15 PresentStorageVolumes ($Rep1, $mount_host1) onerror pauseat E2: 16 DiscoverDiskDevices 17 $HV1 = CreateHostVolumeFromDiskDevices ($source_hostvol_unc1, $Rep1, $mount_host1) onerror pauseat E2 18 $MP1 = MountHostVolume ($HV1, %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: DeleteHostVolume ($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) 222 Jobs