From owner-freebsd-scsi@FreeBSD.ORG Fri Apr 6 13:01:45 2012 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B3A0D106566B; Fri, 6 Apr 2012 13:01:45 +0000 (UTC) (envelope-from pawel@dawidek.net) Received: from mail.dawidek.net (60.wheelsystems.com [83.12.187.60]) by mx1.freebsd.org (Postfix) with ESMTP id 5D33A8FC0A; Fri, 6 Apr 2012 13:01:45 +0000 (UTC) Received: from localhost (58.wheelsystems.com [83.12.187.58]) by mail.dawidek.net (Postfix) with ESMTPSA id E5045CA1; Fri, 6 Apr 2012 15:01:37 +0200 (CEST) Date: Fri, 6 Apr 2012 15:00:06 +0200 From: Pawel Jakub Dawidek To: "Desai, Kashyap" Message-ID: <20120406130006.GC1336@garage.freebsd.pl> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="KN5l+BnMqAQyZLvT" Content-Disposition: inline In-Reply-To: X-OS: FreeBSD 10.0-CURRENT amd64 User-Agent: Mutt/1.5.21 (2010-09-15) Cc: "freebsd-fs@freebsd.org" , "freebsd-scsi@freebsd.org" , "Kenneth D.Merry" , "McConnell, Stephen" Subject: Re: Kernel crash at "softdep_deallocate_dependencies" X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Apr 2012 13:01:45 -0000 --KN5l+BnMqAQyZLvT Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Apr 06, 2012 at 03:31:39PM +0530, Desai, Kashyap wrote: > Hi, Thanks in advance for looking this query and hoping for some help fro= m File system experts. >=20 > We have a RAID 0 volume which has partition (created using sysinstall fdi= sk option). > While IOs are in progress removing one of the volume member kernel panic = is hit with the following messages >=20 > g_vfs_done():(da0:da0s1d[WRITE(offset=3D6358872064, length=3D2048)]mpslsi= 0:0:error =3D 6 > 0:/home: got error 6 while accessing filesystem > 0): panic: softdep_deallocate_dependencies: unrecovered I/O error > lost device >=20 > Note: > 1. The issue is also seen on a RAID 0 volume which does not have a partit= ion on it. > 2. Issue was observed on both SAS and SATA drives. > 3. When we send IOs to the driver without FS (using "dd" command), kernel= panic never seen. >=20 >=20 > I have searched on this topic and looks like something wrong with FS. _bu= t_ I don't have any trigger to support that this is not Driver issue. This might be lame error handling on the FS side, but FS is not here to blame. You get I/O error from device below. In case of RAID0 you have no redundancy, so you cannot expect anything good by removing one of its components. Using "dd" doesn't trigger kernel panic, because I/O error is handled by userland process (it exits). > When we tried below options: (disable Journal on FS) Things does not chan= ge. We still see kernel panic. >=20 > umount > tunefs -j disable > mount > cd > rm .sujournal >=20 > Any thoughts ? What behaviour would you expect when your RAID0 volume dies? The best thing to do here would be to either stop all I/Os until the component is back or forcibly unmount the file system, but both options are probably hard to get right. --=20 Pawel Jakub Dawidek http://www.wheelsystems.com FreeBSD committer http://www.FreeBSD.org Am I Evil? Yes, I Am! http://tupytaj.pl --KN5l+BnMqAQyZLvT Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (FreeBSD) iEYEARECAAYFAk9+6NYACgkQForvXbEpPzTujQCg3rzzLyyVrVc/UtdrmFbb9PHA nxsAoOo1fZRtJoYUw+lIM2nKWqT9Xm0p =E9dp -----END PGP SIGNATURE----- --KN5l+BnMqAQyZLvT--