Sun Cluster 3.0 12/01 Data Services Installation and Configuration Guide

How to Set Up SUNW.HAStorage Resource Type for Existing Resources

To create a SUNW.HAStorage resource for existing resources, read "Synchronizing the Startups Between Resource Groups and Disk Device Groups", and then perform the following steps.

  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 SUNW.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