PRIMECLUSTER Installation and Administration Guide 4.1 (for Solaris(TM) Operating System)
Contents Index PreviousNext

Part 2 Installation> Chapter 6 Building Cluster Applications> 6.6 Setting Up Cluster Applications> 6.6.1 Setting Up Resources> 6.6.1.8 Creating Line Switching Unit Resources

6.6.1.8.1 Prerequisites

You must always perform the setup described below before using a line switching unit resource.

mark1Resource registration

To use a line switching unit, you must first register a switching line resource (SH_SWLine class) to the resource database.

This section describes the procedure for registering a switching line resource to the resource database.

mark2Registration procedure flow

  1. Check the resource name of the line switching unit.
  2. Register the switching line resource.
  3. Check the registration information.

mark2Registration procedure

  1. Confirmation of the resource name of the line switching unit resource

    Check the resource names of the line switching units that are registered to the resource database by using the "clgettree(1)" command.

    # clgettree
    Cluster 1 cluster
         Domain 2 CLUSTER
              Shared 7 SHD_CLUSTER
                      SHD_DISK 21 SHD_Disk21 UNKNOWN
                              DISK 22 c5t0d0 ON node1
                              DISK 27 c4t0d0 ON node2
                      SH_SWU 18 SWU2002 UNKNOWN
              Node 3 node1 ON
                      Ethernet 29 hme0 ON
                      DISK 19 c0t0d0 UNKNOWN
                      DISK 22 c5t0d0 ON
              Node 5 node2 ON
                      Ethernet 30 hme0 ON
                      DISK 25 c0t0d0 UNKNOWN
                      DISK 27 c4t0d0 ON

    In this example, the line indicating "SH_SWU" shows the resource name is "SWU2002". If you cannot confirm the resource name, see "Automatic Configuration" and register the line switching units to the resource database.

  2. Registration of switching line resources

    Execute the "claddswursc(1M)" command to add the switching line resources to the resource database.

    # claddswursc -k sh_swl_1 -s SWU2002 -0 node1 -1 node2 -m 0x3

    In this example, the line switching unit called "SWU2002," which was checked in step 2, is used to register the switching line resource called "sh_swl_1."

    Port 0 of the switching unit is connected to "node1," and port 1 to "node2."

    Since the two switching units LSU01 and LSU00 are to be used, the mask value is set to 0x3.

    For details on the "claddswursc(1M)" command, see the manual page.
  3. Confirmation of registration information

    Execute the "clgettree(1)" command to check that the switching unit resources of the line switching unit have been registered to the resource database.

    Example) Resources of the "SWLine" class are the switching unit resources of the line switching unit.
    The resources of the "SH_SWLine" class show a sharing relationship of the switching units for the line switching unit.

          # /etc/opt/FJSVcluster/bin/clgettree
          Cluster 1 cluster
               Domain 2 CLUSTER
                    Shared 7 SHD_CLUSTER
                            SHD_DISK 21 SHD_Disk21 UNKNOWN
                                    DISK 22 c5t0d0 ON node1
                                    DISK 27 c4t0d0 ON node2
                            SH_SWU 18 SWU2002 UNKNOWN
                                    SH_SWLine 19 sh_swl_1 UNKNOWN
                                          SWLine 35 sh_swl_1P0 UNKNOWN node1
                                          SWLine 36 sh_swl_1P1 UNKNOWN node2
                    Node 3 node1 ON
                            Ethernet 29 hme0 ON
                            DISK 19 c0t0d0 UNKNOWN
                            DISK 22 c5t0d0 ON
                            SWLine 35 sh_swl_1P0 UNKNOWN
                    Node 5 node2 ON
                            Ethernet 30 hme0 ON
                            DISK 25 c0t0d0 UNKNOWN
                            DISK 27 c4t0d0 ON
                            SWLine 36 sh_swl_1P1 UNKNOWN

mark1Explanation of resources related to line switching units

This section explains the information that is output by the "clgettree" command.

[Output example]

Cluster 1 cluster
     Domain 2 CLUSTER
          Shared 7 SHD_CLUSTER
               SHD_DISK 21 SHD_Disk21 UNKNOWN
                       DISK 22 c5t0d0 ON node1
                       DISK 27 c4t0d0 ON node2
               SH_SWU 18 SWU2002 UNKNOWN                          .....(a)
                       SH_SWLine 19 sh_swl_1 UNKNOWN              .....(b)
                             SWLine 35 sh_swl_1P0 UNKNOWN node1   .....(c)
                             SWLine 36 sh_swl_1P1 UNKNOWN node2   .....(d)
          Node 3 node1 ON
                  Ethernet 29 hme0 ON
                  DISK 19 c0t0d0 UNKNOWN
                  DISK 22 c5t0d0 ON
                  SWLine 35 sh_swl_1P0 UNKNOWN
          Node 5 node2 ON
                  Ethernet 30 hme0 ON
                  DISK 25 c0t0d0 UNKNOWN
                  DISK 27 c4t0d0 ON
                  SWLine 36 sh_swl_1P1 UNKNOWN

[Explanation]

(a) This line identifies a line switching unit resource.
In the example shown in the above figure, "SWU2002" is the resource name of the resource representing the line switching unit.
This resource is displayed when PRIMECLUSTER recognizes the line switching unit when automatic resource registration is executed.
(b) This line identifies a switching line shared resource of the line switching unit.
In the example shown in the above figure, "sh_swl_1" is the resource name of the switching line shared resource (switching line name).
This resource is displayed when the switching line resources of the line switching unit are registered to the resource database with the "claddswursc" command.
As shown in the example of the above figure, this resource belongs to the "SH_SWLine" class.
(c),(d)
These lines represent switching line resources of the line switching unit.
In the example shown in the above figure, "sh_swl_1P0" and "sh_swl_1P1" are resource names for switching line resources.
These resources are displayed when the switching line resources of the line switching unit are registered to the resource database with the "claddswursc" command.
As shown in the example of the above figure, these resources belong to the "SWLine" class.

Contents Index PreviousNext

All Rights Reserved, Copyright (C) FUJITSU LIMITED 2005