Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 May 2024 05:58:52 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 278993] fsck not checking disk if sysctl kern.boottrace.enabled=1 is set
Message-ID:  <bug-278993-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D278993

            Bug ID: 278993
           Summary: fsck not checking disk if sysctl
                    kern.boottrace.enabled=3D1 is set
           Product: Base System
           Version: 14.0-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: conf
          Assignee: bugs@FreeBSD.org
          Reporter: samm@FreeBSD.org

Recently I found that some of my VPS-s fsck is not running (what is causing
failed mount root in case of hard reset).=20

After troubleshooting, I was able to find a root cause - it was
kern.boottrace.enabled=3D1 in the /boot/loader.conf. This is caused by miss=
ing
"$autoboot" variable in the /etc/rc.d/fsck when that script is running, so =
it
does not run correctly.=20

To reproduce on the clean system:

1. Add kern.boottrace.enabled=3D1 to the /boot/loader.conf
2. Add background_fsck=3D"NO" to the /etc/rc.conf
3. Reset system and check logs. Fsck will not be started.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-278993-227>