Chinaunix首页 | 论坛 | 博客
  • 博客访问: 659431
  • 博文数量: 198
  • 博客积分: 4256
  • 博客等级: 上校
  • 技术积分: 1725
  • 用 户 组: 普通用户
  • 注册时间: 2009-12-15 13:12
文章分类

全部博文(198)

文章存档

2012年(12)

2011年(39)

2010年(135)

2009年(12)

我的朋友

分类: LINUX

2010-05-31 23:54:56

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:
  1. A line which says which key to use in signing outgoing packets
  2. 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.



阅读(685) | 评论(0) | 转发(1) |
给主人留下些什么吧!~~