HP StorageWorks 70 HP StorageWorks Replication Solutions Manager 4.0.1 user gu - Page 243
SetStorageVolumesWriteCacheMode $source_storvol_list, WRITE_CACHE_ENABLED, NOWAIT
View all HP StorageWorks 70 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 243 highlights
Line Task 1 // Replicate storage volume(s) via pre-allocated replication. 2 // 3 // Assign some variables that will be used in this job. 4 $source_storvol_list = SetListVariable(%source_storvol_list%) 5 $dest_container_list = SetListVariable(%dest_container_list%) 6 // 7 // Validate that resources are as expected. 8 ValidateStorageVolumes ($source_storvol_list) 9 // 10 // Begin flushing the cache on the storage volume(s). 11 SetStorageVolumesWriteCacheMode ($source_storvol_list, WRITE_CACHE_DISABLED, NOWAIT) onerror pauseat E1: 12 // 13 // Wait for the cache flush to complete. 14 WaitForStorageVolumesWriteCacheFlush ($source_storvol_list) onerror pauseat E1: 15 // 16 DO { 17 $Rep1 = SnapshotStorageVolumesToContainers ($source_storvol_list, $dest_container_list, FULLY_ALLOCATED, NOWAIT) onerror pauseat E2: 18 // 19 } ALWAYS { 20 // Restore the writeback cache on the storage volume(s). 21 SetStorageVolumesWriteCacheMode ($source_storvol_list, WRITE_CACHE_ENABLED, NOWAIT) onerror continue 22 // 23 } 24 // 25 // Wait for user to initiate rollback. 26 Pause () 27 // 28 E2: DeleteStorageVolumes ( $Rep1 ) onerror pauseat E2: 29 // 30 Exit (SUCCESS) 31 // 32 // Failure exit - no rollback needed. 33 E1: Exit (FAILURE HP StorageWorks Replication Solutions Manager 4.0.1 243