From owner-freebsd-fs@FreeBSD.ORG Wed Jan 11 20:32:50 2012 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 B0EA9106566C for ; Wed, 11 Jan 2012 20:32:50 +0000 (UTC) (envelope-from freebsd-listen@fabiankeil.de) Received: from smtprelay04.ispgateway.de (smtprelay04.ispgateway.de [80.67.29.8]) by mx1.freebsd.org (Postfix) with ESMTP id 703C28FC0C for ; Wed, 11 Jan 2012 20:32:50 +0000 (UTC) Received: from [109.46.180.43] (helo=fabiankeil.de) by smtprelay04.ispgateway.de with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.68) (envelope-from ) id 1Rl4fV-0004UZ-8Y; Wed, 11 Jan 2012 21:21:09 +0100 Date: Wed, 11 Jan 2012 21:07:08 +0100 From: Fabian Keil To: Gergely CZUCZY Message-ID: <20120111210708.1168781e@fabiankeil.de> In-Reply-To: <20120111154722.000036e4@unknown> References: <20120111154722.000036e4@unknown> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/sme5Aas0O1FB6Uj1.oz3E5l"; protocol="application/pgp-signature" X-Df-Sender: Nzc1MDY3 Cc: freebsd-fs@freebsd.org Subject: Re: Unplugging disk under ZFS yield panic X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-fs@freebsd.org List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jan 2012 20:32:50 -0000 --Sig_/sme5Aas0O1FB6Uj1.oz3E5l Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Gergely CZUCZY wrote: > I'd like to ask, whether it is normal behaviour when we're unplugging a > disk under a ZFS system then on the first write a kernel panic happened. Sounds familiar. I currently have two PRs open for reproducible kernel panics after a vdev gets lost: http://www.freebsd.org/cgi/query-pr.cgi?pr=3Dkern/162010 http://www.freebsd.org/cgi/query-pr.cgi?pr=3Dkern/162036 Note that the pool layouts are different, though. > The hardware is a supermicro X8DTH-i/6/iF/6F board with 2x LSI 2008 > fusion MPT SAS-2 controllers, over the mps(4) driver. The disks are > accessed over gmultipath, and the multipath'd devices are added to a > ZFS mirror: > DB > mirror-0 > multipath/DB01 > multipath/DB02 > mirror-1 > multipath/DB03 > multipath/DB04 > logs > mirror/host1p5 > cache > multipath/SSD03p1 > spares > multipath/DB05 >=20 > System is 9.0-RELEASE >=20 > I've unplugged DB03 and on the first write we got a kernel panic. > Should this be normal behaviour or we're missing something here? Without a back trace or at least the panic reason one can only speculate what's going on, but I think it's rather unlikely that the panic is the intended behaviour and not a bug. Maybe you can gather some additional information and file a PR? > On a device removal we're expecting it to moving to the spare disk, or > using the available redundant disks. I agree that this behaviour would be preferable to a panic. Fabian --Sig_/sme5Aas0O1FB6Uj1.oz3E5l Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (FreeBSD) iEYEARECAAYFAk8N6/EACgkQBYqIVf93VJ3sRwCglgpytX4TKPOWNIHnfCpJgyLT bIYAoJj6AT5p6k2Y06x8gn2HLa7g1Z+F =4h+l -----END PGP SIGNATURE----- --Sig_/sme5Aas0O1FB6Uj1.oz3E5l--