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 clustered system (system) and at least add one more
node to the system.
The following steps illustrates how this can be done:
- Create a system.
- Configure the system with an IP address of 9.20.123.456, a fabric speed of 2
GB. Name the system examplecluster.
- Add nodes:
- Add knode and lnode to the input/output (I/O) group called
io_grp0 in the examplecluster system.
- Add mnode and nnode to the I/O group called
io_grp1 in the examplecluster system.
- Create the storage poolsmaindiskgroup and bkpdiskgroup.
- Create four volumes:
- Create two volumes from maindiskgroup.
- Create two volumes from bkpdiskgroup.
- Create two host objects:
- Create a host object called demohost1 with HBAs that have WWPNs of
10000000C92AD7E5 and 10000000C92F5123.
- Create a host object called demohost2 with HBAs that have WWPNs of
210000E08B0525D4 and 210100E08B2525D4.
- Create the volume-to-host mappings:
- Map the two volumes from maindiskgroup to demohost1.
- Map the two volumes from bkpdiskgroup to demohost2.
- 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.
- Create a FlashCopy consistency group called
maintobkpfcopy and 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
demohost1 and then used FlashCopy to
make backup copies on twovolumes that are accessible to demohost2.