下载  >  操作系统  >  Linux  > Corosync 集群组件总结

Corosync 集群组件总结 评分:

LINUX Corosync 集群组件安装调试总结
验证工具安装: yum-y install autoconf flex cmake byacc libpcap libpcap-devel 下线 ngrep145ar重新安装ngrp onfigure --with-pcap-inchudesusr/local'include/pcap make & make ins tall grep比 tcpdump更方便查看的抓爪包鼎示工具-星空鳖-博客园 http://www.cnblogscom/starlion/p/3850399.html netstat-na grep 5405 本机地址和 mcastaddr的5405端口会是在用的 Connection to the CIB terminated 厂oot@ ast node3~] 5405 d 0 61.56:52.2 0.0.0.0: 0.0,0Q:R netstat-gn ifconfig命令l是本地回路,正确西置是使用的是本机网卡 interface notaast nnde 3 -l+ ifconfig lo opac iriet sadr:127.0.0.1Mdsk:255.0.0.0 UH LOOPHACK RUNN⊥NGMU:65536阿err1c:L Rx packets: 76498 errors: o dropped: 0 overruns: o frame:0 Tx packets: 76498 er o dropped: o overruns:0 carrier: 0 collisions: 0 txqueuelen: O Rx bytes: 10327963(9.8 MiB) Tx byte 7963(9.8MiB [ rootdast_node3~]#■ PV6/IPV4 Group Member ships Inter face Refcnt Group tt02::202 fff: b87 etho lethi 02::1 三、检查验证 1. crm mon 2.查看当前集群状态: pcs cluster 3.检查配置是否正确(假若没有输出任何则配置正确): crm verify -L-V 禁用 STONITH pcs property set stonith-enabled=false 无法仲裁时候,选择忽略: pcs property set no-quorum-policy-=ignore 四、安装 asterisk 安装 res corosync模块 configure--libdir-/usr/b64 & make menuselect & make & make install 启动 corosync service corosync start find /-name 'res corosync.so 配置 res corosync,订阅其他节点上的设备状态,推送本机的设备状态 v /etcasterisk/res coryne conl subscribe event device state 连接到 asterisk控制台 sterisk -r 加 res corosync模块 module load res corosync module load chan sip nodule show like res corosync 一切OK,可以验证 corosync show members *CLI> corosvnc show members Cluster members Node 1 Group: asterisk ===-- Address 1: <host 1 ip goes he - Group: asterisk - Address 1: <host #2 ip goes here>

...展开详情
2016-11-30 上传 大小:142KB
举报 收藏
分享