Date: Sun, 12 Feb 2012 12:36:42 +0000 From: Matthew Seaman <matthew@FreeBSD.org> To: freebsd-fs@FreeBSD.org Subject: Re: ZFS Snapshot problems Message-ID: <4F37B25A.10002@FreeBSD.org> In-Reply-To: <4F37A8E7.7060102@brockmann-consult.de> References: <4F377457.4080807@FreeBSD.org> <20120212084052.GA43095@icarus.home.lan> <4F3789C1.9000903@FreeBSD.org> <4F37A8E7.7060102@brockmann-consult.de>
next in thread | previous in thread | raw e-mail | index | archive | help
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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4F37B25A.10002>