Sun Cluster Software Installation Guide for Solaris OS

Configuring File Systems for the NFS Application

This section describes how the file systems were configured for the NFS application.

How to Configure the File System on the Primary Cluster for the NFS Application
  1. On nodeA and nodeB, create a mount point directory for the NFS file system.

    For example:


    nodeA# mkdir /global/mountpoint
    
  2. On nodeA and nodeB, configure the master volume to be mounted automatically on the mount point.

    Add or replace the following text to the /etc/vfstab file on nodeA and nodeB. The text must be on a single line.


    /dev/vx/dsk/devicegroup/vol01 /dev/vx/rdsk/devicegroup/vol01 \
    /global/mountpoint ufs 3 no global,logging

    For a reminder of the volumes names and volume numbers used in the disk device group, see Figure 6–8.

  3. On nodeA, create a volume for the file system information that is used by Sun StorEdge Availability Suite 3.1 software.


    nodeA# /usr/sbin/vxassist -g devicegroup make vol05 120m disk1
    

    Volume 5 contains the file system information that is used by Sun StorEdge Availability Suite 3.1 software.

  4. On nodeA, resynchronize the device group with the Sun Cluster software.


    nodeA# /usr/cluster/bin/scconf -c -D name=devicegroup,sync
    
  5. On nodeA, create the file system for volume 5.


    nodeA# /usr/sbin/newfs /dev/vx/rdsk/devicegroup/vol05
    
  6. On nodeA and nodeB, create a mount point for volume 5.

    For example:


    nodeA# mkdir /global/etc
    
  7. On nodeA and nodeB, configure volume 5 to be mounted automatically on the mount point.

    Add or replace the following text to the /etc/vfstab file on nodeA and nodeB. The text must be on a single line.


    /dev/vx/dsk/devicegroup/vol05 /dev/vx/rdsk/devicegroup/vol05 \
    /global/etc ufs 3 yes global,logging
  8. Mount volume 5 on nodeA.


    nodeA# mount /global/etc
    
  9. Make volume 5 accessible to remote systems.

    1. Create a directory called /global/etc/SUNW.nfs on nodeA.


      nodeA# mkdir -p /global/etc/SUNW.nfs
      
    2. Create the file /global/etc/SUNW.nfs/dfstab.nfs-rs on nodeA.


      nodeA# touch /global/etc/SUNW.nfs/dfstab.nfs-rs
      
    3. Add the following line to the /global/etc/SUNW.nfs/dfstab.nfs-rs file on nodeA:


      share -F nfs -o rw -d "HA NFS" /global/mountpoint
      
How to Configure the File System on the Secondary Cluster for the NFS Application

    Repeat the procedure in How to Configure the File System on the Primary Cluster for the NFS Application, with these exceptions:

    • Replace nodeA with nodeC.

    • Do not use nodeB.