From: Heinz Diehl <htd+ml@fritha.org>
To: Chris Murphy <lists@colorremedies.com>
Cc: xfs list <linux-xfs@vger.kernel.org>, Dave Chinner <david@fromorbit.com>
Subject: Re: XFS journal corruption after every reboot/shutdown
Date: Sun, 14 Jan 2018 09:41:24 +0100 [thread overview]
Message-ID: <20180114084124.GA1879@fritha.org> (raw)
In-Reply-To: <CAJCQCtS=qEmRtcqO+U-Ut_V5jFdyEjehiy+Vafxdt-PMvv-Z9g@mail.gmail.com>
On 13.01.2018, Chris Murphy wrote:
> You could try to mask the use of plymouth in systemd (or uninstall
> it). If the problem goes away, that's the culprit.
I removed plymouth a long time ago, because to me it's useless.
> If it doesn't you can probably track down what's holding up the remount ro with
> https://freedesktop.org/wiki/Software/systemd/Debugging/#index2h1
> And following the "eventually shuts down" section.
And that solved the problem! Not the debugging itself, but the debug script
that is mentioned in the text you directed me to. After placing the
debug script in /usr/lib/systemd/systemd-shutdown, the root fs is
clean after reboot/shutdown:
[htd@chiara ~]$ dmesg | grep XFS
[ 2.085668] SGI XFS with ACLs, security attributes, no debug enabled
[ 2.086856] XFS (nvme0n1p3): Mounting V5 Filesystem
[ 2.093919] XFS (nvme0n1p3): Ending clean mount
Here's the debug script:
#!/bin/sh
mount -o remount,rw /
dmesg > /shutdown-log.txt
mount -o remount,ro /
It simply remounts the root fs rw, dumps the output of dmesg to disk,
and remounts the root fs ro afterwards. I tried to find out exactly
where and when in the shutdown process this script is executed, but
have to admit that my understanding of systemd is not deep enough.
I think something in how systemd performs a reboot/shutdown is
wrong. Will add this information to my bug report and hope this rings
a bell for the systemd developers.
Thanks a lot,
Heinz
prev parent reply other threads:[~2018-01-14 8:41 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-11 22:44 XFS journal corruption after every reboot/shutdown Heinz Diehl
2018-01-11 23:13 ` Dave Chinner
2018-01-11 23:21 ` Eric Sandeen
2018-01-13 8:17 ` Heinz Diehl
2018-01-13 22:31 ` Chris Murphy
2018-01-14 8:41 ` Heinz Diehl [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180114084124.GA1879@fritha.org \
--to=htd+ml@fritha.org \
--cc=david@fromorbit.com \
--cc=linux-xfs@vger.kernel.org \
--cc=lists@colorremedies.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox