Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Aug 2007 20:21:42 +0100
From:      Christopher Key <cjk32@cam.ac.uk>
To:        freebsd-questions@freebsd.org
Subject:   fsck strangeness
Message-ID:  <46C746C6.5080202@cam.ac.uk>

next in thread | raw e-mail | index | archive | help
Hello,

I'm having some rather strange behaviour with fsck.

When I boot the system, it asserts that all the file systems are clean, 
but subsequently running an fsck on /dev/ad8s1e (mounted as /var) 
detects errors.  Even if this first check is run whilst the file system 
is mounted, and is hence run in NO WRITE mode, a second check doesn't 
find block errors.  If I then unmount the file system and check the 
disk, it's fine, as indeed it is if I unmount, remount, then check.  
However, if I then reboot, the process repeats, and an fsck immediately 
after reboot will find errors again.  If I bring the system up in single 
user mode, and run fsck either before or after mounting /var, it finds 
no errors.

I'm running 6.2_RELEASE with a custom kernel based upon generic-smp, but 
with a lot of unecessary bits removed, and geom_mirror compiled in.  I 
don't think it's the drive that's at fault, all the other partitions in 
the slice are fine, it's a fairly new drive, and it passes a self test 
quite happily.  Included below is a transcript that attempt to show 
what's going on in detail, is there anything else relevant?

Can anyone suggest what might be going on and how to fix it, or suggest 
some slightly better diagnostics?  Apologies if this is an RTFM issue, I 
have had a good dig through the handbook, but can't seem to find 
anything that helps.

Regards,

Chris


# fsck /dev/ad8s1e
** /dev/ad8s1e (NO WRITE)
** Last Mounted on /var
** Phase 1 - Check Blocks and Sizes
INCORRECT BLOCK COUNT I=706567 (4 should be 0)
CORRECT? no

INCORRECT BLOCK COUNT I=706583 (4 should be 0)
CORRECT? no

INCORRECT BLOCK COUNT I=706593 (80 should be 0)
CORRECT? no

INCORRECT BLOCK COUNT I=706594 (80 should be 0)
CORRECT? no

INCORRECT BLOCK COUNT I=706595 (4 should be 0)
CORRECT? no

INCORRECT BLOCK COUNT I=706598 (4 should be 0)
CORRECT? no

INCORRECT BLOCK COUNT I=730708 (4 should be 0)
CORRECT? no

INCORRECT BLOCK COUNT I=730779 (4 should be 0)
CORRECT? no

INCORRECT BLOCK COUNT I=730780 (4 should be 0)
CORRECT? no

INCORRECT BLOCK COUNT I=730781 (4 should be 0)
CORRECT? no

INCORRECT BLOCK COUNT I=730784 (4 should be 0)
CORRECT? no

INCORRECT BLOCK COUNT I=730799 (4 should be 0)
CORRECT? no

INCORRECT BLOCK COUNT I=730819 (24 should be 0)
CORRECT? no

INCORRECT BLOCK COUNT I=1036295 (4 should be 0)
CORRECT? no

INCORRECT BLOCK COUNT I=1036313 (48 should be 0)
CORRECT? no

INCORRECT BLOCK COUNT I=1036314 (4 should be 0)
CORRECT? no

INCORRECT BLOCK COUNT I=1036315 (4 should be 0)
CORRECT? no

INCORRECT BLOCK COUNT I=1036317 (4 should be 0)
CORRECT? no

INCORRECT BLOCK COUNT I=1036320 (4 should be 0)
CORRECT? no

INCORRECT BLOCK COUNT I=1036321 (4 should be 0)
CORRECT? no

INCORRECT BLOCK COUNT I=1036323 (4 should be 0)
CORRECT? no

INCORRECT BLOCK COUNT I=1036324 (4 should be 0)
CORRECT? no

INCORRECT BLOCK COUNT I=1719339 (12 should be 8)
CORRECT? no

INCORRECT BLOCK COUNT I=1742856 (4 should be 0)
CORRECT? no

** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
UNREF FILE  I=730782  OWNER=slimserv MODE=100644
SIZE=771 MTIME=Aug 18 16:27 2007
RECONNECT? no


CLEAR? no

UNREF FILE  I=730783  OWNER=slimserv MODE=100644
SIZE=1309 MTIME=Aug 18 16:27 2007
RECONNECT? no


CLEAR? no

UNREF FILE  I=730818  OWNER=slimserv MODE=100644
SIZE=10825 MTIME=Aug 18 16:27 2007
RECONNECT? no


CLEAR? no

UNREF FILE I=2049026  OWNER=slimserv MODE=100600
SIZE=0 MTIME=Aug 18 16:40 2007
CLEAR? no

UNREF FILE I=2049029  OWNER=slimserv MODE=100600
SIZE=0 MTIME=Aug 18 16:40 2007
CLEAR? no

UNREF FILE I=2049030  OWNER=slimserv MODE=100600
SIZE=0 MTIME=Aug 18 16:40 2007
CLEAR? no

UNREF FILE I=2049031  OWNER=slimserv MODE=100600
SIZE=0 MTIME=Aug 18 16:40 2007
CLEAR? no

UNREF FILE I=2049032  OWNER=slimserv MODE=100600
SIZE=0 MTIME=Aug 18 16:40 2007
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

1048 files, 53949 used, 8068123 free (643 frags, 1008435 blocks, 0.0% 
fragmentation)


# fsck /dev/ad8s1e
** /dev/ad8s1e (NO WRITE)
** 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=2049026  OWNER=slimserv MODE=100600
SIZE=0 MTIME=Aug 18 16:40 2007
CLEAR? no

UNREF FILE I=2049029  OWNER=slimserv MODE=100600
SIZE=0 MTIME=Aug 18 16:40 2007
CLEAR? no

UNREF FILE I=2049030  OWNER=slimserv MODE=100600
SIZE=0 MTIME=Aug 18 16:40 2007
CLEAR? no

UNREF FILE I=2049031  OWNER=slimserv MODE=100600
SIZE=0 MTIME=Aug 18 16:40 2007
CLEAR? no

UNREF FILE I=2049032  OWNER=slimserv MODE=100600
SIZE=0 MTIME=Aug 18 16:40 2007
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

1045 files, 54019 used, 8068133 free (653 frags, 1008435 blocks, 0.0% 
fragmentation)


# fsck /dev/ad8s1e
** /dev/ad8s1e (NO WRITE)
** 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=706574  OWNER=root MODE=100644
SIZE=219 MTIME=Aug 18 16:41 2007
RECONNECT? no


CLEAR? no

UNREF FILE  I=753708  OWNER=slimserv MODE=100644
SIZE=11518 MTIME=Aug 18 16:41 2007
RECONNECT? no


CLEAR? no

UNREF FILE I=2049026  OWNER=slimserv MODE=100600
SIZE=0 MTIME=Aug 18 16:40 2007
CLEAR? no

UNREF FILE I=2049029  OWNER=slimserv MODE=100600
SIZE=0 MTIME=Aug 18 16:40 2007
CLEAR? no

UNREF FILE I=2049030  OWNER=slimserv MODE=100600
SIZE=0 MTIME=Aug 18 16:40 2007
CLEAR? no

UNREF FILE I=2049031  OWNER=slimserv MODE=100600
SIZE=0 MTIME=Aug 18 16:40 2007
CLEAR? no

UNREF FILE I=2049032  OWNER=slimserv MODE=100600
SIZE=0 MTIME=Aug 18 16:40 2007
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

1045 files, 54019 used, 8068141 free (653 frags, 1008436 blocks, 0.0% 
fragmentation)


# umount -f /var


# mount /var


# fsck /dev/ad8s1e
** /dev/ad8s1e (NO WRITE)
** Last Mounted on /var
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
1040 files, 54019 used, 8068148 free (652 frags, 1008437 blocks, 0.0% 
fragmentation)


# reboot


# fsck /dev/ad8s1e
** /dev/ad8s1e (NO WRITE)
** Last Mounted on /var
** Phase 1 - Check Blocks and Sizes
INCORRECT BLOCK COUNT I=1036291 (4 should be 0)
CORRECT? no

** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
UNREF FILE  I=753684  OWNER=slimserv MODE=100644
SIZE=5971 MTIME=Aug 18 16:48 2007
RECONNECT? no


CLEAR? no

UNREF FILE I=2049026  OWNER=slimserv MODE=100600
SIZE=0 MTIME=Aug 18 16:44 2007
CLEAR? no

UNREF FILE I=2049029  OWNER=slimserv MODE=100600
SIZE=0 MTIME=Aug 18 16:44 2007
CLEAR? no

UNREF FILE I=2049030  OWNER=slimserv MODE=100600
SIZE=0 MTIME=Aug 18 16:44 2007
CLEAR? no

UNREF FILE I=2049031  OWNER=slimserv MODE=100600
SIZE=0 MTIME=Aug 18 16:44 2007
CLEAR? no

UNREF FILE I=2049032  OWNER=slimserv MODE=100600
SIZE=0 MTIME=Aug 18 16:44 2007
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

1045 files, 54030 used, 8068133 free (653 frags, 1008435 blocks, 0.0% 
fragmentation)


# fsck /dev/ad8s1e
** /dev/ad8s1e (NO WRITE)
** 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=2049026  OWNER=slimserv MODE=100600
SIZE=0 MTIME=Aug 18 16:44 2007
CLEAR? no

UNREF FILE I=2049029  OWNER=slimserv MODE=100600
SIZE=0 MTIME=Aug 18 16:44 2007
CLEAR? no

UNREF FILE I=2049030  OWNER=slimserv MODE=100600
SIZE=0 MTIME=Aug 18 16:44 2007
CLEAR? no

UNREF FILE I=2049031  OWNER=slimserv MODE=100600
SIZE=0 MTIME=Aug 18 16:44 2007
CLEAR? no

UNREF FILE I=2049032  OWNER=slimserv MODE=100600
SIZE=0 MTIME=Aug 18 16:44 2007
CLEAR? no

** Phase 5 - Check Cyl groups
1045 files, 54031 used, 8068136 free (648 frags, 1008436 blocks, 0.0% 
fragmentation)


# umount -f /var


# mount /var


# fsck /dev/ad8s1e
** /dev/ad8s1e (NO WRITE)
** Last Mounted on /var
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
1040 files, 54031 used, 8068136 free (648 frags, 1008436 blocks, 0.0% 
fragmentation)
#




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?46C746C6.5080202>