Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Nov 2008 01:18:47 +0200
From:      Manolis Kiagias <sonic2000gr@gmail.com>
To:        Rick Janssen <Rick.Janssen@phil.uu.nl>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Filesystem problems at boot and shutdown?
Message-ID:  <492DD957.9050407@gmail.com>
In-Reply-To: <5ddbef2ccbae93c798cde8fd35544dc7.squirrel@webmail-students.phil.uu.nl>
References:  <5ddbef2ccbae93c798cde8fd35544dc7.squirrel@webmail-students.phil.uu.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
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<READY,DSC,ERROR> error=4<ABORTED> 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.



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