Specifications

Hierarchy Definition
Note: Although you can create much of the definition using the LifeKeeper GUI, the rest of this
example demonstrates the command interface.
3. Create directories. On each system, you create the necessary application recovery
directories under the directory /opt/LifeKeeper/subsys with the command:
mkdir -p
/opt/LifeKeeper/subsys/projectapp/Resources/plan/actions
4. Define application. The following commands create the application named projectapp:
app_create -d Server1 -a projectapp
app_create -d Server2 -a projectapp
5. Define the resource type. The following commands create the resource type named plan:
typ_create -d Server1 -a projectapp -r plan
typ_create -d Server2 -a projectapp -r plan
6. Install recovery scripts. Copy your restore and remove scripts to the following directory on
each server:
/opt/LifeKeeper/subsys/projectapp/Resources/plan/actions
7. Define instance. The following commands define an instance of resource type plan with the id
1yrplan:
ins_create -d Server1 -a projectapp -r plan -I\
AUTORES_ISP -t the-project-plan -i 1yrplan
ins_create -d Server2 -a projectapp -r plan -I\
SEC_ISP -t the-project-plan -i 1yrplan
The -I AUTORES_ISP instruction for the instance created on Server1 tells LifeKeeper
to automatically bring the resource in service when LifeKeeper is restarted. In this
case, the resource’s restore script is run and, if successful, the resource is placed in
the ISP state. This operation is not performed if the paired resource is already in
service.
The -I SEC_ISP instruction for the instance created on Server2 tells LifeKeeper that
this resource instance should not be brought into service when LifeKeeper is restarted.
Instead, Server2 will serve as the backup for the resource on Server1, and the local
resource will be brought in service upon failure of the primary resource or server.
8. Define dependencies. The following commands define the dependencies between the
application and the file systems:
dep_create -d Server1 -p the-project-plan -c project-data-on-
System1
dep_create -d Server2 -p the-project-plan -c project-data-
from-Server1
194User Guide