[systemd-devel] list-boots is incorrect, was: lost journal persistence
Kirill Elagin
kirelagin at gmail.com
Mon May 12 06:06:59 PDT 2014
Could it be that all the boot ids are actually the same for some reason?
I had this issue in a container when systemd was reading boot_id from
`/proc/sys/kernel/random/boot_id` and since /proc was bind-mounted, boot_id
always was host's boot_id.
You can also run `journalctl -F _BOOT_ID` to see a set of all the boot ids
recorded in the journal (this must agree with `journalctl --list-boots`.
You can also add ` -o verbose` to see all the fields of records. Since you
say that the messages are actually stored in the journal, it might be
interesting to check their _BOOT_ID fields.
--
Кирилл Елагин
On Mon, May 12, 2014 at 12:30 AM, Chris Murphy <lists at colorremedies.com>wrote:
> >
> > It looks like --list-boots is broken. I have have the same problem on
> Rawhide with systemd-212-4.fc21.x86_64, which is a completely different VM.
> Here are the last three items with --list-boots
> >
> > -2 95117f702e4d43619072f87b20b2f31b Sat 2014-05-03 20:38:22 MDT—Sat
> 2014-05-03 20:47:17 MDT
> > -1 c9bf102876774c7a8748920f6135ddf6 Sat 2014-05-03 20:47:35 MDT—Sat
> 2014-05-03 20:51:55 MDT
> > 0 f92e4dda29a54b89a3455a10bbb298b2 Sat 2014-05-03 21:01:17 MDT—Sat
> 2014-05-03 21:05:24 MDT
>
> OK installed Rawhide clean today to a third VM, with a Btrfs subvolume
> "var" mounted at /var, and the problem doesn't occur. Each boot gets a new
> entry with --list-boots.
>
> The prior Rawhide and Fedora 20 meanwhile, still always have the same
> --list-boot list after each boot, stuck on May 3rd for some reason. So it
> seems something broke --list-boot in a state persistent manner with the
> journal files themselves. The data is in the journal file however, I can
> extract the prior boots with --since and --lines, it's just that -b [x] is
> useless. -b -1 takes me back over a week rather than the boot 30 minutes
> ago.
>
>
>
> Chris Murphy
> _______________________________________________
> systemd-devel mailing list
> systemd-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/systemd-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20140512/d6e854a5/attachment.html>
More information about the systemd-devel
mailing list