Oracle® Solaris Cluster With Network-Attached Storage Device Manual

Exit Print View

Updated: July 2014, E39824-01
 
 

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.


This procedure provides the long forms of the Oracle Solaris Cluster commands. Most commands also have short forms. Except for the forms of the command names, the commands are identical.

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 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. Before you remove the project, ensure that no directories within the project are in use within the cluster. Remove the projects.
    • Perform this command from any cluster node:
      # clnasdevice remove-dir -d project1 myfiler
      –d project1

      Enter the project or projects that you are removing.

      myfiler

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

      To remove all of this device's projects, specify all for the –d option:

      # clnasdevice remove-dir -d all myfiler

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

    • 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
      zcname

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

      To remove all of this device's projects, specify all for the –d option:

      # clnasdevice remove-dir -d all -Z zcname myfiler

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

  3. Confirm that the projects have been removed.
    • Perform this command from any cluster node:
      # clnasdevice show -v
    • 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

    Note - 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(1CL) man page.

See also

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