Sun Cluster 3.1 10/03 Data Services Developer's Guide

Resource Type_version Property

The standard resource property Type_version stores the RT_Version property of a resource's type. This property does not appear in the RTR file. The system administrator edits this property value by using the following command:


scrgadm -c -j resource -y Type_version=new_version

This property's tunability is derived from:

Use the following tunability values in the #$upgrade_from directives:

Anytime

If there are no restrictions on when the resource can be upgraded. The resource can be fully online.

When_unmonitored

If the new resource type version's Update, Stop, Monitor_check, and Postnet_stop methods are known to be compatible with older resource type version's starting methods (Prenet_stop and Start), and if the new resource type version's Fini method is known to be compatible with the Init method of older versions. This scenario requires only that the resource monitor program be stopped before the upgrade

When_offline

If the new resource type version's Update, Stop, Monitor_check, or Postnet_stop methods are known not to be compatible with older resource type version's starting methods (Prenet_stop and Start) but are known to be compatible with the Init method of older versions, the resource must be offline when the type upgrade is applied to it.

When_disabled

Similar to When_offline. However, this tunability value imposes the stronger condition that the resource be disabled.

When_unmanaged

If the new resource type version's Fini method is not compatible with the Init method of older versions. This tunability value requires the existing resource group to be switched to the unmanaged state before you can upgrade the resource.

At_creation

If resources cannot be upgraded to the new resource type version. Only new resources of the new version can be created.

The tunability of At_creation means that the resource type developer can prohibit the migration of an existing resource to the new type. In this case, the system administrator must delete and recreate the resource. This is equivalent to declaring that the resource's version can only be set at creation time.