-
Check
the rg_mode of the resource group
that contains the HAStoragePlus
resource for the zpool that you are changing from
global to failover.
Oracle
Solaris Cluster does not allow adding a failover
zpool to an HAStoragePlus
resource in a scalable resource group.
# clrg show rg_mode resource-group
-
If the rg_mode is
Failover, continue to Step 2.
-
If the rg_mode is
Scalable, perform the following step.
-
Find an existing failover resource group or
create a failover resource group to host the zpool
once you have made the zpool a failover
pool.
# clrg create resource-group
-
Disable
resources that depend on the
zpool.
This
procedure exports the zpool.
# clrs disable resource-list
-
Remove
the failover ZFS pool from the
HAStoragePlus
resource.
This operation exports the zpool.
# clresource set -p GlobalZpools-=zpool resource
-
If
the rg_mode was Scalable in step
1, go to the resource group that you created or
identified in step 1a and add the zpool to an
HAStoragePlus resource in that resource group. Or
create a new HAStoragePlus resource in that resource
group, then set dependencies from the resources that
depend on this zpool to this HAStoragePlus resource.
These steps show creation of new HAStoragePlus
resource and how to set the
resource_dependencies_offline_restart
dependency. Do the steps required for your
configuration.
# clrs create -t HAStoragePlus -p zpools=zpool -g resource-group resource
# clrg online -eM resource-group
# clrs set -p Resource_dependencies_offline_restart+=resource resource-list
-
If you did not create a new
HAStoragePlus resource in Step
1a, modify the HAStoragePlus
resource that you modified in Step 3.
# clresource set -p Zpools+=zpool resource
-
Enable resources that you disabled in Step 1 of this
procedure.
# clrs enable resource-list