I'm trying to free space on a ZFS by removing files. They are large (>1GB) so it should show in the numbers. Unfortunately, after unlinking the files, df
does not show any increase in available space. It seems as if the removed files have hardlinks somewhere (but ls
shows hardlink counters of 1
for all files unless I create a hardlink manually (which I tested)).
The script removing the files opens, reads, and closes these files (I checked that), so there are no open file handles. Afterwards it uses unlink()
to remove the files. ls
also does not show them anymore. Just the available disk space does not increase.
We are using the ZFS feature of snapshots. Maybe this is a reason why nothing is freed?
Any ideas or hints to documentation concerning my problem are welcome.