Go to main content

Planning and Administering Data Services for Oracle® Solaris Cluster 4.4

Exit Print View

Updated: November 2019
 
 

How to Change a ZFS Pool Configuration That is Managed by an Offline HAStoragePlus Resource

  1. Ensure that the ZFS pool that requires configuration changes is not imported on any node.
    # zpool list zfs-pool-name

    Run this command on all cluster nodes that have a physical connection to the ZFS pool.

  2. Import the pool on the alternate root without using the force option on a cluster node that has a physical connection to the ZFS pool.
    # zpool import -R zfs-pool-name

    If the import succeeds, proceed to Step 3. If the import fails, the cluster node that previously accessed the pool might have shut down without exporting the pool. Follow the substeps below to ensure that the cluster node is not using the ZFS pool and then import the pool forcefully:

    1. Check if the import failed due to an error message similar to the one below. If it did, proceed to Step 2.b and Step 2.c:
      Cannot import 'zfs-pool-name': pool may be in use from other system, it was last 
      accessed by hostname (hostid: hostid) on accessed-date.
    2. Verify that the pool is not in use on the machine that last accessed it.
      hostname# zpool list zfs-pool-name
    3. If the ZFS pool is not in use on that node, import the pool forcefully.
      # zpool import -f zfs-pool-name
  3. Perform the ZFS pool configuration changes.
  4. Export the ZFS pool and check that the pool is not in use.
    # zpool export zfs-pool-name
    # zpool list zfs-pool-name