From owner-freebsd-questions@FreeBSD.ORG Wed Nov 26 23:18:54 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 74D5B106564A for ; Wed, 26 Nov 2008 23:18:54 +0000 (UTC) (envelope-from sonic2000gr@gmail.com) Received: from ey-out-2122.google.com (ey-out-2122.google.com [74.125.78.27]) by mx1.freebsd.org (Postfix) with ESMTP id E4D308FC18 for ; Wed, 26 Nov 2008 23:18:53 +0000 (UTC) (envelope-from sonic2000gr@gmail.com) Received: by ey-out-2122.google.com with SMTP id 6so291600eyi.7 for ; Wed, 26 Nov 2008 15:18:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=p4Q04/BAyx8im8BAGx6qRq5uaBsRuVO8qfmmoR2zIA0=; b=fZaD5gtpkvRuD3kA4Bciu8eq9pXKLUa2YHsJTkZLJaDKNqPF5SU5Qa6hoHOh3u+yOI +FOavkWA2imGxjlAaY37VEjnZflw3vNpQPX1rGLZJa7dNjwFQaCkwaAEFAkSNk6KBuwt O9gag/xqsitgA69Wr35fejgrq2byUj9m0aGiE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=GbIeWomT5agSRsFXMRIcfmiLe6yPVYfBvjSIvlhcnUnKPu1peU5I2PyZQ00YRt14nK 3TohZR4l4J7hnT/1MUwxc0CPV5W62BKYQzS46RLXZzN8psGKqo0/KjROPDiOvYOqi8xE jUNMeq7tgBiRB7EZp69ee6r6uNNqu4Y1jbyOc= Received: by 10.210.127.10 with SMTP id z10mr6633943ebc.195.1227741532785; Wed, 26 Nov 2008 15:18:52 -0800 (PST) Received: from atlantis.dyndns.org (athedsl-310702.home.otenet.gr [85.72.69.76]) by mx.google.com with ESMTPS id 20sm2104550eyc.58.2008.11.26.15.18.49 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 26 Nov 2008 15:18:51 -0800 (PST) Message-ID: <492DD957.9050407@gmail.com> Date: Thu, 27 Nov 2008 01:18:47 +0200 From: Manolis Kiagias User-Agent: Thunderbird 2.0.0.17 (X11/20081011) MIME-Version: 1.0 To: Rick Janssen References: <5ddbef2ccbae93c798cde8fd35544dc7.squirrel@webmail-students.phil.uu.nl> In-Reply-To: <5ddbef2ccbae93c798cde8fd35544dc7.squirrel@webmail-students.phil.uu.nl> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Filesystem problems at boot and shutdown? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Nov 2008 23:18:54 -0000 Rick Janssen wrote: > I've been playing around with FreeBSD for some time now, still being > unable to solve some problems. Let me explain. > > I'm trying to run a webserver on the machine. Just basic, nothing too > fancy. Problem concerns the following: The website served is speedy as > expected when accessed from local LAN, but when accessed from WAN via > router, it's realy slow. So, to do some tests, this afternoon I requested > some pages from an computer outside my LAN. Server was very slow again, > even ssh slowed to a crawl. Suddenly, without reason I know off, > everything sped up. I issued a reboot to check if the problem might have > been 'solved'. This took a long time. > > Back home I checked the logs. It now appeared the long reboot-time was > caused by a Syncing disk anomaly, which happens when the system prepares > for shutting down. > > Nov 26 22:38:12 server kernel: Syncing disks, vnodes remaining...1 1 1 1 1 > 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 > 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 timed out > Nov 26 22:38:12 server kernel: Waiting (max 60 seconds) for system process > `bufdaemon' to stop...done > Nov 26 22:38:12 server kernel: Syncing disks, buffers remaining... 184 185 > 186 1 185 185 185 185 184 184 185 185 185 184 184 185 1 184 184 184 184 > 185 185 185 1 184 184 184 184 184 185 184 184 185 185 1 185 184 184 184 > 184 184 184 1 185 184 184 184 184 185 184 184 185 1 185 184 184 184 184 > 184 184 185 1 184 184 185 184 184 184 184 185 184 184 185 1 185 185 184 > 184 184 185 184 184 184 185 1 184 184 185 184 184 185 184 184 185 185 184 > 184 184 184 184 1 184 184 184 1 184 184 185 1 185 184 184 1 184 185 184 > 184 185 185 184 184 ... etc etc... > Nov 26 22:38:12 server kernel: Final sync complete > > So I figured, might as well run fschk -y in single user mode to fix > potential problems. Now I got some new errors: > > Nov 26 20:48:11 server kernel: ad4: WARNING - WRITE_DMA48 UDMA ICRC error > (retrying request) LBA=1364750271 > Nov 26 20:48:11 server kernel: ad4: FAILURE - WRITE_DMA48 > status=51 error=4 LBA=1364750271 > Nov 26 20:48:11 server kernel: > g_vfs_done():ad4s1g[WRITE(offset=682932174848, length=131072)]error = 5 > > So far, nothing serious has followed from these errors I know off. They > only happen sporadically, during reboots. > > Are these to problems even related, or am I just unlucky? Anyone has some > suggestions to fix them? > > Regards, > Rick > > Unless there is some incompatibility between FreeBSD -> Your disk controller -> Your disk, my best guess is you have a failing disk. I would also suggest you check cables, connections (I guess this is an ATA disk so you may wish the check whether the flat cable is the 80-conductor type and is plugged in correctly). Hopefully, if you are just playing with the system, you don't have any critical data in there, otherwise I would suggest you back up immediately. Do you have a spare disk to try and see what happens? Whether your other problem depends on this: It could be, since your webserver might be trying to read from a faulty area and keep retrying. Or indeed there is some incompatibility and the disk is constantly under-performing. You did not mention the speed of you WAN connection, but FWIW I am running a webserver behind a 1Mbps/256Kbps ADSL line and response is good enough. SSH is definitely good enough to use in long vi sessions, with lengthy documents.