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 $LKROOT/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.
- 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.
- A dialog entitled Create Resource Wizard will appear with a Recovery Kit list. Select Generic Application and click Next.
- Select the Switchback Type and click Next
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.)
- Click Create Instance to start the creation process. A window will display a message indicating the status of the instance creation.
- Click Next. A window will display a message that the hierarchy has been created successfully.
- 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>
Post your comment on this topic.