cat /etc/ha.d/authkeys
auth nu 对应 1 2 3
auth 3
#1 crc
#2 sha1 HI!
3 md5 Hello!
Two lines are required in the authkeys file:
A line which says which key to use in signing outgoing packets
One or more lines defining how
incoming packets might be being
signed.
The file must follow the following format:
auth
num
num
method
secret
num
method
secret
num
method
secret
...
num
is a numerical identifier,
between 1 and 15 inclusive. It must be unique within the
file.
method
is one of the available
authentication signature methods (see below for supported
methods).
secret
is an alphanumerical
shared secret used to identify cluster nodes to each other.
auth
num
selects
the currently active authentication method and secret.
/etc/ha.d/hs.cf
-
node
The node directive tells what machines are in the
cluster. The syntax of the node directive is simple:
node nodename1 nodename2 ...
Node names in the directive must match the "uname -n"
of that machine.
You can declare multiple node names in one
directive. You can also use the directive multiple
times. Normally every node in the cluster must be listed in
the ha.cf file, including the current node, unless the
autojoin directive is enabled.
The node directive is not completely authoritative
with regard to nodes heartbeat will communicate with. If a
node has ever been added in the past, it will tend to remain
in the hostcache file more until it's manually
removed.
阅读(691) | 评论(0) | 转发(1) |