Line Task
1
// Replicate host disk device(s), and mount to a host.
2
//
3
// Assign some variables that will be used in this job.
4
$source_host = SetVariable(%source_host%)
5
$source_disk_device_unc1 = SetVariable(%source_disk_device_unc1%)
6
$dest_storvol1 = SetVariable(%dest_storvol1%)
7
$mount_host = SetVariable(%mount_host%)
8
//
9
// Validate that resources are as expected.
10 ValidateHost ($source_host)
11
ValidateHost ($mount_host)
12 //
13 $Rep1 = SnapshotDiskDevice ($source_disk_device_unc1, FULLY_ALLOCATED, SAME, $dest_storvol1,
WAIT) onerror pauseat E1:
14 //
15 // Create disk device(s) on a host.
16 CreateDiskDevice ($Rep1, $mount_host, %LUN%, READ_WRITE) onerror pauseat E2:
17 //
18 // Wait for user to initiate rollback.
19 Pause ()
20 //
21 // Rollback.
22 E3: RemoveDiskDevice ($Rep1, $mount_host) onerror pauseat E2:
23 //
24 E2: DeleteStorageVolume ($Rep1) onerror pauseat E2:
25 //
26 Exit (SUCCESS)
27 //
28 // Failure exit - no rollback needed.
29 E1: Exit (FAILURE)
Replicate host volume group, mount components to a host (template)
Template summary
A.
Locally replicates (copies) the storage volumes that underlie a host volume group on an enabled
host.
B.
Presents the underlying storage volume copies to a second enabled host (creates a new host
volume group).
224
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 ...