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

ProcedureHow to Remove Network Appliance NAS Directories From a Cluster

Before You Begin

This procedure assumes that your cluster is operating.


Note –

When you remove the device directories, the data on those directories is not available to the cluster. Ensure that other device directories or shared storage in the cluster can continue to serve the data when these directories have been removed.


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. If you are using hard mounts rather than the automounter, unmount the NAS directories:

    1. On each node in the cluster, unmount the directories you are removing.


      # umount /mount-point
      
    2. On each node in the cluster, remove the entries in the /etc/vfstab file for the directories you are removing.

  2. From any cluster node, remove the directories.

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

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


      # clnasdevice remove-dir -d /export/dir1 myfiler
      
      -d /export/dir1

      Enter the directory or directories that you are removing.

      myfiler

      Enter the name of the 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 -r -h myfiler -d /vol/DB1 -d /vol/DB2 
      
      -r

      Remove the directory or directories from cluster configuration.

      -h myfiler

      Enter the name of the NAS device whose directories you are removing.

      -d

      Enter the directory to remove. Use this option once for each directory you are removing.

      To remove all of this device's directories, specify all for the -d option:


      # scnasdir -r -h myfiler -d all 
      
  3. Confirm that the directories have been removed.

    • 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
      
See Also

To remove the device, see How to Remove a Network Appliance NAS Device From a Cluster.