From owner-freebsd-questions@FreeBSD.ORG Wed Apr 18 21:09:45 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E768816A40D for ; Wed, 18 Apr 2007 21:09:45 +0000 (UTC) (envelope-from cyberleo@cyberleo.net) Received: from pizzabox.cyberleo.net (alpha.cyberleo.net [198.145.45.10]) by mx1.freebsd.org (Postfix) with ESMTP id C4D1413C4BE for ; Wed, 18 Apr 2007 21:09:45 +0000 (UTC) (envelope-from cyberleo@cyberleo.net) Received: (qmail 57669 invoked from network); 18 Apr 2007 21:09:42 -0000 Received: from adsl-75-3-93-223.dsl.chcgil.sbcglobal.net (HELO ?172.16.44.14?) (cyberleo@cyberleo.net@75.3.93.223) by alpha.cyberleo.net with ESMTPA; 18 Apr 2007 21:09:42 -0000 Message-ID: <46268919.1080301@cyberleo.net> Date: Wed, 18 Apr 2007 16:09:22 -0500 From: CyberLeo Kitsana User-Agent: Thunderbird 1.5 (X11/20051201) MIME-Version: 1.0 To: Roland Smith , FreeBSD Questions References: <4623843B.40006@cyberleo.net> <20070416170825.GA91459@slackbox.xs4all.nl> <462449C2.9000302@cyberleo.net> <20070416222437.GA1924@slackbox.xs4all.nl> In-Reply-To: <20070416222437.GA1924@slackbox.xs4all.nl> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Subject: Re: dump/restore corrupted filesystems 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, 18 Apr 2007 21:09:46 -0000 Roland Smith wrote: >> Sorry if I wasn't clear. Most all of the data is readable and complete >> if I mount the filesystem read-only. It just panics the box when mounted >> read/write, and fsck can't fix the damage. > > That might be worth filing a PR for, especially the panics. > > Exactly what is damaged? Garbage in files? Wrong inode counts? I've had > unclean filesystems because of panics, but nothing fsck_ffs couldn't > fix. > > You might want to check the hardware too. Use smartmontools in case of > (S)ATA drives. Smart says that the drives are fine, as does the manufacturer's disk fitness tools. All the files that are readable contain correct data, but the files that are corrupt are totally not readable, and cannot even be removed manually: --8<-- rsync: readlink "/raid/Backup/Pizzabox/2007-02-23/cyberleo/secondlife/linux/SecondLife_i686_1_13_2_15/skins/xui/es" failed: Bad file descriptor (9) rsync: readlink "/raid/Backup/Pizzabox/2007-02-23/cyberleo/secondlife/linux/SecondLife_i686_1_13_2_15/skins/xui/fr" failed: Bad file descriptor (9) --8<-- fsck_ufs dies after about 30 minutes of grinding with the following: --8<-- ** Phase 2 - Check Pathnames DIRECTORY CORRUPTED I=93409222 OWNER=1002 MODE=40755 SIZE=512 MTIME=Feb 10 00:49 2007 DIR=? UNEXPECTED SOFT UPDATE INCONSISTENCY SALVAGE? no MISSING '.' I=93409222 OWNER=1002 MODE=40755 SIZE=512 MTIME=Feb 10 00:49 2007 DIR=? UNEXPECTED SOFT UPDATE INCONSISTENCY CANNOT FIX, FIRST ENTRY IN DIRECTORY CONTAINS UNEXPECTED SOFT UPDATE INCONSISTENCY fsck_ufs: inoinfo: inumber -1170056596 out of range --8<-- (full output is at http://home.cyberleo.net/cyberleo/workspace/Zip/Bugs/fbsd-20070320-corr/saba-fsck-raid.txt ) It's possible this might be a result of the odd interaction between geom_raid5 and UFS, as discovered in January ( http://www.nabble.com/geom_raid5-livelock--p8304142.html ), but I can't be sure. I've already chalked this up to just an unfortunate occurrence, as the circumstances that caused the corruption in the first place are likely either long gone or so obscure as to be nearly impossible for me to root out. > Looking at /usr/src/sbin/dump/traverse.c, dump traverses the used > inodes list and all directories. So if any of these is corrupt, your > dump will be too. And if the contents of the inodes is corrupted, so > will the dump. Thanks for this insight. I'll avoid dump/restore and just use manual copying for now. -- Fuzzy love, -CyberLeo Technical Administrator CyberLeo.Net Webhosting http://www.CyberLeo.Net Furry Peace! - http://www.fur.com/peace/