Skip site navigation (1)Skip section navigation (2)
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>

index | next in thread | raw e-mail

[-- Attachment #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 Mller  .  .  .  http://www.mulle-kybernetik.com/znek/


[-- Attachment #2 --]
0	*H
010	+0	*H
x0t0\0
	*H
010	UDE10UDortmund10
UNRW10U
Mulle kybernetiK10U
CryptoMull1)0'	*H
	admin@mulle-kybernetik.com0
071113224411Z
171110135915Z0C10UMarcus Müller1(0&	*H
	znek@mulle-kybernetik.com0"0
	*H
0
7xp/dSӯ|_
cylY$~L}^160-%&P	m{Hw\	\~)ѭ7Z|jdhXGqō_-KFfIlCYheMKG1 o.<*7ӱCV‚숱3B?Al9w=ǜ>?EXu4޸ܪliF{Yr)'q̅{|r*0&0U00U:EÅS	z>X0U#0kJr'ox/|S010	UDE10UDortmund10
UNRW10U
Mulle kybernetiK10U
CryptoMull1)0'	*H
	admin@mulle-kybernetik.com0U0	`HB0	`HB
xca certificate0
	*H
LjSUsNV*k1*|@cۊ+FD%'Uϕi؟ܣ~g]aE}d<%4\-Pڇ>0)e4RͦwdӦhcWL@<&tW8v6-dUᄈHH	&A8%,Yܗ+eYXǜK Ւ"AT@#Eg$&]7
A69۞N>ݡ+:Q|ũx7k6E;o26(Ri2)èRʩor0հ̛o([XX
HXA%.>&E'`l}E;pB*Do]*o1V2Ҭ5+|y LlȰp
Z8ݫ7`ȃP]0i
r%JAA]9T'.x燾urn1`0\0010	UDE10UDortmund10
UNRW10U
Mulle kybernetiK10U
CryptoMull1)0'	*H
	admin@mulle-kybernetik.com0	+0	*H
	1	*H
0	*H
	1
150317101832Z0#	*H
	1 뾁G_n0	+710010	UDE10UDortmund10
UNRW10U
Mulle kybernetiK10U
CryptoMull1)0'	*H
	admin@mulle-kybernetik.com0*H
	1010	UDE10UDortmund10
UNRW10U
Mulle kybernetiK10U
CryptoMull1)0'	*H
	admin@mulle-kybernetik.com0
	*H
N{`,`'ݓHf`{ZVGħI/GCXSF- NZSX|k/Y!Jb0^ID?U
9x0Cc ?QDD9!"fވ*;wU|2JjON<f&Wm>g,ziFRLO?3h
ݨ5o`Ppo,r0XK
~ˌ
home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?C8EE00D4-54B0-436A-99D5-82FDA0FFE561>