-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change in diskspace does not reflect in zfs reporting #16222
Comments
@scineram Thanks for reacting to the post. Would you mind explaining the reason behind your downvote (thumbs down emoji) without any reasons about the issue I raised above? Not fair, technically speaking. Subjective reactions are nothing more than a |
@zenny don't you have snapshots on the datasets you are deleting from, that could hold the data? |
@amotin Thanks for your attention. I have zfs-auto-snapshot on all datasets. However, I have not rolled back to any snapshot, just deleted unnecessary iso installer files and other VMs manually. Yet there is no reflection of the deleted space! An old thread I saw in #1548 resembles with mine, yet it might have been deprecated or maybe not. Cheers and and have a nice weekend. |
@zenny Space on the pool will not be freed while at least one snapshot references the deleted data. |
@amotin Thanks. I have not deleted any snapshots, just files. Any way how to handle the situation so that the deletions gets reflected in the unused space? Thanks. |
@zenny I thought my direction was quite clear. If you have snapshots referencing the deleted data you have to delete (some) snapshots to free space. RTFM. |
@zenny snapshots are a way of saying "keep the data from when I took the snapshot until I delete this snapshot, even if I modify or delete it later". So if you, say, wrote a 50 GB file, took a snapshot, then deleted the 50 GB file, it would no longer appear, but since it's still in the snapshot, it will take up space. The |
@amotin and @rincebrain Thanks for your useful inputs. https://github.com/bahamas10/zfs-prune-snapshots solved the issue, redirected from https://serverfault.com/questions/340837/how-to-delete-all-but-last-n-zfs-snapshots. Thanks and have a nice weekend. Cheers, /z |
System information
Describe the problem you're observing
There is reportedly no space left on device. So I tried to delete a bunch of huge files (more than 200GB), particularly from
/xtbmr/HOMEPOOL/HOME
and/xtbmr/DATAPOOL/CONTAINERS
dataset (see below).Even after deleting a huge bunch of files, the free space does not show up neither with
df -h
norzfs list
Describe how to reproduce the problem
Deleted a lot of files like more than 200 GB from one of the zfs datasets (particularly deprecated ISO images of the distros), but still shows that the deleted space is not shown neither using
df -h
norzfs list
Nevetheless,
zpool list
shows 128GB free.zpool status shows no errors.
Yet, it does not report the space, released by deleted files and directories from
HOMEPOOL
andDATAPOOL
datasets.Include any warning/errors/backtraces from the system logs
I have the
zpool history -i
outputs, but they are very huge in size to post here:Thanks in advance.
Cheers,
/z
The text was updated successfully, but these errors were encountered: