Date: Tue, 17 Mar 2015 11:18:32 +0100 From: =?iso-8859-1?Q?Marcus_M=FCller?= <znek@mulle-kybernetik.com> To: freebsd-fs@FreeBSD.org Subject: zfs destroy dry-run lying about reclaimable space? Message-ID: <C8EE00D4-54B0-436A-99D5-82FDA0FFE561@mulle-kybernetik.com>
next in thread | raw e-mail | index | archive | help
--Apple-Mail=_1B0459AF-4EA6-4045-8763-AC80FD884051 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=iso-8859-1 Hi ZFS experts, I just stumbled across this one: root@tank:(/)# zfs-destroy-snapshots.sh -n tank/usr/local would destroy tank/usr/local@zfs-auto-snap_monthly-2014-04-01-00h28 would reclaim 53.6M would destroy tank/usr/local@zfs-auto-snap_monthly-2014-05-01-00h28 would reclaim 8.32M would destroy tank/usr/local@zfs-auto-snap_monthly-2014-06-01-00h28 would reclaim 81.4M would destroy tank/usr/local@zfs-auto-snap_monthly-2014-07-01-00h28 would reclaim 170M [...] root@tank:(/)# zfs-destroy-snapshots.sh tank/usr/local will destroy tank/usr/local@zfs-auto-snap_monthly-2014-04-01-00h28 will reclaim 53.6M will destroy tank/usr/local@zfs-auto-snap_monthly-2014-05-01-00h28 will reclaim 191M will destroy tank/usr/local@zfs-auto-snap_monthly-2014-06-01-00h28 will reclaim 1.17G will destroy tank/usr/local@zfs-auto-snap_monthly-2014-07-01-00h28 will reclaim 177M [...] zfs-destroy-snapshots.sh iterates on all snapshots of the given = filesystem and calls zfs destroy -v [-n] <snapshot>, no magic involved. 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? Cheers, Marcus -- Marcus M=FCller . . . http://www.mulle-kybernetik.com/znek/ --Apple-Mail=_1B0459AF-4EA6-4045-8763-AC80FD884051 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+nGgocyFe3xy8wIDAQABo4IBKjCCASYw DAYDVR0TAQH/BAIwADAdBgNVHQ4EFgQUOgJFw4VT2Al6PqOPhNjzB6OA/1gwgbYGA1UdIwSBrjCB q4AUi4wPa5pKvXInb/+V4R14pS98BlOhgY+kgYwwgYkxCzAJBgNVBAYTAkRFMREwDwYDVQQHEwhE b3J0bXVuZDEMMAo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8763-AC80FD884051--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?C8EE00D4-54B0-436A-99D5-82FDA0FFE561>