From owner-freebsd-stable@FreeBSD.ORG Mon Apr 19 07:05:17 2004 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 86D5816A4CE for ; Mon, 19 Apr 2004 07:05:17 -0700 (PDT) Received: from mutare.noc.clara.net (mutare.noc.clara.net [195.8.70.95]) by mx1.FreeBSD.org (Postfix) with ESMTP id 54A8243D46 for ; Mon, 19 Apr 2004 07:05:17 -0700 (PDT) (envelope-from ollie@mutare.noc.clara.net) Received: from ollie by mutare.noc.clara.net with local (Exim 4.30) id 1BFZOe-0003RC-E5 for freebsd-stable@freebsd.org; Mon, 19 Apr 2004 15:05:16 +0100 Date: Mon, 19 Apr 2004 15:05:16 +0100 From: Ollie Cook To: freebsd-stable@freebsd.org Message-ID: <20040419140516.GL5039@mutare.noc.clara.net> References: <20040418211852.GA67452@mutare.noc.clara.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040418211852.GA67452@mutare.noc.clara.net> User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD 4.9-STABLE i386 X-NCC-RegID: uk.claranet Sender: Ollie Cook X-Envelope-To: freebsd-stable@freebsd.org X-Clara-Scan: content scanned according to recipient preferences Subject: Re: filesystem corruption with 1TB filesystem, 4.9-STABLE, twe X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Apr 2004 14:05:17 -0000 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