You are here: User Guide > Using LifeKeeper Linux > Advanced Tasks > Resources Subdirectories

Resources Subdirectories

The scsi and gen directories each contain a resources subdirectory. The content of those directories provides a list of the resource types provided by LifeKeeper:

scsi resource types. You find these resource types in the /opt/LifeKeeper/subsys/scsi/resources directory. Note that there may be additional directories depending upon your configuration.

gen resource types. You find these resource types in the /opt/LifeKeeper/subsys/gen/resources directory:

Each resource type directory contains one or more of the following:

WARNING: Do not modify the instances file (or any LCD file) directly. To create or manipulate resource instances, use only the LifeKeeper GUI functions or the LifeKeeper LCDI_instances commands: ins_create, ins_remove, ins_gettag, ins_setas, ins_setinfo, ins_setinit, ins_setstate and ins_list. Refer to the LCDI_instances (1M) manual pages for explanations of these commands.

In each subdirectory, the application can place recovery programs that service event types of the corresponding event class. The name of these programs must match the string passed to sendevent with the -E parameter. This optional directory may not exist for many applications.

img00011_shg.jpg

Recovery direction software is used to modify or recover a resource instance. Two actions, remove and restore, must exist in the actions directory for each resource type.

Resource Actions

The actions directory for a resource type contains the programs (most often shell scripts) that describe specific application functions. Two actions are required for every resource type—restore and remove.

The remove and restore programs should perform symmetrically opposite functions; that is, they undo the effect of one another. These scripts should never be run manually. They should only be run by executing the LifeKeeper Recovery Action and Control Interface (LRACI) perform_action shell program described in the LRACI-perform_action (1M) manual page.

For additional discussion, see Recovery Scripts

© 2012 SIOS Technology Corp., the industry's leading provider of business continuity solutions, data replication for continuous data protection.