From owner-freebsd-fs@freebsd.org Fri Sep 11 09:27:11 2015 Return-Path: Delivered-To: freebsd-fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0C312A00BD7 for ; Fri, 11 Sep 2015 09:27:11 +0000 (UTC) (envelope-from peter@rulingia.com) Received: from vps.rulingia.com (vps.rulingia.com [103.243.244.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "vps.rulingia.com", Issuer "CAcert Class 3 Root" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 91D1E14E4 for ; Fri, 11 Sep 2015 09:27:10 +0000 (UTC) (envelope-from peter@rulingia.com) Received: from server.rulingia.com (c220-239-242-83.belrs5.nsw.optusnet.com.au [220.239.242.83]) by vps.rulingia.com (8.15.2/8.15.2) with ESMTPS id t8B9HBUK090867 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Fri, 11 Sep 2015 19:17:17 +1000 (AEST) (envelope-from peter@rulingia.com) X-Bogosity: Ham, spamicity=0.000000 Received: from server.rulingia.com (localhost.rulingia.com [127.0.0.1]) by server.rulingia.com (8.14.9/8.14.9) with ESMTP id t8B9H5wH003175 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Fri, 11 Sep 2015 19:17:05 +1000 (AEST) (envelope-from peter@server.rulingia.com) Received: (from peter@localhost) by server.rulingia.com (8.14.9/8.14.9/Submit) id t8B9H5Ii003174 for freebsd-fs@freebsd.org; Fri, 11 Sep 2015 19:17:05 +1000 (AEST) (envelope-from peter) Date: Fri, 11 Sep 2015 19:17:05 +1000 From: Peter Jeremy To: freebsd-fs@freebsd.org Subject: Re: Panic in zfs_blkptr_verify() Message-ID: <20150911091705.GA3087@server.rulingia.com> References: <20150829062743.GA2996@server.rulingia.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="UlVJffcvxoiEqYs2" Content-Disposition: inline In-Reply-To: <20150829062743.GA2996@server.rulingia.com> X-PGP-Key: http://www.rulingia.com/keys/peter.pgp User-Agent: Mutt/1.5.23 (2014-03-12) X-Greylist: Sender succeeded STARTTLS authentication, not delayed by milter-greylist-4.4.3 (vps.rulingia.com [103.243.244.15]); Fri, 11 Sep 2015 19:17:17 +1000 (AEST) X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Sep 2015 09:27:11 -0000 --UlVJffcvxoiEqYs2 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2015-Aug-29 16:27:43 +1000, Peter Jeremy wro= te: >I'm trying to upgrade my main (amd64) server from 10-stable r276177 to >r287251 but the new kernel consistently panics: > >panic: Solaris(panic): blkptr at 0xfffff80015961848 DVA 0 has invalid OFFS= ET 15724224479232 After wasting a lot of time working on the assumption that I had a corrupt blkptr_t, I worked out that problem was actually a corrupt vdev asize. It seems that the vdev and details had been read from /boot/zfs/zpool.cache without any sanity checks and (for unknown reasons) my zpool.cache hadn't been updated for about 18 months - during which time, I'd expanded the pool from 12TB to 16TB. Manually updating my cache with zpool set cachefile=3D/boot/zfs/zpool.cache zroot zpool set cachefile=3D/boot/zfs/zpool.cache tank seems to have solved the problem. (And my zpool.cache is now being automatically updated when I reboot). --=20 Peter Jeremy --UlVJffcvxoiEqYs2 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQJ8BAEBCgBmBQJV8pwRXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRFRUIyOTg2QzMwNjcxRTc0RTY1QzIyN0Ux NkE1OTdBMEU0QTIwQjM0AAoJEBall6Dkogs0x60P/2Ca3qDyzxe7gVdpPp72CBVT 5LOmI9XS8yNg8qea2FjYTbtVzxS1hSfyUUIVivAC48oA/PGyk5xIf/r9kH3O26lX uWtHC0xjg17ZuyMaWzJxDFqv6lI0cIRVK17Zo+xlbIujrkvmmq2D76PrIA60ZIFR 734uy5vjaBAvovvReZmXezhHNbGMImbENX2gaHeD0Hl51xddbq258WC/ML3OHKn3 zDMzKMOLJcwHe8kNd6rennUDbT7/IBAr/r9UsnDyWNqYig4qBm3mI6pk1Sqdsgcv qdUtsizQd8VsxslhaAJQWtBl/QugCAv01ENPNFiKa/tYH37zgwamnj01GcaHvSHr WrklKKa41CVyX3DB7Fqln+WdlFBV66dStazeFG+hfHHZpIlHqYdn4TwsQl3TZy2y FbVROyDkPqmn91DMhxSOINThsXo2AGoJCM+cKHUixMfb1Kl13fDyqzLG0V0WdoMr vLZxSuCG9aPrIIwwnOXa61lbr4me9W3HV3Hz8NnDjncviGtaFR/JIxgFcYU+CsCd 7P3/92rRtlJoXY+OPm0hC/39rDBhxbny2zgNOZLCOiQe0uaZOl0Zw/+pL66SLhWA lQOxv2v4ME4yXk7j0YxZRdBlGB5oHNINVG80c8lFaY38RHYv4VT+7V6KdWdY3W1d C/0l/FNKxyWwVZlyCa+z =NqYX -----END PGP SIGNATURE----- --UlVJffcvxoiEqYs2--