NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
SauvageSausage
Mar 05, 2022Tutor
[RNDU6000] How do I recover the space taken up by the 'ghost' snapshots?
Me noticed my NAS is going out of the free space, so I get into the admin panel. Removing all the snapshots of both folders and home folders didn't change anything, actually. How do I free the sp...
- Mar 08, 2022
I'd try deleting some of them manually (one at a time), and confirm that there are no errors.
There is a -c option, which waits for the deletion to be committed before the btrfs subvolume delete returns. Might be worth trying that on one or two.
With some work, you could create a script to extract each snapshot path from the list, and then build the btrfs command to delete it. But as I mentioned earlier, you'd need to be careful not to accidentally end up deleting a share by mistake.
StephenB
Mar 05, 2022Guru - Experienced User
SauvageSausage wrote:
How do I free the space, consumed by the non-existing snapshots?
Start by running a balance from the volume settings wheel. That should reclaim the missing space.
SauvageSausage wrote:
root@databox:~# du -sh /data 4.1T /data
root@databox:~# df -H
btrfs fi du -s /data will give more accurate results than du (though it will be very slow).
btrfs fi df /data completes quickly and gives more info than df
- SauvageSausageMar 06, 2022Tutor
StephenB wrote:
SauvageSausage wrote:How do I free the space, consumed by the non-existing snapshots?
Start by running a balance from the volume settings wheel. That should reclaim the missing space.
Already done!
btrfs fi du -s /data will give more accurate results than du (though it will be very slow).
btrfs fi df /data completes quickly and gives more info than df
Thanks for your tip! "btrfs fi du" is in progress; 'df' is:
root@databox:/# btrfs fi df /data Data, single: total=7.20TiB, used=6.95TiB System, DUP: total=32.00MiB, used=992.00KiB Metadata, DUP: total=6.50GiB, used=3.06GiB GlobalReserve, single: total=512.00MiB, used=0.00B
- StephenBMar 06, 2022Guru - Experienced User
Can you also run this:
btrfs subvolume list -s /data
If there are any snapshots left for some reason, this command should list them.
- SauvageSausageMar 06, 2022Tutor
- StephenBMar 06, 2022Guru - Experienced User
SauvageSausage wrote:
ARE ALL THOSE SNAPSHOTS? :-O
Yes. It's not clear to me why they aren't showing up in the web ui though.
Related Content
NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!