Re: ZFS Root size keeps going down after upgrade to 13.2-release

From: Kaya Saman <kayasaman_at_optiplex-networks.com>
Date: Mon, 21 Aug 2023 14:17:52 UTC
On 8/21/23 14:51, Olivier Certner wrote:
> Hi,
>   
>> There doesn't seem to be anything indicative of that space being used up?
> Unfortunately, ZFS only reports in USED for snapshots the space that is *unique* to the corresponding snapshot, but not the space common to several ones of them, which could be freeable if it is not shared with the dataset itself.
>
> Use, e.g., "zfs list -o space <dataset>" to see the amount of space taken by snapshots (USEDSNAP column).
>
> For something more granular, you can also use "zfs get written <snapshot>" to see the amount of new data since the previous snapshot (there is also written@<snapshot>, see zfsprops(7)).
>
> Regards.
>

Thanks Olivier.


This is definitely producing more interesting output now:


zfs get written zroot/ROOT/default@2022-11-28-06:08:26-0
NAME                                      PROPERTY  VALUE SOURCE
zroot/ROOT/default@2022-11-28-06:08:26-0  written   63.2G    -


zfs get written zroot/ROOT/default@2022-11-28-06:38:48-0
NAME                                      PROPERTY  VALUE SOURCE
zroot/ROOT/default@2022-11-28-06:38:48-0  written   524M     -


zfs get written zroot/ROOT/default@2023-08-20-22:00:10-0
NAME                                      PROPERTY  VALUE SOURCE
zroot/ROOT/default@2023-08-20-22:00:10-0  written   23.0G    -


zfs get written zroot/ROOT/default@2023-08-20-22:45:34-0
NAME                                      PROPERTY  VALUE SOURCE
zroot/ROOT/default@2023-08-20-22:45:34-0  written   114M     -


Maybe, would it be worth clearing the 2022 snapshots, or perhaps all of 
the snapshots?