HP StorageWorks 70 HP StorageWorks Replication Solutions Manager 4.0.1 user gu - Page 238
E3: DeleteHostVolume $HV1 onerror pauseat E3
View all HP StorageWorks 70 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 238 highlights
Line Task 1 // Replicate a host volume, and mount slices/partitions/LVs to a host. 2 // 3 // Assign some variables that will be used in this job. 4 $mount_host = SetVariable(%mount_host%) 5 $source_host = SetVariable(%source_host%) 6 $source_hostvol_unc1 = SetVariable(%source_hostvol_unc1%) 7 // 8 // Validate that resources are as expected. 9 ValidateHost ($mount_host) 10 ValidateHostVolume ($source_hostvol_unc1) 11 ValidateSnapshotHostVolume ($source_hostvol_unc1) 12 // 13 $Rep1 = SnapshotHostVolume ($source_hostvol_unc1, FULLY_ALLOCATED, SAME, WAIT) onerror pauseat E1: 14 // 15 // Mount the replicated volume(s) on a host. 16 PresentStorageVolumes ($Rep1, $mount_host) onerror pauseat E2: 17 DiscoverDiskDevices ($mount_host, $Rep1) onerror continue 18 $HV1 = CreateHostVolumeFromDiskDevices ($source_hostvol_unc1, $Rep1, $mount_host) onerror pauseat E2: 19 $MP1 = MountHostVolume ($HV1, %mount_point1%) onerror pauseat E3: 20 // 21 // Wait for user to initiate rollback. 22 Pause () 23 // 24 // Rollback. 25 E4: UnmountHostVolume ($MP1) onerror pauseat E4: 26 E3: DeleteHostVolume ($HV1) onerror pauseat E3: 27 // 28 E2: DeleteStorageVolumes ($Rep1) onerror pauseat E2: 29 // 30 Exit (SUCCESS) 31 // 32 // Failure exit - no rollback needed. 33 E1: Exit (FAILURE) 238 Jobs