[Bug 291940] 14.3-STABLE: buildworld fails

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 26 Dec 2025 10:39:32 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=291940

--- Comment #7 from Eugene Grosbein <eugen@freebsd.org> ---
I managed to remotely remount file systems of this remote machine to read-only
and successfully run "fsck -yf" for all of them except of /var. Some problems
were found and fixed.

As for /var, same command "mount -f -u -o ro /var" hang for several minutes
then failed with "Device busy" error. I used "reboot -N" and it still could not
unmount /var:

Waiting (max 60 seconds) for system process `vnlru' to stop... done
Waiting (max 60 seconds) for system process `syncer' to stop...
Syncing disks, vnodes remaining... 5 5 3 1 1 0 0 done
All buffers synced.
softdep_waitidle: Failed to flush worklist for 0xfffffe0067f6fb00
unmount of /var failed (BUSY)
Uptime: 11m42s
---<<BOOT>>---

New buildworld attempt started.

Before reboot, I setup custom /etc/rc.d/early script running BEFORE: fsck, so
during reboot it ran "/sbin/fsck -yf /var" and fixed some problems, too:

** /dev/mirror/gm0s1e
** Last Mounted on /var
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
UNREF FILE I=471095  OWNER=root MODE=140666
SIZE=0 MTIME=Dec 26 13:17 2025

CLEAR? yes

** Phase 5 - Check Cyl groups
FREE BLK COUNT(S) WRONG IN SUPERBLK
SALVAGE? yes

SUMMARY INFORMATION BAD
SALVAGE? yes

BLK(S) MISSING IN BIT MAPS
SALVAGE? yes

5397 files, 953123 used, 1075908 free (1724 frags, 134273 blocks, 0.1%
fragmentation)

***** FILE SYSTEM MARKED CLEAN *****

***** FILE SYSTEM WAS MODIFIED *****

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