HP 418800-B21 HP StorageWorks Replication Solutions Manager 4.0.1 job command - Page 65
SetHostVolumeWriteCacheMode $source_hostvol_unc1, WRITE_CACHE_ENABLED, NOWAIT onerror
UPC - 882780564640
View all HP 418800-B21 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 65 highlights
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 ValidateHostVolume ($source_hostvol_unc1 12 // 13 // Begin flushing the cache on the host volume(s). 14 SetHostVolumeWriteCacheMode ($source_hostvol_unc1, WRITE_CACHE_DISABLED, NOWAIT) onerror pauseat E1: 15 // 16 // Wait for the cache flush to complete. 17 WaitForHostVolumeWriteCacheFlush ($source_hostvol_unc1) onerror pauseat E1: 18 // 19 DO { 20 $Rep1 = SnapshotHostVolumeToContainersInManagedSet ($source_hostvol_unc1, %dest_container_set1%, FULLY_ALLOCATED, NOWAIT) onerror pauseat E1: 21 // 22 } ALWAYS { 23 // Restore the writeback cache on the host volume(s). 24 SetHostVolumeWriteCacheMode ($source_hostvol_unc1, WRITE_CACHE_ENABLED, NOWAIT) onerror continue 25 // 26 } 27 // 28 // Wait for replicated storage to appear. 29 WaitForStorageVolumesDiscovery ($Rep1) onerror pauseat E2: 30 // 31 // Mount the replicated volume(s) on a host. 32 PresentStorageVolumes ($Rep1, $mount_host) onerror pauseat E2: 33 DiscoverDiskDevices ($mount_host, $Rep1) onerror continue 34 $HV1 = CreateHostVolumeFromDiskDevices ($source_hostvol_unc1, $Rep1, $mount_host) onerror pauseat E2: 35 $MP1 = MountHostVolume ($HV1, %mount_point1%) onerror pauseat E3: 36 // 37 // Wait for user to initiate rollback. 38 Pause () HP StorageWorks Replication Solutions Manager 4.0.1 65