当前位置: 技术问答>linux和unix
drbd问题请教各位高手指点,这是什么问题怎么解决?
来源: 互联网 发布时间:2017-02-03
本文导语: root@file2 d]# service drbd start Starting DRBD resources: [ create res: r0 prepare disk: r0 adjust disk: r0:failed(attach:10) adjust net: r0 ] unable to join drbd events multicast group . [root@file2 d]# tail /var/log/messages...
root@file2 d]# service drbd start
Starting DRBD resources: [
create res: r0
prepare disk: r0
adjust disk: r0:failed(attach:10)
adjust net: r0
]
unable to join drbd events multicast group
.
[root@file2 d]# tail /var/log/messages
Feb 15 02:19:58 file2 kernel: d-con r0: conn( StandAlone -> Unconnected )
Feb 15 02:19:58 file2 kernel: d-con r0: Starting receiver thread (from drbd_w_r0 [5060])
Feb 15 02:19:58 file2 kernel: d-con r0: receiver (re)started
Feb 15 02:19:58 file2 kernel: d-con r0: conn( Unconnected -> WFConnection )
Feb 15 02:19:58 file2 kernel: d-con r0: Handshake successful: Agreed network protocol version 100
Feb 15 02:19:58 file2 kernel: d-con r0: Peer authenticated using 20 bytes HMAC
Feb 15 02:19:58 file2 kernel: d-con r0: conn( WFConnection -> WFReportParams )
Feb 15 02:19:58 file2 kernel: d-con r0: Starting asender thread (from drbd_r_r0 [5062])
Feb 15 02:19:58 file2 kernel: block drbd1: max BIO size = 4096
Feb 15 02:19:58 file2 kernel: block drbd1: peer( Unknown -> Primary ) conn( WFReportParams -> Connected ) pdsk( DUnknown -> UpToDate )
[root@file2 d]# service drbd status
drbd driver loaded OK; device status:
version: 8.4.1 (api:1/proto:86-100)
GIT-hash: 91b4c048c1a0e06777b5f65d312b38d47abaea80 build by root@file2, 2012-02-14 23:40:48
m:res cs ro ds p mounted fstype
1:r0 Connected Secondary/Primary Diskless/UpToDate C
[root@file2 d]#
可能是他unable to join drbd events multicast group的原因我的文件同步不成功
[root@file1 d]# service drbd status
drbd driver loaded OK; device status:
version: 8.4.1 (api:1/proto:86-100)
GIT-hash: 91b4c048c1a0e06777b5f65d312b38d47abaea80 build by root@file1, 2012-02-14 02:42:36
m:res cs ro ds p mounted fstype
1:r0 Connected Primary/Secondary UpToDate/Diskless C /d ext3
[root@file1 d]#
Starting DRBD resources: [
create res: r0
prepare disk: r0
adjust disk: r0:failed(attach:10)
adjust net: r0
]
unable to join drbd events multicast group
.
[root@file2 d]# tail /var/log/messages
Feb 15 02:19:58 file2 kernel: d-con r0: conn( StandAlone -> Unconnected )
Feb 15 02:19:58 file2 kernel: d-con r0: Starting receiver thread (from drbd_w_r0 [5060])
Feb 15 02:19:58 file2 kernel: d-con r0: receiver (re)started
Feb 15 02:19:58 file2 kernel: d-con r0: conn( Unconnected -> WFConnection )
Feb 15 02:19:58 file2 kernel: d-con r0: Handshake successful: Agreed network protocol version 100
Feb 15 02:19:58 file2 kernel: d-con r0: Peer authenticated using 20 bytes HMAC
Feb 15 02:19:58 file2 kernel: d-con r0: conn( WFConnection -> WFReportParams )
Feb 15 02:19:58 file2 kernel: d-con r0: Starting asender thread (from drbd_r_r0 [5062])
Feb 15 02:19:58 file2 kernel: block drbd1: max BIO size = 4096
Feb 15 02:19:58 file2 kernel: block drbd1: peer( Unknown -> Primary ) conn( WFReportParams -> Connected ) pdsk( DUnknown -> UpToDate )
[root@file2 d]# service drbd status
drbd driver loaded OK; device status:
version: 8.4.1 (api:1/proto:86-100)
GIT-hash: 91b4c048c1a0e06777b5f65d312b38d47abaea80 build by root@file2, 2012-02-14 23:40:48
m:res cs ro ds p mounted fstype
1:r0 Connected Secondary/Primary Diskless/UpToDate C
[root@file2 d]#
可能是他unable to join drbd events multicast group的原因我的文件同步不成功
[root@file1 d]# service drbd status
drbd driver loaded OK; device status:
version: 8.4.1 (api:1/proto:86-100)
GIT-hash: 91b4c048c1a0e06777b5f65d312b38d47abaea80 build by root@file1, 2012-02-14 02:42:36
m:res cs ro ds p mounted fstype
1:r0 Connected Primary/Secondary UpToDate/Diskless C /d ext3
[root@file1 d]#
|
unable to join drbd events multicast group
这个查了下源代码
好像是内核版本要高于2.6.23
至于 adjust disk: r0:failed(attach:10)
从主日志上来看
Feb 16 18:43:37 file1 kernel: block drbd1: Requested disk size is too big (1048576 > 7992)
Feb 16 18:43:37 file1 kernel: block drbd1: peer( Unknown -> Secondary ) conn( WFReportParams -> Connected ) pdsk( DUnknown -> Diskless )
似乎是主和从两边resource限制不一致? 或者是从服务器分区中有一些不一致的内容? 或是硬盘设置方面不一致?
从
Device Boot Start End Blocks Id System
/dev/sdb1 261 261 8032+ 83 Linux
主
Device Boot Start End Blocks Id System
/dev/sdb1 1 261 2096451 83 Linux
这个查了下源代码
1357 if (cm->continuous_poll) {
1358 if (genl_join_mc_group(drbd_sock, "events") &&
1359 !kernel_older_than(2, 6, 23)) {
1360 fprintf(stderr, "unable to join drbd events multicast groupn");
1361 return 20;
1362 }
1363 }
好像是内核版本要高于2.6.23
至于 adjust disk: r0:failed(attach:10)
从主日志上来看
Feb 16 18:43:37 file1 kernel: block drbd1: Requested disk size is too big (1048576 > 7992)
Feb 16 18:43:37 file1 kernel: block drbd1: peer( Unknown -> Secondary ) conn( WFReportParams -> Connected ) pdsk( DUnknown -> Diskless )
似乎是主和从两边resource限制不一致? 或者是从服务器分区中有一些不一致的内容? 或是硬盘设置方面不一致?
从
Device Boot Start End Blocks Id System
/dev/sdb1 261 261 8032+ 83 Linux
主
Device Boot Start End Blocks Id System
/dev/sdb1 1 261 2096451 83 Linux