´ë**¾÷Çùȸ
[root@db1 ~]# cat /etc/cluster/cluster.conf
<?xml version="1.0"?>
<cluster config_version="24" name="slp_db_cs">
<clusternodes>
<clusternode name="slp_db1.node" nodeid="1">
<fence>
<method name="Method1">
<device name="Fence_kdump"/>
</method>
<method name="Method2">
<device name="Fence_db1"/>
</method>
</fence>
</clusternode>
<clusternode name="slp_db2.node" nodeid="2">
<fence>
<method name="Method1">
<device name="Fence_kdump"/>
</method>
<method name="Method2">
<device name="Fence_db2"/>
</method>
</fence>
</clusternode>
</clusternodes>
<cman expected_votes="1" two_node="1"/>
<fencedevices>
<fencedevice agent="fence_ipmilan" auth="password" delay="15" ipaddr="slp_db1.fd" lanplus="on" login="rockplace" name="Fence_db1" passwd="rplinux)(*&"/>
<fencedevice agent="fence_ipmilan" auth="password" ipaddr="slp_db2.fd" lanplus="on" login="rockplace" name="Fence_db2" passwd="rplinux)(*&"/>
<fencedevice agent="fence_kdump" name="Fence_kdump" timeout="60"/>
</fencedevices>
<rm>
<failoverdomains>
<failoverdomain name="FD-slp_db" nofailback="1">
<failoverdomainnode name="slp_db1.node"/>
<failoverdomainnode name="slp_db2.node"/>
</failoverdomain>
</failoverdomains>
<resources>
<ip address="1.2.1.1" sleeptime="10"/>
<fs device="/dev/vg00/lv_db_data" force_unmount="1" fstype="ext4" mountpoint="/edu/Data/data/" name="mariadb_fs" self_fence="1"/>
<lvm name="halvm" self_fence="1" vg_name="vg00"/>
<script file="/etc/cluster/mariadb.sh" name="maria"/>
</resources>
<service autostart="0" domain="FD-slp_db" name="slp_db_svc" recovery="relocate">
<ip ref="1.2.1.1"/>
<lvm ref="halvm"/>
<fs ref="mariadb_fs"/>
<script ref="maria"/>
</service>
</rm>
<logging>
<logging_daemon name="rgmanager" syslog_priority="notice"/>
</logging>
</cluster>
|