From owner-freebsd-questions@FreeBSD.ORG Thu Nov 27 13:44:08 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 E00E91065677 for ; Thu, 27 Nov 2008 13:44:07 +0000 (UTC) (envelope-from sonic2000gr@gmail.com) Received: from ik-out-1112.google.com (ik-out-1112.google.com [66.249.90.181]) by mx1.freebsd.org (Postfix) with ESMTP id 66EF18FC25 for ; Thu, 27 Nov 2008 13:44:07 +0000 (UTC) (envelope-from sonic2000gr@gmail.com) Received: by ik-out-1112.google.com with SMTP id c21so917856ika.3 for ; Thu, 27 Nov 2008 05:44:06 -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=Cu7N8mN1MD6eWjD432GBWQd0P+foDU4iXkTb5+06AiI=; b=in0fOe74IarwhqZEVqWnjfRIU54xbhtNGkPX8jLy0Zjld+ClDwUFCxGvxztbyf2/XT D0fPs97Qu4/U9bCWMqAPH2kgYS8MhdfafE1CdMlw9AffWBcsrHO+Uay8q89a0z7ztFw4 rZvflp2b39UdNVHtkIJBT7j9QdX54Igbt7LAY= 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=B9+9yEcSHYBhCFPNwZYbfiFFc4A07W8DnW8f65dlEV0CARM9/0UGYAgsyL43odXks0 F2xEBMbbZLTW1dZ7pf2KPwDaqwa/lOz07CxRxIl1JsfTqQpC39lrI2TH33N6WUg2iu6b 5eiSLdHU/pXstegv8jh5JABQSvnq6n7afgiuU= Received: by 10.210.58.17 with SMTP id g17mr7451971eba.130.1227793445958; Thu, 27 Nov 2008 05:44:05 -0800 (PST) Received: from atlantis.dyndns.org (athedsl-310702.home.otenet.gr [85.72.69.76]) by mx.google.com with ESMTPS id i4sm219290nfh.1.2008.11.27.05.44.03 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 27 Nov 2008 05:44:04 -0800 (PST) Message-ID: <492EA421.8090800@gmail.com> Date: Thu, 27 Nov 2008 15:44:01 +0200 From: Manolis Kiagias User-Agent: Thunderbird 2.0.0.17 (X11/20081011) MIME-Version: 1.0 To: Rick Janssen References: <492E32C5.9070204@gmail.com> In-Reply-To: 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: Thu, 27 Nov 2008 13:44:08 -0000 Rick Janssen wrote: >> 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 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). >> > > The disk is a new SATA model (1TB Samsung), so that lessens the chances of > the disk itself being defective somewhat. The mainboard is a MSI K9A2VM-F > (AMD 780V / AMD SB700 chipsets) > > In fact, new disks *can* be faulty. Usually, the faults surface few days / weeks after initial use. I don't really trust a new disk on my system until it runs for a couple of months. It will then run for years until it reaches end-of-life due to wear. I still suggest you try testing it with some programs like sysutils/smartmontools >> 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. >> > > The connection is something similar. Should be no cause for the slowness. > Since it works fine on the LAN, you need to check the router though. Maybe some setting is slowing it down. Is it one of these cheap DSL routers? You may want to turn off various features on the router like firewalls, intrusion detections and so on (it goes without saying that you will secure your FreeBSD system instead)