[DRBD-user] Where is drbd log and how to debug?

Robert Altnoeder robert.altnoeder at linbit.com
Fri Sep 8 10:01:11 CEST 2017

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


On 09/08/2017 02:44 AM, Chengwei Yang wrote:
> Hi list,
>
> I'm curious where is the full log of DRBD, includes drbdmanage, tools
> behind drbdmanage like drbdadm, drbdsetup, drbdmeta and etc.
System log. Often found in /var/log/messages, sometimes split to
something like /var/log/user.log and /var/log/kern.log, or e.g.
/var/log/syslog on Debian. On systems running systemd, there is also the
journal (which you already discovered). It depends on the distribution
and there is no standard whatsoever on what's where and what the default
logging level is. Welcome to Unix :P

> So far I can find some logs:
>
> 1. drbdmanage logs from `journalctl -u dbus`
> 2. drbd kernel module from `dmesg` or `cat /dev/kmsg`
Additionally, on systems that run systemd, commonly the standard error
(and maybe stdout?) of processes started by systemd is also logged and
end up in the journal, or syslog, or maybe both, I am not sure.
> I think there are some more logs, and I wondering where can I find them.
drbdmanage has an additional volatile log that keeps the last few
messages (those also go into the syslog).
Try:
drbdmanage message-log
or
drbdmanage ml

The messages in this log are kept in a ring buffer in RAM.
> Besides all the logs, is there some document can tell me how to debug
> drbd?
Other than the user's guide, I don't think there is. Most required
information can be inferred from the user's guide, e.g. generation
identifiers and the bitmap are the most important parts to understand.
Also, understanding and being able to use drbdsetup and drbdmeta
commands directly instead of through drbdadm only may help in some cases.
> thanks in advance!

best regards,
-- 
Robert Altnoeder
+43 1 817 82 92 0
robert.altnoeder at linbit.com

LINBIT | Keeping The Digital World Running
DRBD - Corosync - Pacemaker
f /  t /  in /  g+

DRBD® and LINBIT® are registered trademarks of LINBIT, Austria.



More information about the drbd-user mailing list