HP 418800-B21 HP StorageWorks Replication Solutions Manager 4.0.1 user guide ( - Page 211
Example
UPC - 882780564640
View all HP 418800-B21 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 211 highlights
Example This template was generated to copy (restore) one storage volume. No other template options were selected. Line Task 1 // Synchronize storage volume(s) to other storage volume(s) 2 // 3 // Assign some variables that will be used in this job. 4 $source_storvol_unc1 = SetVariable(%source_storvol_unc1%) 5 $dest_storvol_unc1 = SetVariable(%dest_storvol_unc1%) 6 // 7 // Validate that resources are as expected. 8 ValidateStorageVolume ($dest_storvol_unc1) 9 // 10 // Begin flushing the cache on the storage volume(s). 11 DO { 12 SetStorageVolumeWriteCacheMode ($source_storvol_unc1, WRITE_CACHE_DISABLED, NOWAIT) 13 // 14 // Wait for the cache flush to complete. 15 WaitForStorageVolumeWriteCacheFlush ($source_storvol_unc1) 16 // 17 // Convert the destination storage volume(s) into container(s). 18 $CT1 = ConvertStorageVolumeIntoContainer ($dest_storvol_unc1) 19 // 20 SnapcloneStorageVolumeToContainer ($source_storvol_unc1, $CT1, NOWAIT) 21 // 22 } ALWAYS { 23 // Restore the writeback cache on the storage volume(s). 24 SetStorageVolumeWriteCacheMode ($source_storvol_unc1, WRITE_CACHE_ENABLED, NOWAIT) onerror continue 25 // 26 } 27 // 28 Exit (SUCCESS 29 // HP StorageWorks Replication Solutions Manager 4.0.1 211