Scenario: typical usage for the CLI
The main focus of the following example
is to provide storage to your host system using the command-line interface (CLI). In this
instance, the CLI is the CLI available using the clustered system Internet Protocol (IP), not
the CLI used available using the service IP. (The CLI available using the clustered system IP
uses svctask and svcinfo commands and the CLI available
using the service IP uses satask and sainfo
commands.)
In this example, you want to provide a host system with two disks and create a FlashCopy® of these two disks. The copy is to be made available to a second host. These two hosts require that the host objects that are created, correspond with the group of worldwide port names (WWPNs) presented by their Fibre Channel host bus adapters (HBAs) to the SAN. You also need to create four virtual disks, also known as volumes, one for each of the disks that are to be presented to the hosts. Once the volumes are created, you can map two of them to each host. In order to create the volumes you need to have storage pools. You want to spread the 8 MDisks across two storage pool and create the source volumes from one and the target volumes from the other. In order to create any of these objects you need to create a system and at least add one more node to the system.
- Create a system.
- Configure the system with an IP address of
9.20.123.456, a fabric speed of 2 GB. Name the systemexamplecluster. - Add nodes:
- Add
knodeandlnodeto the input/output (I/O) group calledio_grp0in theexampleclustersystem. - Add
mnodeandnnodeto the I/O group calledio_grp1in theexampleclustersystem.
- Add
- Create the storage pools
maindiskgroupandbkpdiskgroup. - Create four volumes:
- Create two volumes from
maindiskgroup. - Create two volumes from
bkpdiskgroup.
- Create two volumes from
- Create two host objects:
- Create a host object called
demohost1with HBAs that have WWPNs of10000000C92AD7E5and10000000C92F5123. - Create a host object called
demohost2with HBAs that have WWPNs of210000E08B0525D4and210100E08B2525D4.
- Create a host object called
- Create the volume-to-host mappings:
- Map the two volumes from
maindiskgrouptodemohost1. - Map the two volumes from
bkpdiskgrouptodemohost2.
- Map the two volumes from
- Create FlashCopy mappings:
- Create a FlashCopy mapping called
main1copythat has a background copy rate of 75. - Create a FlashCopy mapping called
main2copythat has a background copy rate of 50.
- Create a FlashCopy mapping called
- Create a FlashCopy consistency group called
maintobkpfcopyand add the two FlashCopy mappings to it. - Prepare and trigger (or start) the FlashCopy
consistency group that contains these mappings.Note: Once this step is complete, you have created and allocated storage to your host systems. You have made two volumes available to
demohost1and then used FlashCopy to make backup copies on two volumes that are accessible todemohost2.