Sun Cluster Data Services Planning and Administration Guide for Solaris OS

Downgrading a Resource Type

You can downgrade a resource to an older version of its resource type. The conditions for downgrading a resource to an older version of the resource type are more restrictive than the conditions for upgrading to a newer version of the resource type. The resource group that contains the resource must be unmanaged.

ProcedureHow to Downgrade a Resource to an Older Version of Its Resource Type

The instructions that follow explain how to use the scrgadm(1M) command to perform this task. However, you are not restricted to using the scrgadm command for this task. Instead of the scrgadm command, you can use SunPlex Manager or the Resource Group option of the scsetup(1M) command to perform this task.

Steps
  1. Become superuser or assume an equivalent role.

  2. Switch offline the resource group that contains the resource that you are downgrading.


    scswitch -F -g resource-group
    
  3. Disable all resources in the resource group that contains the resource that you are downgrading.


    scswitch -n -j resource-list
    

    Note –

    You can specify the resources in resource-list in any order. The scswitch command disables the resources in the order that is required to satisfy dependencies between the resources, regardless of their order in resource-list.

    If other resources depend on any resource in resource-list, this step fails. In this situation, consult the error message that is printed to determine the names of the dependent resources. Then repeat this step, specifying a comma-separated list that contains the resources that you originally specified and any dependent resources.


  4. Unmanage the resource group that contains the resource that you are downgrading.


    scswitch -u -g resource-group
    
  5. If necessary, reregister the old version of the resource type to which you are downgrading.

    Perform this step only if the version to which you are downgrading is no longer registered. If the version to which you are downgrading is still registered, omit this step.


    scrgadm -a -t resource-type-name
    
  6. For the resource that you are downgrading, set the Type_version property to old version to which you are downgrading.

    If necessary, edit other properties of the same resource to appropriate values in the same command.


    scrgadm -c -j resource-todowngrade -y Type_version=old-version
    
  7. Enable all the resources that you disabled in Step 3.


    # scswitch -e -j resource-list
    
  8. Bring to a managed state the resource group that contains the resource that you downgraded.


    # scswitch -o -g resource-group
    
  9. Bring online the resource group that contains the resource that you downgraded.


    # scswitch -z -g resource-group