Sun Cluster Data Services Planning and Administration Guide for Solaris OS

ProcedureHow to Set Up HAStorage Resource Type for Existing Resources

HAStorage might not be supported in a future release of Sun Cluster software. Equivalent functionality is supported by HAStoragePlus. For instructions for upgrading from HAStorage to HAStoragePlus, see Upgrading From HAStorage to HAStoragePlus.

Before You Begin

Read Synchronizing the Startups Between Resource Groups and Disk Device Groups.

  1. Determine whether the resource type is registered.

    The following command prints a list of registered resource types.

    # scrgadm -p | egrep Type
  2. If you need to, register the resource type.

    # scrgadm -a -t SUNW.HAStorage
  3. Create the HAStorage resource hastorage-1.

    # scrgadm -a -g resource-group -j hastorage-1 -t SUNW.HAStorage \
    -x ServicePaths= … -x AffinityOn=True
  4. Enable the hastorage-1 resource.

    # scswitch -e -j hastorage-1
  5. Set up the dependency for each of the existing resources, as required.

    # scrgadm -c -j resource -y Resource_Dependencies=hastorage-1
  6. Verify that you have correctly configured the resource dependencies.

    # scrgadm -pvv -j resource | egrep strong