Subject: kern/7568: clean filesystem isn't?
To: None <gnats-bugs@gnats.netbsd.org>
From: None <mjacob@nas.nasa.gov>
List: netbsd-bugs
Date: 05/12/1999 14:53:00
>Number:         7568
>Category:       kern
>Synopsis:       clean filesystem isn't?
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed May 12 15:05:01 1999
>Last-Modified:
>Originator:     
>Organization:
	NASA Ames Research Center
>Release:        See below...
>Environment:
	
System: NetBSD brunner 1.4_BETA NetBSD 1.4_BETA (GENERIC) #0: Sat May 1 11:30:22 PDT 1999 ross@a:/usr/src/sys/arch/alpha/compile/GENERIC alpha



>Description:

An apparently clean filesystem wasn't.

I newfs'd a large (155GB) filesystem. I put a couple large files in it.
I umounted the filesystem. I did a forced fsck of the filesystem and got
a 'SUMMARY INFORMATION BAD' diagnostic:

brunner > df -k .
Filesystem  1K-blocks     Used    Avail Capacity  Mounted on
/dev/sd7a   158057244        4 150154376     0%    /mnt
brunner > swapctl -l 
Device      1024-blocks     Used    Avail Capacity  Priority
/dev/sd0b       1099340        8  1099332     0%    0
brunner > lmdd of=file bs=32k
^C623.22 MB in 24.52 seconds (25.4209 MB/sec)
brunner > df
Filesystem  1024-blocks     Used    Avail Capacity  Mounted on
/dev/sd0a       2975129   235894  2590478     8%    /
caves:/home     3985477  1947385  1838818    51%    /home
mfs:376           96655        1    91821     0%    /tmp
/dev/sd7a     158057244   638340 149516040     0%    /mnt
brunner > cd
brunner > root umount /mnt
brunner > root fsck /dev/rsd7a
** /dev/rsd7a
** File system is clean; not checking
brunner > root fsck -f /dev/rsd7a
** /dev/rsd7a
** File system is already clean
** Last Mounted on /mnt
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
SUMMARY INFORMATION BAD
SALVAGE? [yn] y

2 files, 159585 used, 39354726 free (14 frags, 4919339 blocks, 0.0% fragmentation)

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


It would be lovely if this was 'pilot error'. It's been claimed that
this disk device is 'flakey', but we've had the vendor swear that it's
okay recently.

Here's more information:


brunner > root disklabel sd7
# /dev/rsd7c:
type: SCSI
disk: EV1000
label: fictitious
flags:
bytes/sector: 512
sectors/track: 64
tracks/cylinder: 64
sectors/cylinder: 4096
cylinders: 77788
total sectors: 318620160
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # milliseconds
track-to-track seek: 0  # milliseconds
drivedata: 0 

3 partitions:
#        size   offset     fstype   [fsize bsize   cpg]
  a: 318620160        0     4.2BSD     4096 32768   347   # (Cyl.    0 - 77788*)
  c: 318620160        0     unused        0     0         # (Cyl.    0 - 77788*)




Endian little-endian magic	11954	time	Wed May 12 14:47:19 1999
cylgrp	dynamic	inodes	4.4BSD	fslevel 3
nbfree	4919339	ndir	1	nifree	9907196	nffree	14
ncg	225	ncyl	77789	size	39827520	blocks	39514311
bsize	32768	shift	15	mask	0xffff8000
fsize	4096	shift	12	mask	0xfffff000
frag	8	shift	3	fsbtodb	3
cpg	347	bpg	22208	fpg	177664	ipg	44032
minfree	5%	optim	time	maxcontig 2	maxbpg	8192
rotdelay 0ms	headswitch 0us	trackseek 0us	rps	60
ntrak	64	nsect	64	npsect	64	spc	4096
symlinklen 60	trackskew 0	interleave 1	contigsumsize 2
nindir	8192	inopb	256	nspf	8
sblkno	8	cblkno	16	iblkno	24	dblkno	1400
sbsize	4096	cgsize	32768	cgoffset 8	cgmask	0xffffffc0
csaddr	1400	cssize	4096	shift	11	mask	0xfffff800
cgrotor	2	fmod	0	ronly	0	clean	0x01
blocks available in each of 1 rotational positions
cylinder number 0:
   position 0:	    0    1    2    3    4    5    6    7    8    9   10   11
		   12   13   14   15   16   17   18   19   20   21   22   23
		   24   25   26   27   28   29   30   31   32   33   34   35
		   36   37   38   39   40   41   42   43   44   45   46   47
		   48   49   50   51   52   53   54   55   56   57   58   59
		   60   61   62   63
cs[].cs_(nbfree,ndir,nifree,nffree):
	(13826,1,44028,14) (13840,0,44032,0) (18485,0,44032,0) (22034,0,44032,0) 
	(22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) 
	(22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) 
	(22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) 
	(22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) 
	(22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) 
	(22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) 
	(22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) 
	(22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) 
	(22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) 
	(22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) 
	(22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) 
	(22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) 
	(22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) 
	(22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) 
	(22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) 
	(22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) 
	(22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) 
	(22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) 
	(22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) 
	(22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) 
	(22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) 
	(22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) 
	(22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) 
	(22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) 
	(22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) 
	(22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) 
	(22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) 
	(22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) 
	(22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) 
	(22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) 
	(22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) 
	(22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) 
	(22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) 
	(22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) 
	(22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) 
	(22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) 
	(22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) 
	(22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) 
	(22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) 
	(22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) 
	(22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) 
	(22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) 
	(22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) 
	(22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) 
	(22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) 
	(22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) 
	(22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) 
	(22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) 
	(22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) 
	(22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) 
	(22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) 
	(22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) 
	(22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) 
	(22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) 
	(22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) (22034,0,44032,0) 
	(3674,0,44032,0) 
cylinders in last group 61
blocks in last group 3904


cg 0:
magic	90255	tell	10000	time	Wed May 12 14:37:40 1999
cgx	0	ncyl	347	niblk	-21504	ndblk	177664
nbfree	13826	ndir	1	nifree	44028	nffree	14
rotor	1520	irotor	0	frotor	1520
frsum	0	0	0	0	0	0	2
sum of frsum: 14
clusters 1-1:	0
clusters size 2 and over: 1
clusters free:	8382-22207
iused:	0-3
free:	1401-1407, 1409-1415, 67056-177663
b:

[ Shortened by the netbsd-bugs-owner ]
  80230 lines == 1.37MB deleted.
  This is too big to be send to netbsd-bugs.
  Hint: You better add a URL in the pr where you put such huge outputs.
  See http://www.NetBSD.org/cgi-bin/query-pr-single.pl?number=7568 if
  you need the full cylinder group output.

>How-To-Repeat:

>Fix:

>Audit-Trail:
>Unformatted: