Use this option to protect a user-defined application that has no associated recovery kit. Templates are provided for the user supplied scripts referenced below in /opt/LifeKeeper/lkadm/subsys/gen/app/templates/. Copy these templates to another directory before customizing them for the application that you wish to protect and testing them. To provide information for the Generic Application Resource Hierarchy with the lksupport data, copy the template in /opt/LifeKeeper/bin/lksupport.d to a unique name and customize it to capture all relevant files. The lksupport utility will run all executable files in lksupport.d.

  1. There are four ways to begin creating a generic application resource hierarchy.

• Right-click on a server icon to bring up the server context menu, then click on Create Resource Hierarchy.

• On the global toolbar, click on the Create Resource Hierarchy button.

• On the server context toolbar, if displayed, click on the Create Resource Hierarchy button.

• On the Edit menu, select Server, then click on Create Resource Hierarchy.

  1. A dialog entitled Create Resource Wizard will appear with a Recovery Kit list. Select Generic Application and click Next.
  1. Select the Switchback Type and click Next
  1. Select the Server and click Next

Note: If you began from the server context menu, the server will be determined automatically from the server icon that you clicked on, and this step will be skipped.

  1. On the next dialog, enter the path to the Restore Script for the application and click Next. This is the command that starts the application. A template restore script, restore.template, is provided in the templates directory. The restore script must not impact applications that are already started.
  1. Enter the path to the Remove Script for the application and click Next. This is the command that stops the application. A template remove script, remove.template, is provided in the templates directory.
  1. Enter the path to the quickCheck Script for the application and click Next. This is the command that monitors the application. A template quickCheck script, quickCheck.template, is provided in the templates directory.
  1. Enter the path to the Local Recovery Script for the application and click Next. This is the command that attempts to restore a failed application on the local server. A template recover script, recover.template, is provided in the templates directory.
  1. Enter any Application Information and click Next. This is optional information about the application that may be needed by the restore, remove, recover, and quickCheck scripts.
  1. Select either Yes or No for Bring Resource In Service, and click Next. Selecting No will cause the resource state to be set to OSU following the create; selecting Yes will cause the previously provided restore script to be executed. For applications depending upon other resources such as a file system, disk partition, or IP address, select No if you have not already created the appropriate dependent resources.
  1. Enter the Root Tag, which is a unique name for the resource instance. (This is the label you will see for this resource in the status display.)
  1. Click Create Instance to start the creation process. A window will display a message indicating the status of the instance creation.
  1. Click Next. A window will display a message that the hierarchy has been created successfully.
  1. At this point, you can click Continue to move on to extending the generic application resource hierarchy, or you can click Cancel to return to the GUI. If you click Cancel, you will receive a warning that your hierarchy exists on only one server, and it is not protected at this point.

Note: The scripts which are provided when resource hierarchy is created, such as restore、remove、quickCheck, are located in each directory under LKROOT/subsys/gen/resource/app/.

• restore – actions/!restore/<tag name>

• remove – actions/!remove/<tag name>

• quickCheck – actions/!quickCheck/<tag name>

• recover – recovery/!recover/<tag name>

Feedback

Was this helpful?

Yes No
You indicated this topic was not helpful to you ...
Could you please leave a comment telling us why? Thank you!
Thanks for your feedback.

Post your comment on this topic.

Post Comment