From owner-freebsd-fs@FreeBSD.ORG Tue Sep 16 09:19:32 2008 Return-Path: Delivered-To: freebsd-fs@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 491AC1065673 for ; Tue, 16 Sep 2008 09:19:32 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (unknown [IPv6:2a01:170:102f::2]) by mx1.freebsd.org (Postfix) with ESMTP id 9F6438FC0A for ; Tue, 16 Sep 2008 09:19:31 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (localhost [127.0.0.1]) by lurza.secnetix.de (8.14.3/8.14.3) with ESMTP id m8G9JUoX021477; Tue, 16 Sep 2008 11:19:30 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.3/8.14.3/Submit) id m8G9JTC7021476; Tue, 16 Sep 2008 11:19:29 +0200 (CEST) (envelope-from olli) Date: Tue, 16 Sep 2008 11:19:29 +0200 (CEST) Message-Id: <200809160919.m8G9JTC7021476@lurza.secnetix.de> From: Oliver Fromme To: freebsd-fs@FreeBSD.ORG, ahnjoan@gmail.com In-Reply-To: <5e575c8a0809151621t55810568wd16fde9b501997f2@mail.gmail.com> X-Newsgroups: list.freebsd-fs User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (FreeBSD/6.4-PRERELEASE-20080904 (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Tue, 16 Sep 2008 11:19:30 +0200 (CEST) Cc: Subject: Re: host hangs, ?can only drop to ddb after accessing a file that is owned by a non ?privileged user X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-fs@FreeBSD.ORG, ahnjoan@gmail.com List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Sep 2008 09:19:32 -0000 Ahnjoan Amous wrote: > A week or so ago we had a power bump and since then one of our servers > now hangs on access to one of two files. Just `ls -al` will cause the > machine to hang. The files are excel spreadsheets owned by a normal > user and served out by samba. The host does not panic when the files > are accessed but the only thing I can do is break in to ddb on the > serial console. > > Once inside of ddb I'm able to see which of the two files was being > accessed by typing in "show lockedvnods" and using the inode to > identify the file via the find command. I'm not able to remove the > files either as this causes the host to hang in the same manner. > > I really don't know anything about ddb other than how to type in "show > lockedvnods" so far. I can reproduce this behavior every time if > anyone would like me to trouble shoot this possible bug. One thing to > note this is a 5.2.1-Release so if it is even a bug it might be fixed > already. > > Most importantly does anyone have any thoughts on how I can remove > this file? Its accessible by my users and even with a preemptive > e-mail they seem to take delight in clicking the little icon twice and > watching me run down the hall... First and most importantly, I assume you have good backups. Unmount the file system, use clri(8) to zero out the broken inodes, then run fsck(8) to clean up, then mount the file system and restore the lost files from your backup. Finally, update your FreeBSD version, because 5.x is EoL and not supported anymore. In particular, you don't get security fixes for it anymore. If your users take delight in causing harm to your server, they could certainly do more serious things than just cause it to crash. By the way, if clri(8) or fsck(8) hang, too, or if the problem persists afterwards, chances are that the disk hardware is broken and should be replaced. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "I started using PostgreSQL around a month ago, and the feeling is similar to the switch from Linux to FreeBSD in '96 -- 'wow!'." -- Oddbjorn Steffensen