Line Task
1
// Replicate host volume(s), and mount 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 ($mount_host)
10 ValidateHostVolume ($source_hostvol_unc1)
11
ValidateSnapshotHostVolume ($source_hostvol_unc1)
12 //
13 $Rep1 = SnapshotHostVolume ($source_hostvol_unc1, FULLY_ALLOCATED, SAME, WAIT) onerror
pauseat E1:
14 //
15 // Mount the replicated volume(s) on a host.
16 PresentStorageVolumes ($Rep1, $mount_host) onerror pauseat E2:
17 DiscoverDiskDevices ($mount_host, $Rep1) onerror continue
18 $HV1 = CreateHostVolumeFromDiskDevices ($source_hostvol_unc1, $Rep1, $mount_host) onerror
pauseat E2:
19 $MP1 = MountHostVolume ($HV1, %mount_point1%) onerror pauseat E3:
20 //
21 // Wait for user to initiate rollback.
22 Pause ()
23 //
24 // Rollback.
25 E4: UnmountHostVolume ($MP1) onerror pauseat E4:
26 E3: DeleteHostVolume ($HV1) onerror pauseat E3:
27 //
28 E2: DeleteStorageVolumes ($Rep1) onerror pauseat E2:
29 //
30 Exit (SUCCESS)
31 //
32 // Failure exit - no rollback needed.
33 E1: Exit (FAILURE)
232
Jobs
Содержание 418800-B21 - StorageWorks Modular Smart Array 70 Storage Enclosure
Страница 16: ...Tables 1 Document conventions 18 16 ...
Страница 20: ...20 About this guide ...
Страница 56: ...56 Replication Solutions Manager ...
Страница 160: ...160 Host volumes ...
Страница 384: ...384 Managed sets ...
Страница 402: ...402 Oracle ...
Страница 412: ...412 Storage systems ...
Страница 444: ...444 Virtual disks ...
Страница 456: ...456 CLUI ...