From owner-freebsd-questions Wed Mar 19 6:57:57 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CE1E437B401 for ; Wed, 19 Mar 2003 06:57:53 -0800 (PST) Received: from mx1.clickcom.com (mx2.clickcom.com [209.198.22.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 05BFF43FA3 for ; Wed, 19 Mar 2003 06:57:53 -0800 (PST) (envelope-from jsmailing@clickcom.com) Received: from aesop (calefaction.clickcom.com [209.198.22.19]) by mx1.clickcom.com (email) with ESMTP id 6922123DDF3; Wed, 19 Mar 2003 09:57:52 -0500 (EST) From: "John Straiton" To: "'Andy Farkas'" Cc: Subject: RE: Question about background FSCK Date: Wed, 19 Mar 2003 09:52:32 -0500 Message-ID: <002401c2ee27$304245a0$1916c60a@win2k.clickcom.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal In-Reply-To: <20030319231247.B12616-100000@hewey.af.speednet.com.au> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Thanks for the idea. While I'm not against the idea of the disk dying, this is reproduceable quite reliably. Foreground fsck -y in single user mode works in about 2 minutes (for the 119GB slice) flawlessly every time and background fsck always hangs the machine. Additionally, the machine is about a week old Dell Poweredge 1650. While we all know new != works, it's less likely than a machine with a hard drive that's been in there awhile. Unless there's something radically different about how fsck works in those two fashions, I'm going to assume the reproducability and the fact that I'm having similar problems on two totally different machines in different setups (IDE vs SCSI, P4 vs P3, Dell vs HP) means that a dying disk is not the problem I'm having. So I ask the list again: Is there a way to disable the background checking of disks? John Straiton jks@clickcom.com Clickcom, Inc 704-365-9970x101 > -----Original Message----- > From: Andy Farkas [mailto:andyf@speednet.com.au] > Sent: Wednesday, March 19, 2003 8:18 AM > To: John Straiton > Cc: freebsd-questions@FreeBSD.ORG > Subject: Re: Question about background FSCK > > > On Tue, 18 Mar 2003, John Straiton wrote: > > > While I appreciate the background fsck's that 5.0 provides, > it appears > > that there are problems with writing to a drive that is still under > > the scrutiny of a fsck (tell me if I'm wrong). > > > > 'Fer instance, today I brought up a machine that has a 119GB /home > > partition and then tried to FTP to it. The FTP got to 32kB and > > hung.... Attempts to reconnect resulted in connections but the > > inability to STOR. > > > > When I do a top, I can see > > > > PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU > > COMMAND > > 450 root -4 4 632K 376K bufwai 0:01 0.00% > 0.00% fsck_ufs > > > > So I guess it's still running. > > Maybe not - 'bufwai' says that its waiting for something and > 0.00% indicates thats its not actually running anything on the CPU. > > My guess is that the disk is dying and taking a long time to > comlete IO. Do a checkup on your disk.. > > > Here's the question: > > I need a solution so that this machine is immediately > available when > > it starts taking connections into inetd. What options have > I on this > > problem? Is there an override to the write-deny (and if so, > what risks > > inclusive to it) or a way to keep the machine from coming > up until the > > fsck is done? (ala 4.X style..) > > > > I have a machine at home where the boot drive is 160GB that would > > benefit from the answer as well. If it has to fsck, I have to > > currently take it to single-user because if I let it > background fsck, > > the damn thing will hang (still process packets through the > NATd but > > you can't type at all or login for example) a few moments after the > > login: prompt shows up. > > > > Thanks, > > John Straiton > > jks@clickcom.com > > Clickcom, Inc > > 704-365-9970x101 > > > > -- > > :{ andyf@speednet.com.au > > Andy Farkas > System Administrator > Speednet Communications > http://www.speednet.com.au/ > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message