| 1 |
# |
| 2 |
# This is a list of resources that move from machine to machine as |
| 3 |
# nodes go down and come up in the cluster. Do not include |
| 4 |
# "administrative" or fixed IP addresses in this file. |
| 5 |
# |
| 6 |
# <VERY IMPORTANT NOTE> |
| 7 |
# The haresources files MUST BE IDENTICAL on all nodes of the cluster. |
| 8 |
# |
| 9 |
# The node names listed in front of the resource group information |
| 10 |
# is the name of the preferred node to run the service. It is |
| 11 |
# not necessarily the name of the current machine. If you are running |
| 12 |
# auto_failback ON (or legacy), then these services will be started |
| 13 |
# up on the preferred nodes - any time they're up. |
| 14 |
# |
| 15 |
# If you are running with auto_failback OFF, then the node information |
| 16 |
# will be used in the case of a simultaneous start-up, or when using |
| 17 |
# the hb_standby {foreign,local} command. |
| 18 |
# |
| 19 |
# BUT FOR ALL OF THESE CASES, the haresources files MUST BE IDENTICAL. |
| 20 |
# If your files are different then almost certainly something |
| 21 |
# won't work right. |
| 22 |
# </VERY IMPORTANT NOTE> |
| 23 |
# |
| 24 |
# |
| 25 |
# We refer to this file when we're coming up, and when a machine is being |
| 26 |
# taken over after going down. |
| 27 |
# |
| 28 |
# You need to make this right for your installation, then install it in |
| 29 |
# /etc/ha.d |
| 30 |
# |
| 31 |
# Each logical line in the file constitutes a "resource group". |
| 32 |
# A resource group is a list of resources which move together from |
| 33 |
# one node to another - in the order listed. It is assumed that there |
| 34 |
# is no relationship between different resource groups. These |
| 35 |
# resource in a resource group are started left-to-right, and stopped |
| 36 |
# right-to-left. Long lists of resources can be continued from line |
| 37 |
# to line by ending the lines with backslashes ("\"). |
| 38 |
# |
| 39 |
# These resources in this file are either IP addresses, or the name |
| 40 |
# of scripts to run to "start" or "stop" the given resource. |
| 41 |
# |
| 42 |
# The format is like this: |
| 43 |
# |
| 44 |
#node-name resource1 resource2 ... resourceN |
| 45 |
# |
| 46 |
# |
| 47 |
# If the resource name contains an :: in the middle of it, the |
| 48 |
# part after the :: is passed to the resource script as an argument. |
| 49 |
# Multiple arguments are separated by the :: delimeter |
| 50 |
# |
| 51 |
# In the case of IP addresses, the resource script name IPaddr is |
| 52 |
# implied. |
| 53 |
# |
| 54 |
# For example, the IP address 135.9.8.7 could also be represented |
| 55 |
# as IPaddr::135.9.8.7 |
| 56 |
# |
| 57 |
# THIS IS IMPORTANT!! vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv |
| 58 |
# |
| 59 |
# The given IP address is directed to an interface which has a route |
| 60 |
# to the given address. This means you have to have a net route |
| 61 |
# set up outside of the High-Availability structure. We don't set it |
| 62 |
# up here -- we key off of it. |
| 63 |
# |
| 64 |
# The broadcast address for the IP alias that is created to support |
| 65 |
# an IP address defaults to the highest address on the subnet. |
| 66 |
# |
| 67 |
# The netmask for the IP alias that is created defaults to the same |
| 68 |
# netmask as the route that it selected in in the step above. |
| 69 |
# |
| 70 |
# The base interface for the IPalias that is created defaults to the |
| 71 |
# same netmask as the route that it selected in in the step above. |
| 72 |
# |
| 73 |
# If you want to specify that this IP address is to be brought up |
| 74 |
# on a subnet with a netmask of 255.255.255.0, you would specify |
| 75 |
# this as IPaddr::135.9.8.7/24 . |
| 76 |
# |
| 77 |
# If you wished to tell it that the broadcast address for this subnet |
| 78 |
# was 135.9.8.210, then you would specify that this way: |
| 79 |
# IPaddr::135.9.8.7/24/135.9.8.210 |
| 80 |
# |
| 81 |
# If you wished to tell it that the interface to add the address to |
| 82 |
# is eth0, then you would need to specify it this way: |
| 83 |
# IPaddr::135.9.8.7/24/eth0 |
| 84 |
# |
| 85 |
# And this way to specify both the broadcast address and the |
| 86 |
# interface: |
| 87 |
# IPaddr::135.9.8.7/24/eth0/135.9.8.210 |
| 88 |
# |
| 89 |
# The IP addresses you list in this file are called "service" addresses, |
| 90 |
# since they're they're the publicly advertised addresses that clients |
| 91 |
# use to get at highly available services. |
| 92 |
# |
| 93 |
# For a hot/standby (non load-sharing) 2-node system with only |
| 94 |
# a single service address, |
| 95 |
# you will probably only put one system name and one IP address in here. |
| 96 |
# The name you give the address to is the name of the default "hot" |
| 97 |
# system. |
| 98 |
# |
| 99 |
# Where the nodename is the name of the node which "normally" owns the |
| 100 |
# resource. If this machine is up, it will always have the resource |
| 101 |
# it is shown as owning. |
| 102 |
# |
| 103 |
# The string you put in for nodename must match the uname -n name |
| 104 |
# of your machine. Depending on how you have it administered, it could |
| 105 |
# be a short name or a FQDN. |
| 106 |
# |
| 107 |
#------------------------------------------------------------------- |
| 108 |
# |
| 109 |
# Simple case: One service address, default subnet and netmask |
| 110 |
# No servers that go up and down with the IP address |
| 111 |
# |
| 112 |
#just.linux-ha.org 135.9.216.110 |
| 113 |
# |
| 114 |
#------------------------------------------------------------------- |
| 115 |
# |
| 116 |
# Assuming the adminstrative addresses are on the same subnet... |
| 117 |
# A little more complex case: One service address, default subnet |
| 118 |
# and netmask, and you want to start and stop http when you get |
| 119 |
# the IP address... |
| 120 |
# |
| 121 |
#just.linux-ha.org 135.9.216.110 http |
| 122 |
#------------------------------------------------------------------- |
| 123 |
# |
| 124 |
# A little more complex case: Three service addresses, default subnet |
| 125 |
# and netmask, and you want to start and stop http when you get |
| 126 |
# the IP address... |
| 127 |
# |
| 128 |
#just.linux-ha.org 135.9.216.110 135.9.215.111 135.9.216.112 httpd |
| 129 |
#------------------------------------------------------------------- |
| 130 |
# |
| 131 |
# One service address, with the subnet, interface and bcast addr |
| 132 |
# explicitly defined. |
| 133 |
# |
| 134 |
#just.linux-ha.org 135.9.216.3/28/eth0/135.9.216.12 httpd |
| 135 |
# |
| 136 |
#------------------------------------------------------------------- |
| 137 |
# |
| 138 |
# An example where a shared filesystem is to be used. |
| 139 |
# Note that multiple aguments are passed to this script using |
| 140 |
# the delimiter '::' to separate each argument. |
| 141 |
# |
| 142 |
#node1 10.0.0.170 Filesystem::/dev/sda1::/data1::ext2 |
| 143 |
# |
| 144 |
# Regarding the node-names in this file: |
| 145 |
# |
| 146 |
# They must match the names of the nodes listed in ha.cf, which in turn |
| 147 |
# must match the `uname -n` of some node in the cluster. So they aren't |
| 148 |
# virtual in any sense of the word. |
| 149 |
# |