mysq
公司主营业务:网站设计、
网站制作、移动网站开发等业务。帮助企业客户真正实现互联网宣传,提高企业的竞争能力。创新互联是一支青春激扬、勤奋敬业、活力青春激扬、勤奋敬业、活力澎湃、和谐高效的团队。公司秉承以“开放、自由、严谨、自律”为核心的企业文化,感谢他们对我们的高要求,感谢他们从不同领域给我们带来的挑战,让我们激情的团队有机会用头脑与智慧不断的给客户带来惊喜。
创新互联推出
桂平免费做网站回馈大家。l==cluster
<?xml version="1.0"?>
<cluster config_version="43" name="web-cluster1">
<clusternodes>
<clusternode name="web01-clu" nodeid="1">
<fence>
<method name="Method">
<device name="web01-fence"/>
</method>
</fence>
</clusternode>
<clusternode name="web02-clu" nodeid="2">
<fence>
<method name="Method">
<device name="web02-fence"/>
</method>
</fence>
</clusternode>
</clusternodes>
<cman expected_votes="1" transport="udpu" two_node="1"/>
<rm>
<failoverdomains>
<failoverdomain name="faildomain1" nofailback="1" ordered="1">
<failoverdomainnode name="web01-clu"/>
<failoverdomainnode name="web02-clu"/>
</failoverdomain>
</failoverdomains>
<resources>
<ip address="172.68.63.23/24" monitor_link="0" sleeptime="10"/>
<ip address="172.68.63.24/24" monitor_link="0" sleeptime="10"/>
<lvm lv_name="LogVol01" name="ha-lvm-mysql" vg_name="vg01"/>
<lvm lv_name="LogVol01" name="ha-lvm-webapps" vg_name="vg02"/>
<ip address="172.68.63.25/24" sleeptime="10"/>
<lvm lv_name="LogVol01" name="ha-lvm-ftp" vg_name="vg03"/>
<fs device="/dev/mapper/vg03-LogVol01" force_unmount="1" fsid="55876" fstype="ext4" mountpoint="/ftp" name="fs-ftp"/>
<fs device="/dev/mapper/vg01-LogVol01" force_unmount="1" fsid="17708" fstype="ext4" mountpoint="/mysql" name="fs-mysql"/>
<fs device="/dev/mapper/vg02-LogVol01" force_unmount="1" fsid="25073" fstype="ext4" mountpoint="/webapps" name="fs-webapps"/>
<script file="/etc/rhcs_mysql.sh" name="mysql_scripts1"/>
</resources>
<service domain="faildomain1" name="sg-webapps" recovery="relocate">
<lvm ref="ha-lvm-webapps">
<fs ref="fs-webapps">
<ip ref="172.68.63.23/24"/>
</fs>
</lvm>
</service>
<service domain="faildomain1" name="sg-ftp" recovery="relocate">
<lvm ref="ha-lvm-ftp">
<fs ref="fs-ftp">
<ip ref="172.68.63.24/24"/>
</fs>
</lvm>
</service>
<service domain="faildomain1" name="sg-mysql" recovery="relocate">
<lvm ref="ha-lvm-mysql">
<fs ref="fs-mysql">
<ip ref="172.68.63.25/24">
<script ref="mysql_scripts1"/>
</ip>
</fs>
</lvm>
</service>
</rm>
<fencedevices>
<fencedevice agent="fence_idrac" ipaddr="172.68.64.195" login="root" name="web01-fence" passwd="calvin"/>
<fencedevice agent="fence_idrac" ipaddr="172.68.64.196" login="root" name="web02-fence" passwd="calvin"/>
</fencedevices>
<fence_daemon post_fail_delay="3"/>
</cluster>
=====
rhcs_mysql.sh
#!/bin/bash
MYSQL_HOME=/mysql/mysql-advanced-5.6.26
function start() {
su - mysql -c "
$MYSQL_HOME/bin/mysqld_safe &
"
}
function stop() {
su - mysql -c "
$MYSQL_HOME/bin/mysqladmin -uroot -p'Mysql_admin_25' shutdown
"
}
function status() {
chk_mysqld=`ps -ef| grep mysqld |grep -v grep | wc -l`
if [ $chk_mysqld -lt 2 ];then
echo "The MySQL database is not runing"
exit 1
else
echo "The MySQL database is runing"
return 0
fi
}
case "$1" in
"start")
echo "Startting MySQL Database ..."
start
;;
"stop")
echo "Stopping MySQL Database ..."
stop
;;
"status")
status
;;
*)
echo "Usage : `basename $0` {start | stop | status}"
exit 0
;;
esac
当前标题:mysql_rhcs配置-创新互联
分享URL:https://www.cdcxhl.com/article8/diicop.html
成都网站建设公司_创新互联,为您提供虚拟主机、用户体验、网站制作、搜索引擎优化、App设计、企业网站制作
广告
声明:本网站发布的内容(图片、视频和文字)以用户投稿、用户转载内容为主,如果涉及侵权请尽快告知,我们将会在第一时间删除。文章观点不代表本网站立场,如需处理请联系客服。电话:028-86922220;邮箱:631063699@qq.com。内容未经允许不得转载,或转载时需注明来源:
创新互联