winnielinnie
MVP
- Joined
- Oct 22, 2019
- Messages
- 3,641
Code:
NAME USED USEDSNAP USEDDS USEDREFRESERV USEDCHILD mainpool/zrootdata/media 929G 175G 754G 0B 0B mainpool/zrootdata/media@manual-2020-05-06_14-56 112K - - - - mainpool/zrootdata/media@manual-2020-08-05_17-33 0B - - - - mainpool/zrootdata/media@manual-2020-09-05_21-03 0B - - - - mainpool/zrootdata/media@manual-2020-12-23_17-34 336K - - - - mainpool/zrootdata/media@manual-2021-01-05_16-10 194M - - - - mainpool/zrootdata/media@backup-old 1.4G - - - - mainpool/zrootdata/media@backup-new 0B - - - -
So the dataset media claims to be "using" 929 GB. Alright, fine. "Used by snapshots" makes up 175 GB of that, and "used by dataset" makes up 754 GB.
Makes sense, right?
Simple math:
754 + 175 = 929
The only problem is, why is "used by snapshots" claiming 175 GB, yet when you add up all the space used up by all the snapshots, it only comes out to about 1.6 GB?
Yes, those are all the snapshots listed above, from the command:
zfs list -r -o name,used,usedsnap,usedds,usedrefreserv,usedchild -t all mainpool/zrootdata/media
Am I missing where this mystery 175 GB went? This dataset has no children.
The following command yields 754 GB, not 929 GB (of which the remaining 175 GB is supposedly being used up by the snapshots.) But once again, the snaphots only total up to around 1.6 GB, not 175 GB.
Code:
# du -hs /mnt/mainpool/zrootdata/media 754G /mnt/mainpool/zrootdata/media
* Edited for correction, copying and pasting the terminal output cut off some lines.
Last edited: