Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Jan 2025 12:21:34 +0100
From:      Alexander Leidinger <Alexander@Leidinger.net>
To:        andy thomas <andy@time-domain.co.uk>
Cc:        freebsd-fs@freebsd.org
Subject:   Re: How can I tell when ZFS has finished creating a snapshot?
Message-ID:  <357554e1ae8745a7dfc8701d4bbb45ac@Leidinger.net>
In-Reply-To: <856588185.13572.1736593439701@localhost>
References:  <856588185.13572.1736593439701@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)

--=_93c3eae43c412c4537a29bd1381e61a4
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=US-ASCII;
 format=flowed

Am 2025-01-11 12:03, schrieb Ronald Klop:

> For example:
> 
> After creating a snapshot you delete a file in the original file 
> system. The file is still in the snapshot. So the size of the file will 
> be accounted to the snapshot.
> 
> Modifying a file will give similar effect. The 'old' parts of the file 
> are only available via the snapshot so will be accounted to the 
> snapshot.

Or in other words, the snapshot does not grow at all, it is read-only. 
Space is attributed to a snapshot if the live dataset doesn't reference 
a piece of data. Data which is removed or changed in the live dataset 
since the snapshot was taken is what you see in USED. You can use "zfs 
diff" to see where data has changed. I'm not sure if such data is 
attributed to the oldest or the most recent snapshot, but it's one of 
both (I guess to the oldest).

Bye,
Alexander.

> Regards,
> Ronald.
> 
> Van: andy thomas <andy@time-domain.co.uk>
> Datum: 11 januari 2025 11:40
> Aan: heasley <heas@shrubbery.net>
> CC: freebsd-fs@freebsd.org
> Onderwerp: Re: How can I tell when ZFS has finished creating a 
> snapshot?
> 
>> But what could be increasing the size of the snapshot after it was 
>> created? Right now, yesterday's snapshot made at 14:45 UTC (nearly 22 
>> hours ago) has grown to 468MB:
>> 
>> root@clustor2:~ # date
>> Sat Jan 11 10:31:05 GMT 2025
>> root@clustor2:~ # zfs list -t snapshot
>> NAME                              USED  AVAIL  REFER  MOUNTPOINT
>> clustor2/ma@2025-01-10_14.45.00   468M      -  3.09T  -
>> 
>> It's true the size this file system reported by 'zfs list' has 
>> increasesd from 3.09TB yesterday to 3.10TB now (it's used for storing 
>> user data in an HPC that currently has about 700 jobs running on it) 
>> but it's very strange that a snapshot supposedly "set in stone" at the 
>> time it is created should continue to grow afterwards!
>> 
>> Andy
>> 
>> On Fri, 10 Jan 2025, heasley wrote:
>> 
>>> Fri, Jan 10, 2025 at 06:52:43PM +0000, andy thomas:
>>>> Is there a way to find out the status of a snapshot creation?
>>> 
>>> it should be near-instantaneous.  "USED" would only change if files 
>>> in
>>> the snapshot are deleted or overwritten.
>>> 
>>> 
>> 
>> -----------------------------
>> Andy Thomas,
>> Time Domain Systems
>> 
>> Tel: +44 (0)7815 060872
>> https://www.time-domain.co.uk
>> 
>> -------------------------


-- 
http://www.Leidinger.net Alexander@Leidinger.net: PGP 0x8F31830F9F2772BF
http://www.FreeBSD.org    netchild@FreeBSD.org  : PGP 0x8F31830F9F2772BF

--=_93c3eae43c412c4537a29bd1381e61a4
Content-Type: application/pgp-signature;
 name=signature.asc
Content-Disposition: attachment;
 filename=signature.asc;
 size=833
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEER9UlYXp1PSd08nWXEg2wmwP42IYFAmeCVE0ACgkQEg2wmwP4
2IYNzBAAhOV/ESYtjZ1l85hp567dXK5Dc0JId+YwYJc1dHQ13l+tFLIGXmKbVsve
z5/a5c3pk9McoSh8QGlTIM7PuPl3fHpgQZJHNLyAQht9TfMolAUuvur6T2jis01K
TdVSHttgSEiyaUmIMXuniq4gkU2l9s+70/yL5sv/zIH/l+Yvlf6uC7M5MYnX30cC
W3gjZ2TABuMQ5/sUe7BP+crR9se9e4vmQ4RvAyTECwGbISjO5sKWXNjGPOGizDdR
SEKl9DwadusiKeGdulLHLFBKaujrac/ULSMabnb3B5U2phgLGqhP1gvJ9P3Qey5P
gVNFIQ1TnPoTuK4WyeZQd2cD/7HMKbB2PbEUUpyXwO0zfboJKMCa8oAwCJn2Ylg8
MWmHUutyFC/8G4OEP/OTxBm8osQcR8mSnSKH3BqBZovAiWAbMUNonhqCwkUUfy5a
A941SaL+ek2ubogcf2m7n953XoD8ATyNhqSEeVQhQBev8bqecTPE5/r0SiceDm+I
oYBrkGfjM1oeemS41jBw1vG/wmOxatkgs1O4Cf4YUakARW8Psu0FWUtkSmiQWn9B
OOBddmg5TNNvOl1KyTbyUdiLBPHojfNIA+laW14lKD/C2LKZ27qSYj6Wf2oZZkhT
flMrfpYRDDeh2kyITwn0T0nGdmkbpAECbQTpF1gsEnFQE4f4XQ0=
=QsO9
-----END PGP SIGNATURE-----

--=_93c3eae43c412c4537a29bd1381e61a4--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?357554e1ae8745a7dfc8701d4bbb45ac>