Sun Cluster 3.1 - 3.2 With Network-Attached Storage Devices Manual for Solaris OS

ProcedureHow to Add Sun NAS Directories to a Cluster

Before You Begin

The procedure relies on the following assumptions:

This procedure provides the long forms of the Sun Cluster commands. Most commands also have short forms. Except for the forms of the command names, the commands are identical. For a list of the commands and their short forms, see Appendix A, Sun Cluster Object-Oriented Commands, in Sun Cluster 3.1 - 3.2 Hardware Administration Manual for Solaris OS.

To perform this procedure, become superuser or assume a role that provides solaris.cluster.read and solaris.cluster.modify RBAC authorization.

  1. Use Sun StorEdge Web Administrator to create the Sun NAS volumes.

    “Product Overview” in the Sun StorageTek NAS OS Administration Guide describes the Sun StorEdge Web Administrator graphical user interface (GUI). “Creating File Volumes or Segments” in the Sun StorageTek NAS OS Administration Guide describes how to create file volumes.

  2. Use Sun StorEdge Web Administrator to add read/write access to every cluster node.


    Caution – Caution –

    You must explicitly grant read/write access to each cluster node. Do not enable general access and do not add access by specifying a cluster host group.


    “Setting Up NFS Exports” in the Sun StorageTek NAS OS Administration Guide describes how to add read/write access to nodes in the cluster.

  3. Log into your NAS device and use the Sun StorEdge list command to verify the changes that you made to the approve file, as shown in the following example.


    pschost-2# telnet 10.8.165.42
    Trying 10.8.165.42...
    Connected to 10.8.165.42.
    Escape character is '^]'.
    connect to (? for list) ? [menu] admin
    password for admin access ? ********
    n1nas20 > approve list
    ====================
    acache: approve
    ====================
    files / @trusted access=rw uid0=0
    admin * @schostgroup access=trusted
    files /vol1 schost1 access=rw
    files /vol1 schost2 access=rw
    files /vol2 schost1 access=rw
    files /vol2 schost2 access=rw
    ====================
    acache: hostgrps
    ====================
    trusted schostgroup
    n1nas20 > 
  4. From any cluster node, add the directories.

    • If you are using Sun Cluster 3.2, use the following command:


      # clnasdevice add-dir -d /export/dir1,/export/dir2 myfiler
      
      -d /export/dir1, /export/dir2

      Enter the directory or directories that you are adding.

      myfiler

      Enter the name of the Sun NAS device containing the directories.

      For more information about the clnasdevice command, see the clnasdevice(1CL) man page.

    • If you are using Sun Cluster 3.1, use the following command:


      # scnasdir -a -h myfiler -d /vol/DB1 -d /vol/DB2
      
      -a

      Add the directory or directories to cluster configuration.

      -h myfiler

      Enter the name of the Sun NAS device whose directories you are adding.

      -d

      Enter the directory to add. Use this option once for each directory you are adding. This value must match the name of one of the directories exported by the Sun NAS device.

  5. Confirm that the directories have been added.

    • If you are using Sun Cluster 3.2, use the following command:


      # clnasdevice show -v
      
    • If you are using Sun Cluster 3.1, use the following command:


      # scnas -p
      
  6. If you do not use the automounter, mount the directories by performing the following steps:

    1. On each node in the cluster, create a mount-point directory for each Sun NAS directory that you added.


      # mkdir -p /path-to-mountpoint
      
      path-to-mountpoint

      Name of the directory on which to mount the directory

    2. On each node in the cluster, add an entry to the /etc/vfstab file for the mount point.

      If you are using your Sun NAS device for Oracle Real Application Clusters database files, set the following mount options:

      • forcedirectio

      • noac

      • proto=tcp

      When mounting Sun NAS directories, select the mount options appropriate to your cluster applications. Mount the directories on each node that will access the directories. Sun Cluster places no additional restrictions or requirements on the options that you use.