Re: [List] Cannot find out what uses space in ZFS dataset

From: David Christensen <dpchrist_at_holgerdanske.com>
Date: Fri, 19 Sep 2025 21:30:47 UTC
On 9/18/25 03:10, Andrea Venturoli wrote:
 > # cd /
 > # du -d 0 -h -x
 > 3.3G    .
 > ...
 > root@chet:/ # zfs list|grep ROOT
 > zroot/ROOT                     70.9G  1.94T    88K  none
 > zroot/ROOT/default             70.9G  1.94T  62.1G  /


On 9/18/25 08:57, Andrea Venturoli wrote:
 > # zfs list -t all -o 
name,refer,used,usedbychildren,usedbydataset,usedbyrefreservation,usedbysnapshots|grep 
default
 > zroot/ROOT/default                                      62.1G
 > 70.9G         0B   62.1G             0B     8.76G
 > <snip>
 > zroot/ROOT/default@auto_zroot-20250611020000            3.34G
 > 209M          -       -              -         -
 > zroot/ROOT/default@auto_zroot-20250711020000            62.2G
 > 407M          -       -              -         -


On 9/19/25 00:23, Andrea Venturoli wrote:
> # cd /tmp/
> zfs snap zroot/ROOT/default@dump
> zfs send -v -p zroot/ROOT/default@dump>a
> full send of zroot/ROOT/default@dump estimated size is 96.8G
> total estimated size is 96.8G
> TIME        SENT   SNAPSHOT zroot/ROOT/default@dump
> 08:45:27    114M   zroot/ROOT/default@dump
> 08:45:28    180M   zroot/ROOT/default@dump
> 08:45:29    298M   zroot/ROOT/default@dump
> 08:45:30    459M   zroot/ROOT/default@dump
> ...
> 09:09:27   96.8G   zroot/ROOT/default@dump
> 09:09:28   96.9G   zroot/ROOT/default@dump
> 09:09:29   96.9G   zroot/ROOT/default@dump
> 09:09:30   96.9G   zroot/ROOT/default@dump
> # 
> <snip>
> Again, I'm not "zfs send"ing child datasets (I'm not using "-R").


Thank you for that information.  Sorry for my confusion and noise.


On 9/19/25 03:59, freebsd@vanderzwan.org wrote:
 > # zdb -ddd zroot/ROOT/default 0:-1:A |sort -h -b -k 5 |tail
 > <snip>
 >        360    3   128K   128K  58.8G     512  90.0G  100.00  ZFS 
plain file


It looks like you and Paul have found a good clue, but have not been 
able to identify the file or process (?).  This is beyond my knowledge, 
so I will refrain from making more noise.


I agree with the suggestion to reboot.  As the server is remote: if a 
remote reboot fails and you must visit the site, you might want to bring 
a remote console solution with you and install it.


David