Go to main content

Planning and Administering Data Services for Oracle® Solaris Cluster 4.4

Exit Print View

Updated: May 2019
 
 

How to Add a zpool for Globally Mounted ZFS File Systems to an Online HAStoragePlus Resource

When you add a zpool for globally mounted ZFS file systems to an online HAStoragePlus resource, the HAStoragePlus resource does the following:

  • If the zpool is already imported on a node of the cluster, it exports the zpool. This is done regardless of HAStoragePlus resource being online, or offline.


    Caution

    Caution  -  Do not add zpools that are imported and in use. If the zpool being added to the HAStorgePlus resource is imported on any node of the cluster, this operation will export the zpool. If the zpool is in use, the running application is left without data in the zpool or if the zpool export operation fails due to application using it, the request to add this zpool to the HAStoragePlus resource fails for this reason.


  • Imports the zpool for globally mounted ZFS file systems on a node where the HAStoragePlus resource is online.

  • Mounts all file systems in the zpool for globally mounted ZFS file systems.

  1. On any node in the cluster, assume the root role, or a role that provides solaris.cluster.modify authorization.
  2. Determine the zpool for globally mounted ZFS file systems that the HAStoragePlus resource already manages.
    # clresource show -p GlobalZpools hasp-resource
    hasp-resource

    Specifies the HAStoragePlus resource to which you are adding the zpool for globally mounted ZFS file systems.

  3. Add the new zpool for globally mounted ZFS file systems to the existing list of ZFS storage pools that the HAStoragePlus resource already manages.
    # clresource set -p GlobalZpools+=mypool hasp-resource
    -p GlobalZpools+=mypool

    Specifies the new zpool for globally mounted ZFS file systems name that you want to add.

    hasp-resource

    Specifies the HAStoragePlus resource to which you are adding the ZFS storage pool.

  4. Compare the new list of ZFS storage pools that the HAStoragePlus resource manages with the list that you generated in Step 2.
    # clresource show -p GlobalZpools hasp-resource
    hasp-resource

    Specifies the HAStoragePlus resource to which you added the ZFS storage pool.

  5. Confirm that the HAStoragePlus resource is online and not faulted.

    If the HAStoragePlus resource is online but faulted, validation of the resource succeeded. However, an attempt by the HAStoragePlus resource to import and mount the ZFS file system failed. In this case, look at the error messages on the system console or in the /var/adm/messages directory. After fixing the errors, repeat the preceding set of steps.

    # clresource status -t SUNW.HAStoragePlus +