Sun Open Telecommunications Platform 1.0 Installation and Administration Guide

ProcedureTo Create Shared Storage on the Clustered OTP System


Caution – Caution –

Set the hard drive variables according to your cluster settings. Failure to do so will result in OTP high availability framework installation failure.


Before You Begin

The OTP high availability framework must be set up on all OTP hosts in the clustered OTP system.

  1. Create the shared storage meta database on all clustered OTP hosts.

    The following steps must be performed for each clustered OTP host.

    1. Log in to the clustered OTP host as root (su - root).

    2. Determine the drive on which root is mounted and the available free space.

      Typeprtvtoc `mount | awk '/^\/ / { print $3 }'` to list the hard drive slices and available space.

      For example:


      # prtvtoc `mount | awk '/^\/ / { print $3 }'` 
      * /dev/rdsk/c0t0d0s0 partition map
      *
      * Dimensions:
      *     512 bytes/sector
      *     424 sectors/track
      *      24 tracks/cylinder
      *   10176 sectors/cylinder
      *   14089 cylinders
      *   14087 accessible cylinders
      *
      * Flags:
      *   1: unmountable
      *  10: read-only
      *
      * Unallocated space:
      *       First     Sector    Last
      *       Sector     Count    Sector 
      *    63620352  79728960 143349311
      *
      *                          First     Sector    Last
      * Partition  Tag  Flags    Sector     Count    Sector  Mount Directory
             0      2    00    8201856  51205632  59407487   /
             1      3    01          0   8201856   8201855
             2      5    00          0 143349312 143349311
             3      0    00   59407488   2106432  61513919   /globaldevices
             7      0    00   61513920   2106432  63620351
    3. Create the database.

      Type metadb -a -f -c 6 disk slice where disk slice is an available file system.

      For example, based on the example in the previous step:


      # metadb -a -f -c 6 c0t0d0s7
      
  2. Create the shared storage files only on the first OTP host.

    The first OTP host must be connected to the shared storage.

    1. Log in to the first OTP host as root (su - root).

    2. Type the scdidadm command to determine which disks are seen on all nodes of cluster and choose one to be the shared disk to metaset.

      In the following example d4, d5, d6, and d7 are shared disks.


      # /usr/cluster/bin/scdidadm -L
      1   otpclient1:/dev/rdsk/c1t0d0    /dev/did/rdsk/d1
      2   otpclient1:/dev/rdsk/c2t0d0    /dev/did/rdsk/d2
      3   otpclient1:/dev/rdsk/c2t1d0    /dev/did/rdsk/d3
      4   otpclient1:/dev/rdsk/c3t600C0FF000000000092C187A9755BE14d0 /dev/did/rdsk/d4
      4   otpclient2:/dev/rdsk/c3t600C0FF000000000092C187A9755BE14d0 /dev/did/rdsk/d4
      5   otpclient1:/dev/rdsk/c3t600C0FF000000000092C187A9755BE13d0 /dev/did/rdsk/d5
      5   otpclient2:/dev/rdsk/c3t600C0FF000000000092C187A9755BE13d0 /dev/did/rdsk/d5
      6   otpclient1:/dev/rdsk/c3t600C0FF000000000092C187A9755BE12d0 /dev/did/rdsk/d6
      6   otpclient2:/dev/rdsk/c3t600C0FF000000000092C187A9755BE12d0 /dev/did/rdsk/d6
      7   otpclient1:/dev/rdsk/c3t600C0FF000000000092C187A9755BE11d0 /dev/did/rdsk/d7
      7   otpclient2:/dev/rdsk/c3t600C0FF000000000092C187A9755BE11d0 /dev/did/rdsk/d7
      8   otpclient2:/dev/rdsk/c1t0d0    /dev/did/rdsk/d8
      9   otpclient2:/dev/rdsk/c2t0d0    /dev/did/rdsk/d9
      10  otpclient2:/dev/rdsk/c2t1d0    /dev/did/rdsk/d10
    3. Add the additional OTP hosts.

      Type metaset -s sps–dg -a -h otpclient1 otpclientn where otpclient1 otpclientn is the list of OTP hosts separated by a space. For example, assuming that otpclient1 is the First OTP host


      # metaset -s sps–dg -a -h  otpclient2 otpclient3 otpclient4 otpclient5 \
      ontclient6 otpclient7 otpclient8
      
    4. Type metaset -s sps–dg -a shared-disk to add the shared disk to metaset.

      In the following example, the d7 shared disk is added:


      # metaset -s sps–dg -a /dev/did/rdsk/d7
      
    5. Type metainit -s sps–dg d0 1 1 /dev/did/rdsk/d7s0

    6. Type newfs /dev/md/sps–dg/rdsk/d0

    7. On a two-host cluster only, set up the mediator strings for the sps-dg disk group.

      Type metaset -s sps–dg -a -m otpclient1 otpclientn where otpclient1 otpclientn is the list of OTP hosts separated by a space. For example:


      # metaset -s sps–dg -a -m otpclient1 otpclient2 otpclient3 otpclient4 otpclient5 \
      ontclient6 otpclient7 otpclient8
      
    8. Type metaset to verify the mediator host setup.

      The following example shows hosts otpclient1 and otpclient2 set up as mediator hosts.


      # metaset
      Set name = sps–dg, Set number = 1
      Host                Owner
        otpclient1         Yes
        otpclient2
      Mediator Host(s)    Aliases
        otpclient1
        otpclient2
      Driv Dbase
      d4   Yes
  3. Update the /etc/vfstab file on all clustered OTP hosts.

    The following steps must be performed for each host.

    1. Log in to the clustered OTP host as root (su - root).

    2. Update the /etc/vfstab file.

      Type echo /dev/md/sps-dg/dsk/d0 /dev/md/sps-dg/rdsk/d0 /var/otp ufs 2 no global,logging >>/etc/vfstab

    3. Type mkdir -p /var/otp

Next Steps

Set up the system management and provisioning services on the first OTP host as described in the next procedure.