Bug 225110 - UFS "cylinder checksum failed" messages after crash, with SU+J enabled
Summary: UFS "cylinder checksum failed" messages after crash, with SU+J enabled
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-fs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-12 15:34 UTC by Ed Maste
Modified: 2018-01-19 09:25 UTC (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ed Maste freebsd_committer 2018-01-12 15:34:18 UTC
Reference thread at https://lists.freebsd.org/pipermail/freebsd-current/2018-January/068043.html

tuexen@ writes

Not sure this helps: But we have seen this also after system panics
when having soft update journaling enabled. Having soft update journaling
disabled, we do not observed this after several panics.
Just to be clear: The panics are not related to this issue,
but to other network development we do.

Also reproduced on two new installs by my co-op students:

- system panics for some reason, unrelated to filesystems
- fsck SU+J runs after reboot
- kernel reports many cylinder checksum failures
Comment 1 commit-hook freebsd_committer 2018-01-12 20:26:04 UTC
A commit references this bug:

Author: emaste
Date: Fri Jan 12 20:25:57 UTC 2018
New revision: 327890
URL: https://svnweb.freebsd.org/changeset/base/327890

Log:
  bsdinstall: disable SUJ by default

  SUJ + cg checksums produce spurious warnings after an unclean shutdown
  (e.g. a crash).  For now disable SUJ for UFS installs so installing from
  a FreeBSD 12 snapshot results in a usable filesystem, until this can be
  fixed.

  PR:		225110
  Submitted by:	Arshan Khanifar <arshankhanifar gmail.com>
  Sponsored by:	The FreeBSD Foundation
  Differential Revision: https://reviews.freebsd.org/D13890

Changes:
  head/usr.sbin/bsdinstall/partedit/gpart_ops.c
Comment 2 Kirk McKusick freebsd_committer 2018-01-18 07:04:47 UTC
Please retry with this change included as I believe it will fix the problem.

New Revision: 328092
URL: https://svnweb.freebsd.org/changeset/base/328092

Log:
  Correct fsck journal-recovery code to update a cylinder-group
  check-hash after making changes to the cylinder group. The problem
  was that the journal-recovery code was calling the libufs bwrite()
  function instead of the cgput() function. The cgput() function updates
  the cylinder-group check-hash before writing the cylinder group.
Comment 3 Jean-Sébastien Pédron freebsd_committer 2018-01-19 09:25:56 UTC
I tried this patch with success on my laptop! Thank you Kirk :)