Comments, Example – HP P6000 Continuous Access Software User Manual

Page 194

Advertising
background image

Comments

This template cannot be used with some older versions of controller software.

HP recommends that you perform restores of host volumes using the GUI.

Example

This template was generated to copy (restore) one storage volume. No other template options were
selected.

Task

Line

// Synchronize storage volume(s) to other storage volume(s)

1

//

2

// Assign some variables that will be used in this job.

3

$source_storvol_unc1 = SetVariable(%source_storvol_unc1%)

4

$dest_storvol_unc1 = SetVariable(%dest_storvol_unc1%)

5

//

6

// Validate that resources are as expected.

7

ValidateStorageVolume ($dest_storvol_unc1)

8

//

9

// Begin flushing the cache on the storage volume(s).

10

DO {

11

SetStorageVolumeWriteCacheMode ($source_storvol_unc1, WRITE_CACHE_DISABLED, NOWAIT)

12

//

13

// Wait for the cache flush to complete.

14

WaitForStorageVolumeWriteCacheFlush ($source_storvol_unc1)

15

//

16

// Convert the destination storage volume(s) into container(s).

17

$CT1 = ConvertStorageVolumeIntoContainer ($dest_storvol_unc1)

18

//

19

SnapcloneStorageVolumeToContainer ($source_storvol_unc1, $CT1, NOWAIT)

20

//

21

} ALWAYS {

22

// Restore the writeback cache on the storage volume(s).

23

SetStorageVolumeWriteCacheMode ($source_storvol_unc1, WRITE_CACHE_ENABLED, NOWAIT) onerror
continue

24

//

25

}

26

//

27

Exit (SUCCESS

28

//

29

194

Jobs

Advertising