Date: Tue, 17 Mar 2015 12:28:04 +0100 From: =?iso-8859-1?Q?Marcus_M=FCller?= <znek@mulle-kybernetik.com> To: freebsd-fs@FreeBSD.org Subject: Re: zfs destroy dry-run lying about reclaimable space? Message-ID: <321BAF06-210B-4E0C-8152-756FCCD82E18@mulle-kybernetik.com> In-Reply-To: <C8EE00D4-54B0-436A-99D5-82FDA0FFE561@mulle-kybernetik.com> References: <C8EE00D4-54B0-436A-99D5-82FDA0FFE561@mulle-kybernetik.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--Apple-Mail=_08659759-6A1E-4D16-907E-BE831652E096 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=iso-8859-1 On 17.03.2015, at 11:18, Marcus M=FCller <znek@mulle-kybernetik.com> = wrote: > I was a bit stumped by the fact that the sum of the reclaimable space = reported via dry-run of zfs-destroy-snapshots.sh wasn't anywhere near = the supposed "usedbysnapshots" value of the filesystem, so I just = deleted all snapshots for real to see what would happen. Unfortunately I = cannot zfs diff any of them now to get any clues why the dry-run would = be so wrong, but maybe anyone else knows? Is this a known bug already? A bit more context: root@fbsd:(/)# uname -a FreeBSD fbsd.z.net 10.1-PRERELEASE FreeBSD 10.1-PRERELEASE #0 = 8e3e4f9(stable/10)-dirty: Wed Nov 19 16:06:59 CET 2014 = root@fbsd:/usr/obj/usr/src/sys/tank amd64 root@fbsd:(/)# zfs get version tank/usr/local NAME PROPERTY VALUE SOURCE tank/usr/local version 5 - root@fbsd:(/)# zpool get all tank NAME PROPERTY VALUE = SOURCE [...] tank feature@async_destroy enabled = local tank feature@empty_bpobj active = local tank feature@lz4_compress active = local tank feature@multi_vdev_crash_dump enabled = local tank feature@spacemap_histogram active = local tank feature@enabled_txg active = local tank feature@hole_birth active = local tank feature@extensible_dataset enabled = local tank feature@embedded_data active = local tank feature@bookmarks enabled = local tank feature@filesystem_limits enabled = local The pool was only upgraded recently, but it already had feature flag = support before (don't recall which feature flags were new). Also, I = don't recall when the filesystem version was upgraded from 4 to 5, but I = presume that's been before the snapshots had been created (I did search = in the pool history, but didn't find an upgrade statement. This pool had = been created last year and populated with a recursive dump of another = pool which has been destroyed in the meantime, thus no history logs for = this.) Cheers, Marcus -- Marcus M=FCller . . . http://www.mulle-kybernetik.com/znek/ --Apple-Mail=_08659759-6A1E-4D16-907E-BE831652E096 Content-Disposition: attachment; filename=smime.p7s Content-Type: application/pkcs7-signature; name=smime.p7s Content-Transfer-Encoding: base64 MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIFeDCCBXQw ggNcoAMCAQICAQUwDQYJKoZIhvcNAQEEBQAwgYkxCzAJBgNVBAYTAkRFMREwDwYDVQQHEwhEb3J0 bXVuZDEMMAoGA1UECBMDTlJXMRkwFwYDVQQKExBNdWxsZSBreWJlcm5ldGlLMRMwEQYDVQQLEwpD cnlwdG9NdWxsMSkwJwYJKoZIhvcNAQkBFhphZG1pbkBtdWxsZS1reWJlcm5ldGlrLmNvbTAeFw0w NzExMTMyMjQ0MTFaFw0xNzExMTAxMzU5MTVaMEMxFzAVBgNVBAMMDk1hcmN1cyBNw7xsbGVyMSgw JgYJKoZIhvcNAQkBFhl6bmVrQG11bGxlLWt5YmVybmV0aWsuY29tMIIBIjANBgkqhkiG9w0BAQEF AAOCAQ8AMIIBCgKCAQEAsfY3y3gSAXARzS9kU6fI86rTrxZ8Xwr2Y3nWyGxZzCR+TBDP+wt9Xrox 9DYXMKsULSWPJo7m7VAJom2W9HvVHJysSHe6XAlc337SKebRrZU3EZZa9XxqtIpkj4ofaNdYR7rm ccWNgF/cw/ktS6q7oEZmp0mZbENZAWhlTRvMS/isr5UWjZzltB/h80ek2zH1IKtvLrTW7f8FPOD2 Ko/inTfTse+vwMJDVsKC7IixibCM/TNCHz9B7RwMbDnUd7w9x5w+i72OP5m9wM0T2B/3y9JFm9nj FFgR9XU03rjcqrGNmmyNacdG3OWjD3uC2VlyD8Epzieu+nGgocyFe3xy8wIDA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spY+lNCVW bPD9YhieUpr8e3e9umVp2Xps0IWzumTNJpiGcGj7uTSXPiPgDo9pemREzmhOWREpzM9koxyt4Dh6 VIRQOZFs6bCy3ioXHeCRNtTH+ROJlOHn+Cs4/RVk7a9VEexQKR9zcQAAAAAAAA== --Apple-Mail=_08659759-6A1E-4D16-907E-BE831652E096--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?321BAF06-210B-4E0C-8152-756FCCD82E18>