Sun Microsystems
Products & Services
 
Support & Training
 
 

Previous Previous     Contents     Index     Next Next

Setting Up File Systems on the Master-Eligible Nodes

ProcedureTo Set Up File Systems on the Master-Eligible Nodes

  1. Ensure that the following directories exist on the first master-eligible node:

    # mkdir /SUNWcgha
    # mkdir /SUNWcgha/local
    # mkdir /SUNWcgha/local/export
    # mkdir /SUNWcgha/local/export/data
    # mkdir /SUNWcgha/local/export/services
    # mkdir /SUNWcgha/local/export/services/NetraHASuite_version/opt

    where NetraHASuite_version is the version of the Foundation Services you install, for example, ha_v1.

    These directories contain packages and data shared between the master-eligible nodes.

  2. Create the following mount points on each master-eligible node:

    # mkdir /SUNWcgha
    # mkdir /SUNWcgha/services
    # mkdir /SUNWcgha/remote
    # mkdir /SUNWcgha/swdb

    These directories are used as mount points for the directories that contain shared data.

  3. Add the following lines to the /etc/vfstab file on each master-eligible node:

    • If you have configured the CGTP, use the floating IP address for the cgtp0 interface that is assigned to the master role to define the mount points.

      master-cgtp:/SUNWcgha/local/export/data -       \
      /SUNWcgha/remote  nfs     -       no    rw,hard,fg,intr,noac
      
      master-cgtp:/SUNWcgha/local/export/services/ha_v1/opt  \
      -    /SUNWcgha/services   nfs     -   no   rw,hard,fg,intr,noac
      
      master-cgtp:/SUNWcgha/local/export/services     -     \
      /SUNWcgha/swdb  nfs    -       no     rw,hard,fg,intr,noac

      where master-cgtp is the host name associated with the floating address of the cgtp0 interface of the master node. For more information, see To Create Floating Address Triplet Assigned to the Master Role.

    • If you have not configured the CGTP, use the floating IP address for the NIC0 interface that is assigned to the master role.

      master-nic0:/SUNWcgha/local/export/data -       \
      /SUNWcgha/remote  nfs     -       no    rw,hard,fg,intr,noac
      
      master-nic0:/SUNWcgha/local/export/services/ha_v1/opt  \
      -    /SUNWcgha/services   nfs     -   no   rw,hard,fg,intr,noac
      
      master-nic0:/SUNWcgha/local/export/services     -     \
      /SUNWcgha/swdb  nfs    -       no     rw,hard,fg,intr,noac

      where master-nic0 is the host name associated with the floating address of the NIC0 interface of the master node. For more information, see To Create Floating Address Triplet Assigned to the Master Role.


    Note - The noac mount option suppresses data and attribute caching. Use the noac option only if the impact on performance is acceptable.


  4. Check the following in the /etc/vfstab file:

    • The mount at boot field is set to no for all physical, replicated partitions.

      /dev/dsk/c0t0d0s1 /dev/rdsk/c0t0d0s1 /SUNWcgha/local ufs 2 no logging

    • The root file system (/) has the logging option.

      /dev/dsk/c0t0d0s0 /dev/rdsk/c0t0d0s0  /  ufs  1 no logging


    Note - Only partitions identified in the nhfs.conf file can be replicated. For more information about the nhfs.conf file, see Configuring the nhfs.conf File.


ProcedureTo Verify File Systems Managed by Reliable NFS

The Reliable NFS daemon, nhcrfsd, is installed on each master-eligible node. To determine which partitions are managed by this daemon, do the following:

  1. Check the RNFS.Slice parameters of the /etc/opt/SUNWcgha/nhfs.conf file.

    For example, in the following table, the replicated file systems are /dev/rdsk/c0t0d0s3 and /dev/rdsk/c0t0d0s4.

    Table 6-4 Example File Systems Managed by the nhcrfsd Daemon

    File System Name

    Bitmap Partition

    Size (in Mbytes)

    /export

    /dev/rdsk/c0t0d0s3

    2000

    /SUNWcgha/local

    /dev/rdsk/c0t0d0s4

    2000

Installing the Man Pages on the Master-Eligible Nodes

ProcedureTo Install the Man Pages on the Master-Eligible Nodes

  1. Log in to a master-eligible node as superuser.

  2. Add the man page package:

    # pkgadd -d /NetraHASuite/Packages/ SUNWnhman

    The man pages are installed in the /opt/SUNWcgha/man directory. To access the man pages, see To Access Man Pages on the Master-Eligible Nodes.

  3. Repeat Step 1 and Step 2 on the other master-eligible node.

Starting the Master-Eligible Nodes

ProcedureTo Delete the not_configured File

The /etc/opt/SUNWcgha/not_configured file was installed automatically when you installed the CMM packages. This file enables you to reboot a cluster node during the installation process without starting the Foundation Services.

  1. After you have installed the Foundation Services packages on each master-eligible node, delete the not_configured file on each master-eligible node.

ProcedureTo Boot the Master-Eligible Nodes

  1. Unmount the shared file system, /NetraHASuite, on each master-eligible node by using the umount command.

    See the umount(1M) man page and To Mount an Installation Server Directory on the Master-Eligible Nodes.

  2. Reboot the first master-eligible node, which becomes the master node:

    # init 6

  3. After the first master-eligible node has completed rebooting, reboot the second master-eligible node:

    # init 6

    This node becomes the vice-master node. To check the role of each node in the cluster, see the nhcmmrole(1M) man page.

  4. Create the INST_RELEASE file to allow patching of shared packages:

    # /opt/SUNWcgha/sbin/nhadm confshare

ProcedureTo Verify the Cluster Configuration

Use the nhadm tool to verify that the master-eligible nodes have been configured correctly.

  1. Log in to the master-eligible node as superuser.

  2. Run the nhadm tool to validate the configuration:

    # nhadm check starting

    If all checks pass the validation, the installation of the Foundation Services was successful. See the nhadm(1M) man page.

Previous Previous     Contents     Index     Next Next