From owner-freebsd-fs@FreeBSD.ORG Sun Feb 12 12:36:59 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 8FDAE106564A for ; Sun, 12 Feb 2012 12:36:59 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) by mx1.freebsd.org (Postfix) with ESMTP id 13A0A8FC0A for ; Sun, 12 Feb 2012 12:36:58 +0000 (UTC) Received: from seedling.black-earth.co.uk (seedling.black-earth.co.uk [IPv6:2001:8b0:151:1:fa1e:dfff:feda:c0bb]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.5/8.14.5) with ESMTP id q1CCaoFm069083 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Sun, 12 Feb 2012 12:36:50 GMT (envelope-from matthew@FreeBSD.org) X-DKIM: OpenDKIM Filter v2.4.3 smtp.infracaninophile.co.uk q1CCaoFm069083 Authentication-Results: smtp.infracaninophile.co.uk/q1CCaoFm069083; dkim=none (no signature); dkim-adsp=none Message-ID: <4F37B25A.10002@FreeBSD.org> Date: Sun, 12 Feb 2012 12:36:42 +0000 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:10.0) Gecko/20120129 Thunderbird/10.0 MIME-Version: 1.0 To: freebsd-fs@FreeBSD.org References: <4F377457.4080807@FreeBSD.org> <20120212084052.GA43095@icarus.home.lan> <4F3789C1.9000903@FreeBSD.org> <4F37A8E7.7060102@brockmann-consult.de> In-Reply-To: <4F37A8E7.7060102@brockmann-consult.de> X-Enigmail-Version: 1.3.5 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig76F55B07FC6F80EB7C1B7234" X-Virus-Scanned: clamav-milter 0.97.3 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on lucid-nonsense.infracaninophile.co.uk Cc: Subject: Re: ZFS Snapshot problems X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Feb 2012 12:36:59 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig76F55B07FC6F80EB7C1B7234 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 12/02/2012 11:56, Peter Maloney wrote: > I had a problem where I could not delete, rename, send, etc. a > snapshot... , (possibly caused by a kernel panic during a zfs > replication). Maybe yours is related. I did not try viewing the content= s > of my snapshot. >=20 > If it is related, the solution is: >=20 > zdb -d poolname | grep % >=20 > Expect the command to take long, and output should include all your > clones you made, plus some "Input/output errors" for some others. Pay > attention to the ones with errors, and then delete those, then try to > access your snapshot again. Interesting. I guess this is not the expected output? lucid-nonsense:/usr/home/matthew:# zpool list NAME SIZE ALLOC FREE CAP DEDUP HEALTH ALTROOT zroot 448G 42.9G 405G 9% 1.20x ONLINE - lucid-nonsense:/usr/home/matthew:# zdb -d zroot | grep % zdb: can't open 'zroot': No such file or directory Running truss(1) on zdb shows: open("/dev/gpt/disk0",O_RDONLY,00) ERR#2 'No such file or directory' open("/dev/gpt/disk2",O_RDONLY,00) ERR#2 'No such file or directory' which is true -- /dev/gpt is empty. But disk0 and disk1 should show up: lucid-nonsense:/usr/home/matthew:# gpart show -l /dev/ad0 =3D> 34 976773101 ad0 GPT (465G) 34 128 1 (null) (64k) 162 33554432 2 swap0 (16G) 33554594 943218541 3 disk0 (449G) lucid-nonsense:/usr/home/matthew:# gpart show -l /dev/ad2 =3D> 34 976773101 ad2 GPT (465G) 34 128 1 (null) (64k) 162 33554432 2 swap2 (16G) 33554594 943218541 3 disk2 (449G) =2E.. and come to think of it: the disk0 and disk2 labels used to show up= here too: lucid-nonsense:/usr/home/matthew:# zpool status zroot pool: zroot state: ONLINE scan: scrub repaired 0 in 3h35m with 0 errors on Sun Feb 12 11:14:10 20= 12 config: NAME STATE READ WRITE CKS= UM zroot ONLINE 0 0 = 0 mirror-0 ONLINE 0 0 = 0 gptid/848287e9-5f8e-11df-808e-e0cb4e266481 ONLINE 0 0 = 0 gptid/a6d0bec4-5f8e-11df-808e-e0cb4e266481 ONLINE 0 0 = 0 errors: No known data errors Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey --------------enig76F55B07FC6F80EB7C1B7234 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.16 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk83smIACgkQ8Mjk52CukIzv5wCgg5i2sIYZkgb5cdogo8jqLAla JIAAn3qC18Iyf1wBl5y++A/O+tkap2dz =yVae -----END PGP SIGNATURE----- --------------enig76F55B07FC6F80EB7C1B7234--