- 论坛徽章:
- 0
|
我这是redhat的,给你当参考吧,应该不会有太大区别吧。
RHCS完全配置手册.pdf
(925.28 KB, 下载次数: 144)
这文档软件配置基本就齐了吧。。
就是没有conf的示例。网上搜搜吧。
没有fence的时候fence设备就用心跳那块网卡。
我研究了好几天。贴个我的config
<?xml version="1.0"?>
<cluster config_version="2" name="rh-ha">
<fence_daemon post_fail_delay="0" post_join_delay="3"/>
<clusternodes>
<clusternode name="node1" nodeid="1" votes="1">
<fence>
<method name="1">
<device lanplus="1" name="imm1"/>
</method>
</fence>
</clusternode>
<clusternode name="node2" nodeid="2" votes="1">
<fence>
<method name="1">
<device lanplus="1" name="imm2"/>
</method>
</fence>
</clusternode>
</clusternodes>
<cman expected_votes="1" two_node="1"/>
<fencedevices>
<fencedevice agent="fence_ipmilan" auth="password" ipaddr="192.168.21.103" login="USERID" name="imm1" passwd="PASSW0RD"/>
<fencedevice agent="fence_ipmilan" auth="password" ipaddr="192.168.21.104" login="USERID" name="imm2" passwd="PASSW0RD"/>
</fencedevices>
<rm>
<failoverdomains>
<failoverdomain name="hd-domain" ordered="0" restricted="1">
<failoverdomainnode name="node1" priority="2"/>
<failoverdomainnode name="node2" priority="1"/>
</failoverdomain>
</failoverdomains>
<resources>
<ip address="192.168.20.100" monitor_link="1"/>
<fs device="/dev/sdb1" force_fsck="0" force_unmount="1" fsid="62307" fstype="ext3" mountpoint="/opt/data" name="data" options="" self_fence="0"/>
<script file="/opt/data/mk.sh" name="mk"/>
</resources>
<service autostart="1" domain="hd-domain" name="ha">
<ip ref="192.168.20.100"/>
<fs ref="data">
<script ref="mk"/>
</fs>
</service>
</rm>
</cluster> |
|