Configuring Cluster Resources From Command Line

Contents

5.1. Command Line Tools
5.2. Debugging Your Configuration Changes
5.3. Creating Cluster Resources
5.4. Creating a STONITH Resource
5.5. Configuring Resource Constraints
5.6. Specifying Resource Failover Nodes
5.7. Specifying Resource Failback Nodes (Resource Stickiness)
5.8. Configuring Resource Monitoring
5.9. Starting a New Cluster Resource
5.10. Removing a Cluster Resource
5.11. Configuring a Cluster Resource Group
5.12. Configuring a Clone Resource
5.13. Migrating a Cluster Resource
5.14. Testing with Shadow Configuration
5.15. For More Information

Abstract

Like in Chapter 4, a cluster resource must be created for every resource or application you run on the servers in your cluster. Cluster resources can include Web sites, e-mail servers, databases, file systems, virtual machines, and any other server-based applications or services you want to make available to users at all times.

You can either use the graphical HA Management Client utility, or the crm command line utility to create resources. This chapter introduces the several crm utilities.

Command Line Tools

After the installation there are several tools to administer a cluster. Usually you need the crm command only. This command has several subcommands. Run crm help to get an overview of all available commands. It has a thorough help system with embedded examples.

The crm tool has management abilities (the subcommands resources and node), and are used for configuration (cib, configure). Management subcommands take effect immediately, but configuration needs a final commit.