/srv/irclogs.ubuntu.com/2019/05/18/#ubuntu-kernel.txt

=== himcesjf_ is now known as him-cesjf
alkisgHi, can anyone imagine why the netconsole module works properly early in the boot process, yet it stops broadcasting when systemd services start, at about the point when systemd-journald starts? (maybe that's when networking starts too...)10:04
alkisgUDP traffic isn't blocked, e.g. sending messages with `nc` works fine; it seems like the netconsole module just stops sending; it even loads successfully with no errors, yet it sends nothing10:05
alkisgExample commands to test with: server: nc -l -u 6666; client: modprobe netconsole netconsole=@client-ip/enp0s3,@server-ip/10:06
alkisgThese work at e.g. init=/bin/bash, but not on "recovery" or later10:06
alkisgI tried downloading netconsole-setup from 19.04; this manages to send a single test message, and then nothing more10:32
alkisgIt works in Ubuntu 4.10, fails on Ubuntu 8.04. Hehe, first time trying Warty.10:47
jeremy31alkisg: Why mess with unsupported versions?10:48
alkisgjeremy31: to see when it broke, to help in finding why it broke10:49
alkisg(netconsole isn't working in ubuntu since at least 10 years now)10:49
alkisg(while it still works fine in buster and all the rest distros)10:49
alkisg6.06.1 is broken too, so it broke sometime between 4.10 and 6.06.110:54
alkisgSo, it works on 4.10 and fails on 5.04 and up to now. Ancient bug. :)11:05
alkisgip a11:05
alkisgGot it; it needed `dmesg -n 8` to actually transfer the messages in 5.04+13:12
alkisg...or, echo '4 3 1 7' > /proc/sys/kernel/printk, or loglevel=8 in /proc/cmdline etc; but it appears that this only lasts up until journald is started13:39
alkisgSomething resets the log level, so one needs to manually run it again after the system completes its boot process13:40
TJ-alkisg: "grep LogLevel /etc/systemd/system.conf" 13:44
alkisgTJ-: thanks; I tried settings that to "debug", I rebooted, but /proc/sys/kernel/printk is again reset to "4 4 1 7"13:47
alkisgWhat I want is to have "4 3 1 7" or "5 4 1 7" after the system boots, so that a simple "date > /proc/kmsg" reaches the server,13:49
alkisgSo, I start with passing "loglevel=5" in the kernel cmdline, and that works up until journal starts, where it's reset to 4.13:49
TJ-alkisg: how about a sysctl setting?13:49
alkisgDo you think journald will respect that? I can try...13:50
alkisgloglevel is supposedly the kernel parameter that is equivalent to kernel.printk...13:50
TJ-alkisg: check out journald.conf, it's man-page shows options MaxLevelStore=, MaxLevelSyslog=, MaxLevelKMsg=, MaxLevelConsole=, MaxLevelWall=13:52
alkisgThose sound interesting, let me try...13:52
TJ-alkisg: see "man journald.conf"13:53
alkisgI tried these in the cmdline, but no joy so far: systemd.journald.max_level_kmsg=5 systemd.journald.max_level_console=513:59
alkisgI'll try again after a small nap. Ty, later... :)13:59
alkisgTJ-: I put init=/bin/bash, I run `systemctl mask journald; exec /sbin/init`, and the level is still reset to 4. So it's probably some other component that resets it, not journald...14:53
TJ-alkisg: it does sound like a sysctl thing14:55
alkisgOh, I see sysctl.d/10-console-message.conf has 4 4 1 7, maybe it's that one, looking...14:56
TJ-I did mention that earlier14:56
alkisgYup that was it. Sorry I didn't realize you said "maybe it's a setting in sysctl.d", I thought you meant "maybe you can set the one you want in sysctl.d"14:59
alkisgAnd since I already set it in the cmdline, I didn't look into it more14:59
TJ-well, it took you as long to find that as it's taken me to find a missing managed switch on my network!15:00
alkisgHaha, I had a nap too :D15:02
alkisgIt took me all Friday to find a loop in the cabling a school though... a teacher removed a utp cable from a pc, put it to his laptop, and when he was done, he put it back to... the switch, creating a loop15:03
alkisgThe school lost networking for a week :D15:04
TJ-arghh!15:04
TJ-well in my case I have a netgear GS748TP, used for labs, so it is powered off most of the time. It should be on the management vlan on 10.254.0.253, but I couldn't find it despite all manner of permutations of looking for it on both the management and default vlans, and trying alternate (inc. default) IP addresses, different ports, and so on15:06
TJ-eventually downloaded the Netgeat SmartWizard windows software, ran it under wine, it found the device instantly and confirmed I had the correct IP address... so at that point I added the management subnet to the default vlan and there it was! so it had forgotten it was supposed to be on the management vlan15:07
* alkisg got a headache just reading about it :D15:08

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!