Sun Cluster System Administration Guide for Solaris OS

ProcedureHow to Configure the File System on the Secondary Cluster for the NFS Application

Before You Begin

Complete the procedure How to Configure the File System on the Primary Cluster for the NFS Application.

  1. On nodeC, become superuser or assume a role that provides solaris.cluster.admin RBAC authorization.

  2. On nodeC, create a mount-point directory for the NFS file system.

    For example:


    nodeC# mkdir /global/mountpoint
    
  3. On nodeC, configure the master volume to be mounted automatically on the mount point.

    Add or replace the following text in the /etc/vfstab file on nodeC. The text must be on a single line.


    /dev/vx/dsk/devgrp/vol01 /dev/vx/rdsk/devgrp/vol01 \
    /global/mountpoint ufs 3 no global,logging
  4. On nodeC, create a volume for the file system information that is used by the Sun Cluster HA for NFS data service.


    nodeC# vxassist -g devgrp make vol05 120m disk1
    

    Volume 5, vol05, contains the file system information that is used by the Sun Cluster HA for NFS data service.

  5. On nodeC, resynchronize the device group with the Sun Cluster software.


    nodeC# cldevicegroup sync devgrp
    
  6. On nodeC, create the file system for vol05.


    nodeC# newfs /dev/vx/rdsk/devgrp/vol05
    
  7. On nodeC, create a mount point for vol05.

    The following example creates the mount point /global/etc.


    nodeC# mkdir /global/etc
    
  8. On nodeC, configure vol05 to be mounted automatically on the mount point.

    Add or replace the following text in the /etc/vfstab file on nodeC. The text must be on a single line.


    /dev/vx/dsk/devgrp/vol05 /dev/vx/rdsk/devgrp/vol05 \
    /global/etc ufs 3 yes global,logging
  9. Mount vol05 on nodeC.


    nodeC# mount /global/etc
    
  10. Make vol05 accessible to remote systems.

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


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


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


      share -F nfs -o rw -d "HA NFS" /global/mountpoint
      
Next Steps

Go to How to Create a Replication Resource Group on the Primary Cluster.