From owner-freebsd-current@FreeBSD.ORG Sun May 24 23:24:34 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 812E5106564A for ; Sun, 24 May 2009 23:24:34 +0000 (UTC) (envelope-from freebsd-current@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 090CE8FC0C for ; Sun, 24 May 2009 23:24:33 +0000 (UTC) (envelope-from freebsd-current@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1M8N3N-0005a7-OG for freebsd-current@freebsd.org; Sun, 24 May 2009 23:24:29 +0000 Received: from 93-138-9-29.adsl.net.t-com.hr ([93.138.9.29]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 24 May 2009 23:24:29 +0000 Received: from ivoras by 93-138-9-29.adsl.net.t-com.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 24 May 2009 23:24:29 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-current@freebsd.org From: Ivan Voras Date: Mon, 25 May 2009 01:24:09 +0200 Lines: 54 Message-ID: References: <4E6E325D-BB18-4478-BCFD-633D6F4CFD88@exscape.org> <4FE794E9-075D-4563-B395-BD5E459937DF@exscape.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig5E56879B976C42ACDC76D810" X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 93-138-9-29.adsl.net.t-com.hr User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: <4FE794E9-075D-4563-B395-BD5E459937DF@exscape.org> X-Enigmail-Version: 0.95.7 Sender: news Subject: Re: ZFS panic under extreme circumstances (2/3 disks 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: Sun, 24 May 2009 23:24:34 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig5E56879B976C42ACDC76D810 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Thomas Backman wrote: >=20 > On May 24, 2009, at 09:02 PM, Thomas Backman wrote: >=20 >> So, I was playing around with RAID-Z and self-healing, when I decided >> to take it another step and corrupt the data on *two* disks (well, >> files via ggate) and see what happened. I obviously expected the pool >> to go offline, but I didn't expect a kernel panic to follow! >> >> What I did was something resembling: >> 1) create three 100MB files, ggatel create to create GEOM providers >> from them >> 2) zpool create test raidz ggate{1..3} >> 3) create a 100MB file inside the pool, md5 the file >> 4) overwrite 10~20MB (IIRC) of disk2 with /dev/random, with dd >> if=3D/dev/random of=3D./disk2 bs=3D1000k count=3D20 skip=3D40, or so (= I now know >> that I wanted *seek*, not *skip*, but it still shouldn't panic!) >> 5) Check if the md5 of file: everything OK, zpool status shows a >> degraded pool. >> 6) Repeat step #4, but with disk 3. >> 7) zpool scrub test >> 8) Panic! >> [...] > FWIW, I couldn't replicate this when using seek (i.e. corrupt the middl= e > of the "disk" rather than the beginning): Did you account for the time factor? Between your steps 5 and 6, wouldn't ZFS automatically begin data repair? --------------enig5E56879B976C42ACDC76D810 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 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkoZ1xkACgkQldnAQVacBcjfDgCdFFCS5a1RaWeHHD20TDRtJmxa zXsAoNsliQ36Ar65p5+62tMUoHTjcOzE =x3np -----END PGP SIGNATURE----- --------------enig5E56879B976C42ACDC76D810--