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 example, you wish 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 (VDisks), one for each of the disks that are to be presented to the hosts. Once the VDisks are created, you can map two of them to each host. In order to create the VDisks you need to have a managed disk (MDisk) group to be able to create them from. You want to spread the 8 MDisks across two groups and create the source VDisks from one and the target VDisks from the other. In order to create any of these objects you need to create a cluster and at least add one more node to the cluster.

The following steps illustrates how this can be done:
  1. Create a cluster.
  2. Configure the cluster with an IP address of 9.20.123.456, a fabric speed of 2 GB. Name the cluster examplecluster.
  3. Add nodes
    • knode and lnode to the input/output (I/O) group called io_grp0 in the examplecluster cluster
    • mnode and nnode to the I/O group called io_grp1 in the examplecluster cluster
  4. Create the MDisk groups maindiskgroup and bkpdiskgroup
  5. Create 4 VDisks
    • 2 VDisks from maindiskgroup
    • 2 VDisks from bkpdiskgroup
  6. Create 2 host objects
    • a host object called demohost1 with HBAs that have WWPNs of 10000000C92AD7E5, and 10000000C92F5123
    • a host object called demohost2 with HBAs that have WWPNs of 210000E08B0525D4, and 210100E08B2525D4
  7. Create the VDisk-to-host mappings
    • Map the two VDisks from maindiskgroup to demohost1
    • Map the two VDisks from bkpdiskgroup to demohost2
  8. Create FlashCopy mappings
    • Create a FlashCopy mapping called main1copy that has a background copy rate of 75
    • Create a FlashCopy mapping called main2copy that has a background copy rate of 50
  9. Create a FlashCopy consistency group called maintobkpfcopy and add the 2 FlashCopy mappings to it
  10. Prepare and trigger (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 VDisks available to demohost1 and then used FlashCopy to make backup copies on two VDisks which are accessible to demohost2.
Library | Support | Terms of use | Feedback
© Copyright IBM Corporation 2003, 2009. All Rights Reserved.