日期:2014-05-16  浏览次数:20635 次

drbd问题请教各位高手指点,这是什么问题怎么解决?
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]#

------解决方案--------------------
unable to join drbd events multicast group
这个查了下源代码

C/C++ code
 
 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 group\n");
 1361             return 20;
 1362         }
 1363     }