From owner-freebsd-stable@FreeBSD.ORG Wed May 13 12:50:06 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 978C91065677 for ; Wed, 13 May 2009 12:50:06 +0000 (UTC) (envelope-from freebsd-stable@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 204038FC19 for ; Wed, 13 May 2009 12:50:06 +0000 (UTC) (envelope-from freebsd-stable@m.gmane.org) Received: from root by ciao.gmane.org with local (Exim 4.43) id 1M4DuN-0006fV-CD for freebsd-stable@freebsd.org; Wed, 13 May 2009 12:50:03 +0000 Received: from lara.cc.fer.hr ([161.53.72.113]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 13 May 2009 12:50:03 +0000 Received: from ivoras by lara.cc.fer.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 13 May 2009 12:50:03 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-stable@freebsd.org From: Ivan Voras Date: Wed, 13 May 2009 14:46:26 +0200 Lines: 67 Message-ID: References: <2c2c47aa0905121110i6355930bwce3a9c6afb117d4d@mail.gmail.com> <200905131124.16897.milu@dat.pl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig8298E08ADBFA12A7A9FF1D3B" X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: lara.cc.fer.hr User-Agent: Thunderbird 2.0.0.21 (X11/20090409) In-Reply-To: <200905131124.16897.milu@dat.pl> X-Enigmail-Version: 0.95.7 Sender: news Subject: Re: File system corruption X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 May 2009 12:50:07 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig8298E08ADBFA12A7A9FF1D3B Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Maciej Milewski wrote: > Tuesday 12 May 2009 20:10:57 Pat Wendorf napisa=C5=82(a): >> I have a co-lo server I've been maintaining for a few years now runnin= g IDE >> drives on a mostly terrible UPS. A few months ago, when it returned f= rom a >> power outage (running 6.2-R) I started noticing the following in my da= ily >> security email: >> >> Checking setuid files and devices: >> find: >> /var/db/portsnap/files/2dc95ddff37a8091239e83bf7e3ce5a2c285b027891ced1= 919d7 >> 6c9947c5b7db.gz: Bad file descriptor >> find: >> /var/db/portsnap/files/52abe8c91385b12272f13f4d20896067d9ba70bdec1fa25= 75025 >> 858bd3e93718.gz: Bad file descriptor >> find: /var/lost+found/#238237: Bad file descriptor >> >> I verified that these files return the same result when trying to do a= ny >> operation on them (including ls in the directory). >> >> I've managed to ignore the problem for a while now, and even upgraded = to >> 7.2, but I'm not sure if it will cause problems later on. So the ques= tion >> is, without access to the console, how would I fix this? >=20 >=20 >=20 > I think tere is a need for fsck on this partition. > /var is used by many daemons for logging, mailqueue etc., so maybe the = first=20 > thing to do would be to stop as many daemons as possible and leaving on= ly ssh=20 > to get to this system remotely? > I really don't know how much dangerous could be unmounting /var on a li= ve=20 > system in such case. Not critically dangerous - it can be done with care. Of course, it's best to reboot afterwards :) --------------enig8298E08ADBFA12A7A9FF1D3B Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkoKwSIACgkQldnAQVacBchSkwCg1SBtT3r/LgrPdDUwD6oUB4jf gUYAnj+1S1/rcfVuW8XOaWink5XmDIk5 =3IrA -----END PGP SIGNATURE----- --------------enig8298E08ADBFA12A7A9FF1D3B--