Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
Designing Disaster Tolerant High Availability Clusters: > Chapter 7 Cascading Failover in a Continental Cluster

Data Storage Setup

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Glossary

 » Index

These procedures will prepare the Serviceguard clusters for use in a Continentalclusters Cascading Failover configuration.

Setting Up Symmetrix Device Groups

Work with your EMC support engineer to configure the devices in three Symmetrix disk arrays. Figure 7-3 “Example of Symmetrix Device Setup” shows an example of the Symmetrix devices setup for an application that runs on clear.

Figure 7-3 Example of Symmetrix Device Setup

Example of Symmetrix Device Setup

Use the following steps:

  1. By default, the SRDF link is configured with automatic link recovery after all the failure of all links. Work with EMC support engineers to disable this feature by setting the flag “Prevent Automatic Links Recovery after all Links Failure” in the Symmetrix bin file to “Yes.” This will keep the links from automatically trying to establish a new connection upon failure of all links. This is required so you would have time to split the BCV/R1 devices in the secondary Symmetrix from the mirror group before re-establishing the SRDF volume pairs between the primary Symmetrix and the secondary Symmetrix upon link recovery.

  2. Ensure that the Symmetrix ICDAs are correctly cabled to each host system in the cluster that will run packages whose data reside on the Symmetrix.

  3. Install the SymCLI software on each host system that has data residing on the Symmetrix. Using Figure 7-3 “Example of Symmetrix Device Setup”, the SymCLI software is installed on hosts clear, erie, newyork, seattle, atlanta and sanfran.

  4. Create or rebuild the SymCLI database on each system with the most current information. Use the command:

    # symcfg discover

  5. Get a list of data for the Symmetrix devices visible to the host. Use the command:

    # syminq -sym

    to get a list that includes the following data for each Symmetrix logical device:

    • HP-UX special device filenameDevice type (R1, R2, BCV or blank)Symmetrix serial number

    Gatekeeper devices are usually of size 2880. The Symmetrix device serial number is useful in matching the devices to the actual devices in the Symmetrix configuration (downloaded by EMC):

    • The first two digits equal the last two digits of the serial number of the Symmetrix frame. The first two digits equal the last two digits of the serial number of the Symmetrix frame.

    • The next three hexadecimal digits equal the Symmetrix device number that is seen in the output of the following command:

      # symdev list

    • The next three digits equal the Symmetrix host adapter (SA or FA) and port numbers; this is useful to see multiple host links to the same Symmetrix device (PVLinks).

  6. The BCV devices are configured to be visible on a different SA/FA than R1 or R2 devices. These devices will not show on the output of the syminq command unless there is a host connection to this SA/FA and the BCV’s are split from the mirror group. To get a list of these devices, use the command:

    # symdev list

  7. Get a list of the disk devices known to the host system. Use the following command, as appropriate:

    # ioscan -kfnC disk

    or

    # ioscan -fnC disk

    Match the device file names in this listing with the device file names in the output from the syminq command to see which devices are seen from this host to make sure that this host can see all necessary devices.

  8. There are three Symmetrix device groups needed for each application package:

    • One device group contains the R1 devices in the primary Symmetrix plus its remote BCV devices in the secondary Symmetrix. This device group has to be defined in all nodes that connect to the primary Symmetrix. Based on the example shown in Figure 7-3 “Example of Symmetrix Device Setup”, Figure 7-4 “Primary Device Group” shows the devices that need to be included in the primary Symmetrix device group.

      Figure 7-4 Primary Device Group

      Primary Device Group
    • A second device group contains the R2 devices in the secondary Symmetrix and its local BCV/R1 devices in the same Symmetrix. This device group has to be defined in all nodes that connect to the secondary Symmetrix. Figure 7-5 “Secondary Device Group” shows the devices that need to be included in the secondary Symmetrix device group.

      Figure 7-5 Secondary Device Group

      Secondary Device Group
    • A third device group contains the R2 devices in the recovery Symmetrix and its local BCV devices in the same Symmetrix. This device group has to be defined in all nodes that connect to the recovery Symmetrix. Figure 7-6 “Recovery Device Group” shows the devices that need to be included in the recovery Symmetrix device group.

      Figure 7-6 Recovery Device Group

      Recovery Device Group

    Use the symdg, symld, symbcv, and symgate commands on all nodes in both clusters to create the Symmetrix device groups. All devices belonging to Volume Groups that are owned by an application package must be defined in a single Symmetrix device group. A unique Symmetrix gatekeeper device should be created for each application package. The gatekeeper devices must be unique per Serviceguard package to prevent contention in the Symmetrix when commands are issued. Gatekeeper devices are unique to a Symmetrix unit. They are not replicated across the SRDF link. There should be at least two gatekeeper devices accessible from each host system. Each gatekeeper device is configured on different physical links. The SymCLI will switch to an alternate gatekeeper device if the path to the primary device failsSee the scripts in the /opt/cmcluster/toolkit/SGSRDF/ cascade/Samples directory for examples of how these commands are used to build the SymCLI database and setup the Symmetrix device groups. The sample scripts are used as follows:

    • mkprigrp—create device group on nodes that connect to the primary Symmetrix. Run this script only on each node that connects to the primary Symmetrix.

    • mksecgrp—create device group on nodes that connect to the secondary Symmetrix. Run this script only on each node that connects to the secondary Symmetrix.

    • mkrecgrp—create device group on nodes that connect to the recovery Symmetrix. Run this script only on each node that connects to the recovery Symmetrix.

    After the device groups are created, the SymCLI database can be viewed with the commands:

    • List all device groups:

      # symdg list

    • List the content of a device group:

      # symld -g <symdevgrpname> list

    • List the gatekeeper devices:

      # symgate list

    • List all devices and their states:

      # symrdf list

  9. Create a text file that contains a list of the standard device and BCV device pair in the secondary Symmetrix. This file is required when doing operations on the BCV devices in the secondary Symmetrix from a node that connects to the recovery Symmetrix.

    This file has two columns. The first column contains the Symmetrix device number for the standard device. The second column contains the Symmetrix device number for the BCV device. Refer to the sample file midhop in the /opt/cmcluster/toolkit/SGSRDF/cascade/Samples directory.

  10. Create a text file that contains a list of the standard device and BCV device pair in the recovery Symmetrix. This file is required when doing operations on the BCV devices in the recovery Symmetrix from a node that connects to the primary Symmetrix or the secondary Symmetrix. Refer to the sample file lasthop in the /opt/cmcluster/toolkit/SGSRDF/cascade/Samples directory.

Setting up Volume Groups

Use the following procedure to set up volume groups for the volumes on the Symmetrix frames.

  1. Before creating the volume groups, make sure that the SRDF link is established between the R1 devices in primary Symmetrix and the R2 devices in the secondary Symmetrix, and the BCV/R1 devices in the secondary Symmetrix are established as mirrors of the local standard devices. On a node that connects to the primary Symmetrix, use the commands:

    # symrdf -g <prisymdevgrpname> est -v

    # symmir -g <prisymdevgrpname> -full est -rdf

  2. Define the appropriate volume groups on each host system that might run the application package. Use the commands:

    # mkdir /dev/vgxx

    # mknod /dev/vgxx/group c 64 0xnn0000

    where the name /dev/vgxx and the number nn are unique within the entire continental cluster.

  3. Create the volume group only on one cluster node that connects to the primary Symmetrix. Use the vgcreate and perhaps the vgextend command, specifying the appropriate special device file names.

  4. The LVM information needs to be replicated to the R2 devices in the recovery Symmetrix. See the script copytorec in the /opt/cmcluster/toolkit/SGSRDF/cascade/Samples directory for an example of how the replication is done. From a node that connects to the primary Symmetrix, run the script or do the following:

    1. Split the BCV/R1 devices in the secondary Symmetrix from their mirror groups:

      # symmir -g <prisymdevgrpname> split -rdf

    2. Fully establish the SRDF link between the BCV/R1 devices in secondary Symmetrix and the R2 devices in the recovery Symmetrix:

      # symrdf -g <prisymdevgrpname> -full est -rbcv

    3. Use the following command to check the data synchronization from the BCV/R1 devices to the R2 devices. If the “RDF Pair STATE” column shows the state “Synchronized” for all the devices, the copying completed.

      # symrdf -g <prisymdevgrpname> query -rbc

    4. Once the copy completes, split the SRDF link between the secondary Symmetrix and the recovery Symmetrix:

      # symrdf -g <prisymdevgrpname> split -rbcv

    5. Fully establish the BCV devices in the recovery Symmetrix as mirrors of the standard devices:

      # symmir -f <bcvdev_textfile> -sid <recsymid> -full est

      The <bcvdev_textfile> is a file that contains a list of the standard device and BCV device pair in the recovery Symmetrix.

    6. Re-establish the BCV/R1 devices to the mirror group as a mirror of the standard device. This would make the devices invisible to the systems so the vgimport would work properly. Use the command:

      # symmir -f <prisymdevgrpname> est -rdf

  5. Generate a map file by exporting the VGs on the node that was used to create the VGs without removing the special device files. Uses the commands:

    # vgchange -a n <vgname>

    # vgexport -s -p -m <mapfilename <vgname>

    Make sure to copy the mapfiles to all of the host systems.

  6. Import the VGs on all of the other systems that might run the Serviceguard package and back up the LVM configuration. Do this on both the primary and recovery cluster nodes. Make sure the SRDF link between the primary Symmetrix and the secondary Symmetrix is split before importing the VGs.

    Use the following commands:

    # symrdf -g <prisymdevgrpname> split -v

    # vgimport -s -m <mapfilename> <vgname>

    # vgchange -a y <vgname>

    # vgcfgbackup <vgname>

    # vgchange -a n <vgname>

    # symrdf -g <prisymdevgrpname> est -v

Testing the Volume Groups

Before Serviceguard and Continentalclusters can be configured, HP-UX must be satisfied. Use the following procedure to confirm that the disks have been shared, and that the volume groups can be seen on the primary and adoptive nodes:

  1. Confirm the volume groups have been imported using command:

    # strings /etc/lvmtab

  2. Split the SRDF links between the primary Symmetrix and the secondary Symmetrix (if linked). Issue the following command from a node that connects to the primary Symmetrix:

    # symrdf -g <prisymdevgrpname> split -v

  3. Activate the volume group on the primary node in the primary cluster, and mount the logical volumes.

    # vgchange -a y <vgname>

    # mkdir <tempdir>

    # mount /dev/<vgname>/<lvolname> <tempdir>

    Check the mount points:# bdf

    Do they appear? If yes, then deactivate the volume groups:# umount <tempdir>

    # vgchange -a n <vgname>

  4. Perform step 3 on all adoptive nodes in the primary cluster and in the recovery cluster.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© Hewlett-Packard Development Company, L.P.