<div dir="ltr"><div>Please let me ask you questions about DRBD.</div><div>I&#39;m testing DRBD 9.0.8 with RHEL 7.3 on AWS environment.</div><div><br></div><div>【Configurations】</div><div>OS:RHEL 7.3</div><div>Kernel version:3.10.0-514.el7.x86_64</div><div>DRBD:drbd-9.0.8-1</div><div>     drbd-utils-9.0.0</div><div>     drbdmanage-0.99.5</div><div>Host Name:drbd-01、drbd-02</div><div>Disk for DRBD: /dev/xvdb</div><div><br></div><div>・DRBD volume is going to be used  as MySQL data volume.</div><div>・AWS env is only test environment. PROD env is VM ESXi.</div><div><br></div><div>【Installing steps】</div><div>・Installing required packages</div><div># yum -y install kernel-devel.x86_64</div><div># yum -y install gcc.x86_64</div><div># yum -y install flex.x86_64</div><div><br></div><div>・Installing DRBD</div><div># cd /usr/local/src/</div><div># tar zxf drbd-9.0.8-1.tar.gz</div><div># cd drbd-9.0.8-1</div><div># make KDIR=/usr/src/kernels/$(uname -r)</div><div># make install</div><div># modprobe drbd</div><div># cat /proc/drbd</div><div><br></div><div>・Installing drbd-util</div><div># cd /usr/local/src/</div><div># tar zxf drbd-utils-9.0.0.tar.gz</div><div># cd drbd-utils-9.0.0</div><div># ./configure</div><div># make</div><div># make install</div><div><br></div><div>・Installing DRBD Manage</div><div># cd /usr/local/src/</div><div># tar zxf drbdmanage-0.99.5.tar.gz</div><div># cd drbdmanage-0.99.5</div><div># ./setup.py build</div><div># ./setup.py install</div><div><br></div><div>【Initialize DRBD】</div><div>- Creating pool for DRBD</div><div># vgcreate drbdpool /dev/xvdb1</div><div>  Physical volume &quot;/dev/xvdb1&quot; successfully created.</div><div>  Volume group &quot;drbdpool&quot; successfully created</div><div>#</div><div><br></div><div>- Execute on drbd-01</div><div># drbdmanage init 172.31.1.155</div><div><br></div><div>You are going to initialize a new drbdmanage cluster.</div><div>CAUTION! Note that:</div><div>  * Any previous drbdmanage cluster information may be removed</div><div>  * Any remaining resources managed by a previous drbdmanage installation</div><div>    that still exist on this system will no longer be managed by drbdmanage</div><div><br></div><div>Confirm:</div><div><br></div><div>  yes/no: yes</div><div>Empty drbdmanage control volume initialized on &#39;/dev/drbd0&#39;.</div><div>Empty drbdmanage control volume initialized on &#39;/dev/drbd1&#39;.</div><div>Waiting for server: .</div><div>Operation completed successfully</div><div>#</div><div># drbdadm status</div><div>.drbdctrl role:Primary</div><div>  volume:0 disk:UpToDate</div><div>  volume:1 disk:UpToDate</div><div><br></div><div>#</div><div>#</div><div># lvdisplay -c</div><div>  /dev/drbdpool/.drbdctrl_0:drbdpool:3:1:-1:2:8192:1:-1:0:-1:253:0</div><div>  /dev/drbdpool/.drbdctrl_1:drbdpool:3:1:-1:2:8192:1:-1:0:-1:253:1</div><div>#</div><div># drbdmanage list-nodes</div><div>+------------------------------------------------------------------------------------------------------------+</div><div>| Name    | Pool Size | Pool Free |                                                                  | State |</div><div>|------------------------------------------------------------------------------------------------------------|</div><div>| drbd-01 |     10236 |     10228 |                                                                  |    ok |</div><div>+------------------------------------------------------------------------------------------------------------+</div><div>#</div><div># drbdmanage new-node drbd-02 172.31.8.103</div><div>Operation completed successfully</div><div>Operation completed successfully</div><div><br></div><div>Executing join command using ssh.</div><div>IMPORTANT: The output you see comes from drbd-02</div><div>IMPORTANT: Your input is executed on drbd-02</div><div>You are going to join an existing drbdmanage cluster.</div><div>CAUTION! Note that:</div><div>  * Any previous drbdmanage cluster information may be removed</div><div>  * Any remaining resources managed by a previous drbdmanage installation</div><div>    that still exist on this system will no longer be managed by drbdmanage</div><div><br></div><div>Confirm:</div><div><br></div><div>  yes/no: yes</div><div>Waiting for server to start up (can take up to 1 min)</div><div>Waiting for server: ......</div><div>Operation completed successfully</div><div>Give leader time to contact the new node</div><div>Operation completed successfully</div><div>Operation completed successfully</div><div>#</div><div>#</div><div># drbdmanage howto-join drbd-02</div><div>IMPORTANT: Execute the following command only on node drbd-02!</div><div>drbdmanage join -p 6999 172.31.8.103 1 drbd-01 172.31.1.155 0 aez1qL969FHRDYJH4qYD</div><div>Operation completed successfully</div><div>#</div><div>#</div><div><br></div><div>- Execute on drbd-02</div><div># drbdmanage join -p 6999 172.31.8.103 1 drbd-01 172.31.1.155 0 aez1qL969FHRDYJH4qYD</div><div>You are going to join an existing drbdmanage cluster.</div><div>CAUTION! Note that:</div><div>  * Any previous drbdmanage cluster information may be removed</div><div>  * Any remaining resources managed by a previous drbdmanage installation</div><div>    that still exist on this system will no longer be managed by drbdmanage</div><div><br></div><div>Confirm:</div><div><br></div><div>  yes/no: yes</div><div>Waiting for server to start up (can take up to 1 min)</div><div>Operation completed successfully</div><div>#</div><div>#</div><div><br></div><div>- Execute on drbd-01</div><div># drbdmanage list-nodes</div><div>+------------------------------------------------------------------------------------------+</div><div>| Name    | Pool Size | Pool Free |                          |                       State |</div><div>|------------------------------------------------------------------------------------------|</div><div>| drbd-01 |     10236 |     10228 |                          |  online/quorum vote ignored |</div><div>| drbd-02 |     10236 |     10228 |                          | offline/quorum vote ignored |</div><div>+------------------------------------------------------------------------------------------+</div><div>[root@drbd-01 drbd.d]#</div><div><br></div><div>- Execute on drbd-02</div><div># drbdmanage list-nodes</div><div>+------------------------------------------------------------------------------------------+</div><div>| Name    | Pool Size | Pool Free |                          |                       State |</div><div>|------------------------------------------------------------------------------------------|</div><div>| drbd-01 |     10236 |     10228 |                          | offline/quorum vote ignored |</div><div>| drbd-02 |     10236 |     10228 |                          |  online/quorum vote ignored |</div><div>+------------------------------------------------------------------------------------------+</div><div>#</div><div>#</div><div><br></div><div>When I checked syslog on drbd-01, the messages blow were writen.</div><div>----------</div><div>Jul 24 03:27:58 drbd-01 dbus-daemon: .drbdctrl role:Primary</div><div>Jul 24 03:27:58 drbd-01 dbus-daemon: volume:0 disk:UpToDate</div><div>Jul 24 03:27:58 drbd-01 dbus-daemon: volume:1 disk:UpToDate</div><div>Jul 24 03:29:55 drbd-01 drbdmanaged[2221]: INFO       DrbdAdm: Running external command: drbdadm -vvv adjust .drbdctrl</div><div>Jul 24 03:29:55 drbd-01 drbdmanaged[2221]: ERROR      DrbdAdm: External command &#39;drbdadm&#39;: Exit code 1</div><div>Jul 24 03:29:55 drbd-01 dbus-daemon: .drbdctrl role:Primary</div><div>----------</div><div><br></div><div>on drbd-02</div><div>----------</div><div>Jul 24 03:29:59 drbd-02 drbdmanaged[2184]: INFO       DrbdAdm: Running external command: drbdadm -vvv adjust .drbdctrl</div><div>Jul 24 03:29:59 drbd-02 drbdmanaged[2184]: ERROR      DrbdAdm: External command &#39;drbdadm&#39;: Exit code 1</div><div>Jul 24 03:29:59 drbd-02 drbdmanaged[2184]: INFO       DRBDManage starting as potential leader node</div><div>Jul 24 03:29:59 drbd-02 dbus-daemon: .drbdctrl role:Secondary</div><div>Jul 24 03:29:59 drbd-02 dbus-daemon: volume:0 disk:Inconsistent</div><div>Jul 24 03:29:59 drbd-02 dbus-daemon: volume:1 disk:Inconsistent</div><div>Jul 24 03:29:59 drbd-02 dbus-daemon: drbd-01 connection:Connecting</div><div>Jul 24 03:30:41 drbd-02 drbdmanaged[2184]: ERROR      drbdsetup events tracing has failed, restarting</div><div>Jul 24 03:30:41 drbd-02 drbdmanaged[2184]: INFO       drbdsetup events tracing reestablished</div><div>Jul 24 03:31:21 drbd-02 drbdmanaged[2184]: INFO       Reading initial DRBD control volume status</div><div>Jul 24 03:31:21 drbd-02 drbdmanaged[2184]: INFO       Finished reading initial DRBD control volume status</div><div>Jul 24 03:31:21 drbd-02 drbdmanaged[2184]: INFO       Leader election by wait for connections</div><div>Jul 24 03:31:21 drbd-02 drbdmanaged[2184]: INFO       DrbdAdm: Running external command: drbdsetup wait-connect-resource --wait-after-sb=yes --wfc-timeout=2 .drbdctrl</div><div>Jul 24 03:31:23 drbd-02 drbdmanaged[2184]: ERROR      DrbdAdm: External command &#39;drbdsetup&#39;: Exit code 5</div><div>Jul 24 03:31:23 drbd-02 drbdmanaged[2184]: ERROR      drbdsetup/stderr: degr-wfc-timeout has to be shorter than wfc-timeout</div><div>Jul 24 03:31:23 drbd-02 drbdmanaged[2184]: ERROR      drbdsetup/stderr: degr-wfc-timeout implicitly set to wfc-timeout (2s)</div><div>Jul 24 03:31:23 drbd-02 drbdmanaged[2184]: ERROR      drbdsetup/stderr: outdated-wfc-timeout has to be shorter than degr-wfc-timeout</div><div>Jul 24 03:31:23 drbd-02 drbdmanaged[2184]: ERROR      drbdsetup/stderr: outdated-wfc-timeout implicitly set to degr-wfc-timeout (2s)</div><div>Jul 24 03:31:23 drbd-02 drbdmanaged[2184]: WARNING    Resource &#39;.drbdctrl&#39;: wait-connect-resource not finished within 2 seconds</div><div>----------</div><div><br></div><div>Please let me know what these errors mean and how I can resolve this issue.</div><div><br></div><div>Your help would be appreciated.</div><div><br></div></div>