Go to main content

Managing Network-Attached Storage Devices in an Oracle® Solaris Cluster 4.4 Environment

Exit Print View

Updated: April 2019
 
 

How to Remove Oracle ZFS Storage Appliance Directories and Projects and From a Cluster

Before You Begin


Note -  When you remove the directories, the data on those directories is not available to the cluster. Ensure that other device projects or shared storage in the cluster can continue to serve the data when these directories are removed. When the directory is removed, change the following items in the cluster configuration:
  • Change the NFS file system entries in the /etc/vfstab file for that device, and unconfigure any SUNW.ScalMountPoint resources.

  • Reconfigure applications or data services with dependencies on these file systems to use other storage devices, or remove them from the cluster.


To perform this procedure, assume the root role or a role that provides solaris.cluster.read and solaris.cluster.modify authorization.

  1. If you are using hard mounts or the automounter, unconfigure the NFS file system.
    1. On each node in the cluster, unmount the file system you are removing.
      # umount /mount-point
    2. On each node in the cluster, remove the entries in the /etc/vfstab file for the projects you are removing.

      Skip this step if you are using the automounter.

  2. (Optional) Perform the remaining steps in this procedure only if you want to remove the project containing this directory from the cluster configuration.
    1. Ensure that no directories within the project are in use within the cluster.
    2. Remove the projects.

      Perform this command from any cluster node:

      # clnasdevice remove-dir -d project1 myfiler
      –d project1

      Specifies the project or projects that you are removing. To remove all of this device's projects, specify all for the –d option.

      myfiler

      Specifies the name of the Oracle ZFS Storage Appliance NAS device containing the projects.

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


      Note -  If you want to remove a project from an Oracle ZFS Storage Appliance device from a zone cluster but you need to issue the command from the global zone, use the clnasdevice command with the –Z option:
      # clnasdevice remove-dir -d project1 -Z zcname myfiler
      –Z zcname

      Specifies the name of the zone cluster where the Oracle ZFS Storage Appliance NAS projects are being removed.

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


  3. Confirm that the projects have been removed.

    Perform this command from any cluster node:

    # clnasdevice show -v

    Note -  If you want to check the NAS projects for a zone cluster but you need to issue the command from the global zone, use the clnasdevice command with the –Z option:
    # clnasdevice show -v -Z zcname

    You can also perform zone cluster-related commands inside the zone cluster by omitting the –Z option. For more information about the clnasdevice command, see the clnasdevice(8CL) man page.


See Also

To remove the device, see How to Remove an Oracle ZFS Storage Appliance NAS Device From a Cluster.