Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Apr 2004 15:05:16 +0100
From:      Ollie Cook <ollie@uk.clara.net>
To:        freebsd-stable@freebsd.org
Subject:   Re: filesystem corruption with 1TB filesystem, 4.9-STABLE, twe
Message-ID:  <20040419140516.GL5039@mutare.noc.clara.net>
In-Reply-To: <20040418211852.GA67452@mutare.noc.clara.net>
References:  <20040418211852.GA67452@mutare.noc.clara.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Apr 18, 2004 at 10:18:53PM +0100, Ollie Cook wrote:
> Hi,
> 
> I am experiencing filesystem corruption while using a 1TB (appx.) partition
> under 4.9-STABLE (sources from Mar 17) and an 8-port 3ware ATA RAID card (twe
> device driver). The RAID set comprises 5x250GB ATA disks.
> 
> The kernel logs such messages as:
> 
> Apr 17 16:25:37 heman /kernel: free inode /clara/170175645 had 137391860 blocks
> Apr 17 17:18:29 heman /kernel: free inode /clara/169969279 had 1803039330 blocks
> Apr 17 18:06:38 heman /kernel: free inode /clara/171086221 had 544501359 blocks

*snip*

I have some further details which I hope might shed some more light on this
problem. Accessing some files which appear (from a directory listing for
example) to have been stored correctly results in 'Bad file descriptor'. This
is with a freshly checked and clean filesystem.

I say 'clean', but after fsck declares it clean, another pass through fsck will
diagnose further errors. This is without mounting the filesystem between
passes.

I ran a few simple tests and was able to ascertain that the open(2) and read(2)
system calls don't return errors but fstat(2) does return EBADF.

su-2.05b# ls | grep 1071701821.78602.aether.uk.clara.net
1071701821.78602.aether.uk.clara.net
su-2.05b# ls  1071701821.78602.aether.uk.clara.net
ls: 1071701821.78602.aether.uk.clara.net: Bad file descriptor

Any assistance in diagnosing this would be greatly appreciated.

Yours,

Ollie

-- 
Oliver Cook    Systems Administrator, Claranet UK
ollie@uk.clara.net               +44 20 7903 3065



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