HP 418800-B21 HP StorageWorks Replication Solutions Manager 4.0.1 job command - Page 38
Considerations, Example
UPC - 882780564640
View all HP 418800-B21 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 38 highlights
• Include e-mail notification. Adds a command for e-mail notification of the job instance status. See SetNotificationPolicy. Considerations • Tru64 UNIX. When replicating AdvFS volumes that have heavy I/O, select the option Suspend source before replication. Example This template was generated to fracture and mount one host volume on an enabled host. No other template options were selected. Line Task 1 // Fracture host volume and mounting it to a host. 2 // 3 // Assign some variables that will be used in this job. 4 $source_hostvol_unc1 = SetVariable(%source_hostvol_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 ValidateHostVolumeMirrorclones ($source_hostvol_unc1) 12 // 13 WaitHostVolumeNormalization($source_hostvol_unc1) 14 // 15 // 16 DO { 17 // The return value from FractureHostVolumeMirrorclones is a list of mirrorclones of under line storage volumes of a host volume. 18 $Rep1 = FractureHostVolumeMirrorclones ($source_hostvol_unc1) 19 // 20 } ALWAYS { 21 } 22 // 23 // Mount the replicated volume(s) on a host. 24 PresentStorageVolumes ($Rep1, $mount_host) onerror pauseat E2: 25 DiscoverDiskDevices ($mount_host, $Rep1) onerror continue 26 $HV1 = CreateHostVolumeFromDiskDevices ($source_hostvol_unc1, $Rep1, $mount_host) onerror pauseat E3: 27 $MP1 = MountHostVolume ($HV1, %mount_point1%) onerror pauseat E4: 28 // 38 Job concepts, templates and commands