From owner-freebsd-current@FreeBSD.ORG Tue Mar 3 15:36:27 2009 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8DEE91065770 for ; Tue, 3 Mar 2009 15:36:27 +0000 (UTC) (envelope-from gavin@FreeBSD.org) Received: from buffy.york.ac.uk (buffy.york.ac.uk [144.32.226.160]) by mx1.freebsd.org (Postfix) with ESMTP id 0B7E18FC14 for ; Tue, 3 Mar 2009 15:36:26 +0000 (UTC) (envelope-from gavin@FreeBSD.org) Received: from buffy.york.ac.uk (localhost [127.0.0.1]) by buffy.york.ac.uk (8.14.3/8.14.3) with ESMTP id n23FaP2n054451; Tue, 3 Mar 2009 15:36:25 GMT (envelope-from gavin@FreeBSD.org) Received: (from ga9@localhost) by buffy.york.ac.uk (8.14.3/8.14.3/Submit) id n23FaPlN054450; Tue, 3 Mar 2009 15:36:25 GMT (envelope-from gavin@FreeBSD.org) X-Authentication-Warning: buffy.york.ac.uk: ga9 set sender to gavin@FreeBSD.org using -f From: Gavin Atkinson To: Cache In-Reply-To: References: Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Tue, 03 Mar 2009 15:36:25 +0000 Message-Id: <1236094585.46497.1.camel@buffy.york.ac.uk> Mime-Version: 1.0 X-Mailer: Evolution 2.22.2 FreeBSD GNOME Team Port Cc: freebsd-fs@FreeBSD.org, freebsd-current@FreeBSD.org Subject: Re: Help! zpool corrupted! X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Mar 2009 15:36:28 -0000 On Tue, 2009-03-03 at 00:45 +0300, Cache wrote: > I have FreeBSD 8.0-CURRENT r188913M (amd64) on notebook with dual core > Turion and 4G of RAM. Disk controller is AMD SB600. Single HDD - > SATA-150 250G WD2500BEVS, ad4 at ata2, formatted with one ufs root > partition 256M (ad4s1a) and ZFS pool (ver. 6 from FreeBSD 7-STABLE, > ad4s1d) on rest of the disk. On ZFS pool I have about ten > datasets: /root /usr /home /usr/src etc. > > Now I have zpool status "One or more devices has experienced an > error...". When I run scrubing, I see many errors in pool. Every scrub > after reboot displays different amount of errors: 47, 176 - or ~24000. > Disk and disk controller seems to be OK, checked with mhdd, but with > hw.ata.ata_dma=1 there are error messages in console sometimes > (something like 'DMA error'. Sorry, I can't explain its. I don't save > its last time and now trying to reproduce). > > When I set hw.ata.ata_dma=0 in loader.conf, there are no errors in > console. > > With 'zfs mount -a' command terminal not returns command prompt, but > system not freezes - any typing echoed to display and ctrl-alt-del > reboots system as expected. I tried to mound datasets manually - > system became thinking on /home and /usr. > > Does anybody know, how can I restore those two datasets or just make > its temporary accessible for retrieving data? Any HOWTOs? I have some > important data and many polished app configs on /home and just not > want one more time installing of ~1000 ports... And yes, I stupid, > because last backup was long time ago... :( Can you reboot with your last kernel and see if that fixes things? There was apparently a window where ATA drives could return data that was corrupted - but the on-disk data was untouched. This only happened for particular controllers, but r188913 is inside the window where there were problems. If reverting the kernel fixes things for you, I believe you should be fine just updating again to the code as of today. Gavin