Go to main content

Administering an Oracle® Solaris Cluster 4.4 Configuration

Exit Print View

Updated: March 2019
 
 

How to Remove a Global ZFS Storage Pool

  1. Ensure that no active data service is currently using any of the global ZFS pool's file systems.
  2. If the global ZFS pool is managed by an HAStoragePlus resource, disable and delete the HAStoragePlus resource.
    # clresource disable hasp-zpool-resource
    # clresource delete -F hasp-zpool-resource

    The –F command-line option will forcibly remove any existing dependencies of other resources on hasp-zpool-resource.

  3. Identify the device group that manages the ZFS pool, and then proceed to offline, disable, and delete the device group.

    In the following example, the ZFS pool and its device group are named mypool.

    # cldevicegroup status
    ...
    Device Group Name   Primary       Secondary     Status
    -----------------   -------       ---------     ------
    mypool              clustnode1    clustnode2    Online
    
    # cldevicegroup offline mypool
    # cldevicegroup disable mypool
    # cldevicegroup delete mypool

    At this point, the ZFS pool mypool is no longer managed by Oracle Solaris Cluster. You can import this ZFS pool using the zpool import mypool command and use it as an ordinary ZFS pool, or destroy it using the zpool destroy mypool command.