<div dir="ltr">On Tue, Jul 30, 2019 at 3:39 PM Chris Murphy <<a href="mailto:lists@colorremedies.com">lists@colorremedies.com</a>> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Mon, Jul 29, 2019 at 1:26 AM Lennart Poettering<br>
<<a href="mailto:lennart@poettering.net" target="_blank">lennart@poettering.net</a>> wrote:<br>
><br>
> On So, 28.07.19 22:11, Chris Murphy (<a href="mailto:lists@colorremedies.com" target="_blank">lists@colorremedies.com</a>) wrote:<br>
><br>
> > Using either of the following:<br>
> ><br>
> > systemd.log_level=debug systemd.journald.forward_to_kmsg log_buf_len=8M<br>
> ><br>
> > systemd.log_level=debug systemd.log_target=kmsg log_buf_len=8M<br>
><br>
> Note that this is not sufficient. You also have to pass<br>
> "printk.devkmsg=on" too, otherwise the kernel ratelimits log output<br>
> from usperspace ridiculously a lot, and you will see lots of dropped<br>
> messages.<br>
><br>
> I have documented this now here:<br>
><br>
> <a href="https://github.com/systemd/systemd/pull/13208" rel="noreferrer" target="_blank">https://github.com/systemd/systemd/pull/13208</a><br>
<br>
BOOT_IMAGE=/images/pxeboot/vmlinuz<br>
root=live:CDLABEL=Fedora-WS-Live-rawh-20190728-n-1 rd.live.image<br>
systemd.wants=zram-swap.service systemd.log_level=debug<br>
systemd.journald.forward_to_kmsg log_buf_len=8M printk.devkmsg=on<br>
<br>
Many messages I see in the journal still do not appear in kmsg. For<br>
example from /dev/kmsg<br>
<br>
6,20619,201107529,-;zram: Cannot change disksize for initialized device<br>
12,23154,208596765,-;org.fedoraproject.Anaconda.Modules.Network[2498]:<br>
DEBUG:anaconda.modules.network.network:Applying boot options<br>
KernelArguments([('BOOT_IMAGE', '/images/pxeboot/vmlinuz'), ('root',<br>
'live:CDLABEL=Fedora-WS-Live-rawh-20190728-n-1'), ('rd.live.image',<br>
None), ('systemd.wants', 'zram-swap.service'), ('systemd.log_level',<br>
'debug'), ('systemd.journald.forward_to_kmsg', None), ('log_buf_len',<br>
'8M'), ('printk.devkmsg', 'on')])<br>
12,25049,210822858,-;org.fedoraproject.Anaconda.Modules.Storage[2498]:<br>
DEBUG:anaconda.modules.storage.disk_selection.selection:Protected<br>
devices are set to '['/dev/zram0']'.<br>
^C<br>
[root@localhost-live liveuser]# journalctl -o short-monotonic | grep zram<br>
[ 203.224915] localhost-live systemd[1477]: Added job<br>
dev-zram0.device/nop to transaction.<br>
[ 203.225017] localhost-live systemd[1477]: dev-zram0.device:<br>
Installed new job dev-zram0.device/nop as 295<br>
[ 203.225143] localhost-live systemd[1477]: Added job<br>
sys-devices-virtual-block-zram0.device/nop to transaction.<br>
[ 203.225245] localhost-live systemd[1477]:<br>
sys-devices-virtual-block-zram0.device: Installed new job<br>
sys-devices-virtual-block-zram0.device/nop as 296<br>
[ 203.225355] localhost-live systemd[1477]:<br>
sys-devices-virtual-block-zram0.device: Job 296<br>
sys-devices-virtual-block-zram0.device/nop finished, result=done<br>
[ 203.225570] localhost-live systemd[1477]: dev-zram0.device: Job 295<br>
dev-zram0.device/nop finished, result=done<br>
[ 208.959944] localhost-live systemd[1477]: Added job<br>
dev-zram0.device/nop to transaction.<br>
[ 208.961015] localhost-live systemd[1477]: dev-zram0.device:<br>
Installed new job dev-zram0.device/nop as 340<br>
[ 208.961324] localhost-live systemd[1477]: Added job<br>
sys-devices-virtual-block-zram0.device/nop to transaction.<br>
[ 208.961508] localhost-live systemd[1477]:<br>
sys-devices-virtual-block-zram0.device: Installed new job<br>
sys-devices-virtual-block-zram0.device/nop as 341<br>
[ 208.961789] localhost-live systemd[1477]:<br>
sys-devices-virtual-block-zram0.device: Job 341<br>
sys-devices-virtual-block-zram0.device/nop finished, result=done<br>
[ 208.962021] localhost-live systemd[1477]: dev-zram0.device: Job 340<br>
dev-zram0.device/nop finished, result=done<br>
[ 209.822448] localhost-live systemd[1477]: Added job<br>
dev-zram0.device/nop to transaction.<br>
[ 209.822625] localhost-live systemd[1477]: dev-zram0.device:<br>
Installed new job dev-zram0.device/nop as 377<br>
[ 209.822757] localhost-live systemd[1477]: Added job<br>
sys-devices-virtual-block-zram0.device/nop to transaction.<br>
[ 209.822861] localhost-live systemd[1477]:<br>
sys-devices-virtual-block-zram0.device: Installed new job<br>
sys-devices-virtual-block-zram0.device/nop as 378<br>
[ 209.822983] localhost-live systemd[1477]:<br>
sys-devices-virtual-block-zram0.device: Job 378<br>
sys-devices-virtual-block-zram0.device/nop finished, result=done<br>
[ 209.823106] localhost-live systemd[1477]: dev-zram0.device: Job 377<br>
dev-zram0.device/nop finished, result=done<br>
[ 213.866820] localhost-live anaconda[2490]: blivet:<br>
DeviceTree.get_device_by_path: path: /dev/zram0 ; incomplete: False ;<br>
hidden: False ;<br>
[ 213.868392] localhost-live anaconda[2490]: blivet: failed to<br>
resolve '/dev/zram0'<br>
[root@localhost-live liveuser]#<br>
<br>
<br>
Literally zero of those lines appear in kmsg<br>
<br>
6,20619,201107529,-;zram: Cannot change disksize for initialized device<br>
12,23154,208596765,-;org.fedoraproject.Anaconda.Modules.Network[2498]:<br>
DEBUG:anaconda.modules.network.network:Applying boot options<br>
KernelArguments([('BOOT_IMAGE', '/images/pxeboot/vmlinuz'), ('root',<br>
'live:CDLABEL=Fedora-WS-Live-rawh-20190728-n-1'), ('rd.live.image',<br>
None), ('systemd.wants', 'zram-swap.service'), ('systemd.log_level',<br>
'debug'), ('systemd.journald.forward_to_kmsg', None), ('log_buf_len',<br>
'8M'), ('printk.devkmsg', 'on')])<br>
12,25049,210822858,-;org.fedoraproject.Anaconda.Modules.Storage[2498]:<br>
DEBUG:anaconda.modules.storage.disk_selection.selection:Protected<br>
devices are set to '['/dev/zram0']'.<br>
<br>
The first is a kernel message, the next two are anaconda messages that<br>
don't appear in the journal, where the two anaconda-blivet messages in<br>
the journal do not appear in kmsg. But none of the systemd messages in<br>
the journal appear in kmsg. It's like they each are missing some of<br>
what appears in the other.<br>
<br>
Between this behavior, and the journals being deleted on Lives bug,<br>
I'm totally stuck being unable to introspect early boot problems, or<br>
even confirm working things are working as intended and in the proper<br>
order.<br>
<a href="https://bugzilla.redhat.com/show_bug.cgi?id=1715699" rel="noreferrer" target="_blank">https://bugzilla.redhat.com/show_bug.cgi?id=1715699</a><br>
<br>
One of these has to give.<br>
<br>
---<br>
Chris Murphy</blockquote><div><br></div><div style="font-family:monospace,monospace" class="gmail_default">I do not mean to sound like an ass here - especially since you have spent hours of time ripping this stuff apart on Fedora live media (I actually thought initially since you were digging so deep, you worked there), but I mean really - what is the point?</div><div style="font-family:monospace,monospace" class="gmail_default"><br></div><div style="font-family:monospace,monospace" class="gmail_default">Are you planning on using a Fedora Live Media image as production? If so, you clearly have not encountered all the stuff that usually does not work on live media and should create your own anyhow.</div><div style="font-family:monospace,monospace" class="gmail_default"><br></div><div style="font-family:monospace,monospace" class="gmail_default">I apologize, but I just do not get the effort spent here by anyone.</div></div></div>