[Bug 246962] fsck_ffs frequently requires multiple runs
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Wed Jun 3 16:54:39 UTC 2020
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=246962
Bug ID: 246962
Summary: fsck_ffs frequently requires multiple runs
Product: Base System
Version: CURRENT
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: bin
Assignee: bugs at FreeBSD.org
Reporter: markj at FreeBSD.org
I use a FreeBSD HEAD VM for development, with SU (no journaling) on the root
FS. It panics frequently, and often drops me off in single user mode after
fsck_ffs returns a non-zero exit status:
--
Starting file system checks:
/dev/gpt/rootfs: INCORRECT BLOCK COUNT I=330657 (8 should be 0) (CORRECTED)
/dev/gpt/rootfs: INCORRECT BLOCK COUNT I=330658 (8 should be 0) (CORRECTED)
/dev/gpt/rootfs: INCORRECT BLOCK COUNT I=330660 (8 should be 0) (CORRECTED)
/dev/gpt/rootfs: INCORRECT BLOCK COUNT I=330661 (8 should be 0) (CORRECTED)
/dev/gpt/rootfs: INCORRECT BLOCK COUNT I=330665 (8 should be 0) (CORRECTED)
/dev/gpt/rootfs: INCORRECT BLOCK COUNT I=330666 (16 should be 0) (CORRECTED)
...
/dev/gpt/rootfs: ZERO LENGTH DIR I=727410 OWNER=root MODE=41777
/dev/gpt/rootfs: SIZE=0 MTIME=Jun 3 11:00 2020
(CLEARED)
/dev/gpt/rootfs: FREE BLK COUNT(S) WRONG IN SUPERBLK (SALVAGED)
/dev/gpt/rootfs: SUMMARY INFORMATION BAD (SALVAGED)
/dev/gpt/rootfs: BLK(S) MISSING IN BIT MAPS (SALVAGED)
/dev/gpt/rootfs: 51340 files, 1475643 used, 3343995 free (5475 frags, 417315
blocks, 0.1% fragmentation)
***** PLEASE RERUN FSCK *****
WARNING: /: reload pending error: blocks 184 files 8
Automatic file system check failed; help!
ERROR: ABORTING BOOT (sending SIGTERM to parent)!
2020-06-03T08:15:42.153887-04:00 init 1 - - /bin/sh on /etc/rc terminated
abnormally, going to single user mode
--
Then, running fsck_ffs again returns with no errors:
--
root@:/ # fsck_ffs -y /
** /dev/gpt/rootfs
** Last Mounted on /
** Root file system
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
51340 files, 1475643 used, 3343995 free (5475 frags, 417315 blocks, 0.1%
fragmentation)
***** FILE SYSTEM MARKED CLEAN *****
<boot continues>
--
Why does fsck_ffs require a restart here? I know that there is some rc.conf
variable I can set to work around this, but it looks like it shouldn't be
necessary to begin with.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list