<div><div dir="auto">Which version of drbdmanage/utils/kmod are you using?</div><div dir="auto"><br></div><div dir="auto">Many issues have been sorted out in latest versions.</div><div dir="auto"><br></div><div dir="auto">Yannis</div><div dir="auto"><br></div><br><div class="gmail_quote"><div>On Wed, 30 Aug 2017 at 07:58, 杨成伟 <<a href="mailto:yangchengwei@qiyi.com">yangchengwei@qiyi.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi All,<br>
<br>
I'm following drbd 9.x user guide and has a 3 node(2 control, 1<br>
satellite) setup.<br>
<br>
However, I'm not sure what I've did on one node and that node can not<br>
restart by `drbdmanage restart`.<br>
<br>
It errors like below<br>
<br>
<br>
```<br>
Attempting to startup the server through D-Bus activation...<br>
ERROR:dbus.proxies:Introspect error on :1.96:/interface: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.<br>
D-Bus connection successful, server is running and reachable<br>
```<br>
<br>
<br>
and from the dbus log(journalctl -u dbus -f), I found that drbdmanage failed like below.<br>
<br>
<br>
```<br>
Aug 30 13:10:42 mesos-test-dev002-whdx.qiyi.virtual dbus[815]: [system] Activating service name='org.drbd.drbdmanaged' (using servicehelper)<br>
Aug 30 13:10:42 mesos-test-dev002-whdx.qiyi.virtual dbus-daemon[815]: dbus[815]: [system] Activating service name='org.drbd.drbdmanaged' (using servicehelper)<br>
Aug 30 13:10:42 mesos-test-dev002-whdx.qiyi.virtual drbdmanaged[28329]: INFO DRBDmanage server, version 0.99.9 -- initializing on node 'mesos-test-dev002-whdx.qiyi.virtual'<br>
Aug 30 13:10:42 mesos-test-dev002-whdx.qiyi.virtual dbus[815]: [system] Successfully activated service 'org.drbd.drbdmanaged'<br>
Aug 30 13:10:42 mesos-test-dev002-whdx.qiyi.virtual dbus-daemon[815]: dbus[815]: [system] Successfully activated service 'org.drbd.drbdmanaged'<br>
Aug 30 13:10:42 mesos-test-dev002-whdx.qiyi.virtual drbdmanaged[28329]: INFO DrbdAdm: Running external command: drbdadm -vvv adjust .drbdctrl<br>
Aug 30 13:10:42 mesos-test-dev002-whdx.qiyi.virtual drbdmanaged[28329]: INFO DrbdAdm: External command 'drbdadm': Exit code 0<br>
Aug 30 13:10:42 mesos-test-dev002-whdx.qiyi.virtual drbdmanaged[28329]: INFO DRBDManage starting as potential leader node<br>
Aug 30 13:10:59 mesos-test-dev002-whdx.qiyi.virtual drbdmanaged[28329]: ERROR drbdsetup events tracing has failed, restarting<br>
Aug 30 13:10:59 mesos-test-dev002-whdx.qiyi.virtual drbdmanaged[28329]: INFO drbdsetup events tracing reestablished<br>
Aug 30 13:11:17 mesos-test-dev002-whdx.qiyi.virtual drbdmanaged[28329]: INFO Reading initial DRBD control volume status<br>
Aug 30 13:11:17 mesos-test-dev002-whdx.qiyi.virtual drbdmanaged[28329]: INFO Finished reading initial DRBD control volume status<br>
Aug 30 13:11:17 mesos-test-dev002-whdx.qiyi.virtual drbdmanaged[28329]: INFO Leader election by wait for connections<br>
Aug 30 13:11:17 mesos-test-dev002-whdx.qiyi.virtual drbdmanaged[28329]: INFO DrbdAdm: Running external command: drbdsetup wait-connect-resource --wait-after-sb=yes --wfc-timeout=2 .drbd<br>
ctrl<br>
Aug 30 13:11:17 mesos-test-dev002-whdx.qiyi.virtual drbdmanaged[28329]: INFO DrbdAdm: External command 'drbdsetup': Exit code 0<br>
Aug 30 13:11:17 mesos-test-dev002-whdx.qiyi.virtual drbdmanaged[28329]: INFO DrbdAdm: Running external command: drbdsetup primary .drbdctrl<br>
Aug 30 13:11:18 mesos-test-dev002-whdx.qiyi.virtual drbdmanaged[28329]: ERROR DrbdAdm: External command 'drbdsetup': Exit code 11<br>
Aug 30 13:11:18 mesos-test-dev002-whdx.qiyi.virtual drbdmanaged[28329]: INFO Leader election: lost election<br>
Aug 30 13:11:24 mesos-test-dev002-whdx.qiyi.virtual drbdmanaged[28329]: ERROR Signal creation failed, unhandled exception encountered<br>
Aug 30 13:11:24 mesos-test-dev002-whdx.qiyi.virtual drbdmanaged[28329]: ERROR Signal creation failed, unhandled exception encountered<br>
Aug 30 13:11:24 mesos-test-dev002-whdx.qiyi.virtual drbdmanaged[28329]: ERROR Signal creation failed, unhandled exception encountered<br>
Aug 30 13:11:24 mesos-test-dev002-whdx.qiyi.virtual drbdmanaged[28329]: INFO starting resource 'r0'<br>
Aug 30 13:11:24 mesos-test-dev002-whdx.qiyi.virtual drbdmanaged[28329]: INFO DrbdAdm: Running external command: drbdadm --config-to-test /var/lib/drbd.d/drbdmanage_r0.res.tmp --config-t<br>
o-exclude /var/lib/drbd.d/drbdmanage_r0.res sh-nop<br>
Aug 30 13:11:24 mesos-test-dev002-whdx.qiyi.virtual drbdmanaged[28329]: INFO DrbdAdm: External command 'drbdadm': Exit code 0<br>
Aug 30 13:11:24 mesos-test-dev002-whdx.qiyi.virtual drbdmanaged[28329]: INFO DrbdAdm: Running external command: drbdadm -c /var/lib/drbd.d/drbdmanage_r0.res.tmp -d up r0<br>
Aug 30 13:11:24 mesos-test-dev002-whdx.qiyi.virtual drbdmanaged[28329]: INFO DrbdAdm: External command 'drbdadm': Exit code 0<br>
Aug 30 13:11:24 mesos-test-dev002-whdx.qiyi.virtual drbdmanaged[28329]: INFO DrbdAdm: Running external command: drbdadm -vvv adjust -c /var/lib/drbd.d/drbdmanage_r0.res r0<br>
Aug 30 13:11:24 mesos-test-dev002-whdx.qiyi.virtual drbdmanaged[28329]: INFO DrbdAdm: External command 'drbdadm': Exit code 0<br>
```<br>
<br>
<br>
It seems `drbdmanage restart` fails because `drbdsetup primary .drbdctl` fails,<br>
so I just run this command on the node.<br>
<br>
<br>
```<br>
[root@mesos-test-dev002-whdx ~]# drbdsetup primary .drbdctrl<br>
.drbdctrl: State change failed: (-1) Multiple primaries not allowed by config<br>
```<br>
<br>
<br>
Apparently, it fails and said *Multiple primaries not allowed by config*,<br>
I am not sure why it will run this command because drbdmanage role says this node is not the leader<br>
<br>
<br>
```<br>
[root@mesos-test-dev002-whdx ~]# drbdmanage role<br>
Operation completed successfully<br>
potential leader (CL: mesos-test-dev001-whdx.qiyi.virtual)<br>
```<br>
<br>
<br>
Any help? Thanks in advance!<br>
<br>
--<br>
Thanks,<br>
Chengwei<br>
_______________________________________________<br>
drbd-user mailing list<br>
<a href="mailto:drbd-user@lists.linbit.com" target="_blank">drbd-user@lists.linbit.com</a><br>
<a href="http://lists.linbit.com/mailman/listinfo/drbd-user" rel="noreferrer" target="_blank">http://lists.linbit.com/mailman/listinfo/drbd-user</a><br>
</blockquote></div></div><div dir="ltr">-- <br></div><div class="gmail_signature" data-smartmail="gmail_signature">Sent from Gmail Mobile</div>