Project

General

Profile

Actions

Bug #6340

closed

fsck hangs boot in background, fails to produce any action, resulting in broken firewall

Added by Kill Bill over 8 years ago. Updated about 7 years ago.

Status:
Resolved
Priority:
High
Category:
Operating System
Target version:
Start date:
05/10/2016
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
2.2.x
Affected Architecture:
All

Description

Hi, guys! (Yeah, still alive, eventually might get back to fixing something in pfSense. :-P)

Meanwhile - this fsck thing completely fails yet again... After a power failure (AMD64 full install, SSD HDD, 2.3.1 development branch, though that's very much irrelevant):

Starting syslog...done.
Starting Secure Shell Services...done.
Setting up polling defaults...done.
Setting up interfaces microcode...done.
Configuring loopback interface...done.
Creating wireless clone interfaces...done.
Configuring LAGG interfaces...done.
Configuring VLAN interfaces...done.
Configuring QinQ interfaces...done.
Configuring WAN interface...done.
Configuring LAN interface...done.
Configuring MODEMACCESS interface...done.
Configuring HEIPV6 interface...done.
Configuring CARP settings...done.
Syncing OpenVPN settings...done.

Here it hangs. Forever, until you press CTRL+C and type exit. After that:

^CEnter full pathname of shell or RETURN for /bin/sh:
# exit
Configuring crash dumps...
Using /dev/label/swap0 for dump device.
/dev/ufsid/567c0b01685c651a: NO WRITE ACCESS
/dev/ufsid/567c0b01685c651a: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.
Preen mode recommended running a check that will be performed now.
WARNING: Trying to recover filesystem from inconsistency...
** /dev/ufsid/567c0b01685c651a (NO WRITE)

USE JOURNAL? no

** Skipping journal, falling through to full fsck

SETTING DIRTY FLAG IN READ_ONLY MODE

UNEXPECTED SOFT UPDATE INCONSISTENCY
** 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
UNREF FILE I=5377154  OWNER=root MODE=100666
SIZE=0 MTIME=May 10 00:17 2016
CLEAR? no

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

SUMMARY INFORMATION BAD
SALVAGE? no

BLK(S) MISSING IN BIT MAPS
SALVAGE? no

324518 files, 886602 used, 12219169 free (8033 frags, 1526392 blocks, 0.1% fragmentation)

This will go on and on and on after every reboot. Broken connectivity, services not running, generally a huge mess. Unless you make the thing actually do something:

# touch /root/force_fsck
# reboot

After that:

Configuring crash dumps...
Using /dev/label/swap0 for dump device.
Forcing filesystem(s) check...
** /dev/ufsid/567c0b01685c651a

USE JOURNAL? yes

** SU+J Recovering /dev/ufsid/567c0b01685c651a
** Reading 33554432 byte journal from inode 4.

RECOVER? yes

** Building recovery table.
** Resolving unreferenced inode list.
** Processing journal entries.

WRITE CHANGES? yes

** 560 journal records in 50688 bytes for 35.35% utilization
** Freed 0 inodes (0 dirs) 89 blocks, and 0 frags.

***** FILE SYSTEM MARKED CLEAN *****
/dev/ufsid/567c0b01685c651a: FILE SYSTEM CLEAN; SKIPPING CHECKS
/dev/ufsid/567c0b01685c651a: clean, 12229386 free (8034 frags, 1527669 blocks, 0.1% fragmentation)
Filesystems are clean, continuing...
Mounting filesystems...

Normal boot follows; firewall working, routing working, packages started, sanity restored.

     ___
 ___/ f \
/ p \___/ Sense
\___/   \
    \___/

Welcome to pfSense 2.3.1-DEVELOPMENT on the 'pfSense' platform...

No core dumps found.
Creating symlinks......ELF ldconfig path: /lib /usr/lib /usr/lib/compat /usr/local/lib /usr/local/lib/ipsec /usr/local/lib/mysql /usr/local/lib/nss
32-bit compatibility ldconfig path: /usr/lib32
done.
External config loader 1.0 is now starting... ada0s1 ada0s1aw starting... ada0s1bw starting...
Launching the init system....... done.
Initializing.................. done.
Starting device manager (devd)...done.
Loading configuration......done.
Updating configuration...done.
Cleaning backup cache.................................done.
Setting up extended sysctls...done.
amdtemp0: <AMD CPU On-Die Thermal Sensors> on hostb3
Setting timezone...done.
Configuring loopback interface...done.
Starting syslog...done.
Starting Secure Shell Services...done.
Setting up polling defaults...done.
Setting up interfaces microcode...done.
Configuring loopback interface...done.
Creating wireless clone interfaces...done.
Configuring LAGG interfaces...done.
Configuring VLAN interfaces...done.
Configuring QinQ interfaces...done.
Configuring WAN interface...done.
Configuring LAN interface...done.
Configuring MODEMACCESS interface...done.
Configuring HEIPV6 interface...done.
Configuring CARP settings...done.
Syncing OpenVPN settings...done.
Configuring firewall..DUMMYNET 0 with IPv6 initialized (100409)
load_dn_sched dn_sched FIFO loaded
load_dn_sched dn_sched QFQ loaded
load_dn_sched dn_sched RR loaded
load_dn_sched dn_sched WF2Q+ loaded
load_dn_sched dn_sched PRIO loaded
...0 addresses deleted.
.done.
Starting PFLOG...done.
Setting up gateway monitors...done.
Synchronizing user settings...
done.
Starting webConfigurator...done.
Configuring CRON...done.
Starting DNS Resolver...done.
Starting NTP time client...done.
Configuring firewall.....0 addresses deleted.
0 addresses deleted.
.done.
Configuring IPsec VPN... done
Generating RRD graphs...done.
Starting syslog...done.
Starting CRON... done.
...
pfSense (pfSense) 2.3.1-DEVELOPMENT amd64 Mon May 09 12:21:57 CDT 2016
Bootup complete

Executive summary: UFS + its wannabe fsck -> utter POS.


Files

fsck_test.diff (1.43 KB) fsck_test.diff Renato Botelho, 05/10/2016 02:46 PM
pfsenseStability.csv (5.49 KB) pfsenseStability.csv brennen smith, 06/05/2017 11:38 PM
Actions

Also available in: Atom PDF