NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
abruz
Feb 04, 2018Aspirant
Snapshots using 500GB but never turned on.....why? (And how to recover the space)
GUI showing 500GB of space being used by Snapshots (and it grows every day). I do not have snapshots turned on, have never had them turned on (to my knowledge), and cannot find any snapshots in the ...
- Feb 06, 2018
wrote:
I tried the "btrfs subvolume delete /data/BayBlueprint/.snapshots" but it gave me an error:
ERROR: cannot delete .......Directory not empty
I'll need to figure out if I can force a delete or recursively delete.
Each folder in /data/BayBlueprint/.snapshots is a subvolume, so I guess you do need to delete those. Try deleting one of them - for instance btrfs subvolume delete /data/BayBlueprint/.snapshots/5/snapshot
There is no recursive delete option, though I guess you could try to build a script. If you don't have too many, it's probably easiest to just change the /5/ to another snapshot index and redoing the command.
abruz
Feb 04, 2018Aspirant
Thanks. That was my "Plan B" if this round of balance/defrag/scrub doesn't produce any results.
mdgm-ntgr
Feb 05, 2018NETGEAR Employee Retired
What do you see for snapshots in btrfs.log?
- abruzFeb 05, 2018Aspirant
It does have some entries pertaining to snapshot directories/files but I am not versed in deciphering this file (attached) so any help would be appreciated.
I did putty/ssh into the system and thought I looked at all snapshot files/folders and found them all to be empty. It is possible I did not see the ".snapshots" entries. I will look at those specific files this evening when I have access to the system after work.
Again, any insight to what my log file (attached) is telling me will be appreciated.
Thanks........
- StephenBFeb 05, 2018Guru - Experienced User
It certainly tells you that you have snapshots, particularly in the BayBlueprint share. You should look in the web UI for those snapshots by
- going to the share page
- right-clicking on the BayBlueprint share, and selecting recover. You should see a bunch of folders with dates
- If you then select those folders right-click you will see a delete option.
There are also a bunch of snapshots in the .purge folder (1517773986_Backup). My guess is that they are from failed backup jobs. If so, perhaps delete the source share of the backup and recreate it. If you want to preserve the contents, you can
- copy the files to temporary share
- delete the backup source share
- rename the temporary share to match the original backup source name.
- reset share access, etc to match the original configuration
Note that if you want to delete snapshots via SSH you need to use the appropriate btrfs commands (not rmdir, etc)
- abruzFeb 05, 2018Aspirant
Wow. You are pretty savvy at reading and understanding the logs. I DID have a "Backup" share that had a bunch of failed attempts to write to it (not enough space left). Last week, that share contained 400GB of data. I deleted all the folders/files from that share but never recovered the space. 2 days ago, I deleted the entire "Backup" share with the same results (no gained free space) even after a balance/defrag. I am currently running a scrub but have not seen any gain.
Regarding the snapshots.....that is the puzzling piece. I don't have snapshots turned on, the UI doesn't show any historical snapshots, yet the log is telling me they are being done.
Thanks for the tip on removing files/folders with btrfs. I spend a lot of time using Linux but was not aware I couldn't use standard rm/rmdir on these files/folders.
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!