NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
Geronimo88
Dec 10, 2017Guide
ReadyCloud Snapshots
I have a load of snapshots taking up space on my drive, I'd like to delete them but can't find them anywhere, any Idea how to remove these?
Geronimo88 wrote:I've just tried to delete the others, how do I delte these two:
ID 272 gen 28173 top level 271 received_uuid - path MASTER/.snapshots
ID 2876 gen 27761 top level 272 received_uuid - path MASTER/.snapshots/231/snapshot
I'd leave the first one alone. It should be empty once you get rid of 231.
For the second one, just enter
btrfs sub delete -c /data/MASTER/.snapshots/231/snapshot
Geronimo88 wrote:
thanks that freed up a substantial amount of space, how do I stop these snapshots being created everytime I delete something, I run two backups so snapshots is not required.
Snapshots are also created when a ReadyNAS "push" backup starts. (That is, when the source of the backup is local). The backup job actually backs up the snapshot. This ensures the backup is coherent.
The snapshot is deleted when the backup completes, but there might be some scenarios when that doesn't happen. For instance, if there is a power loss during the backup, the snapshot might not be deleted.
Overall, my suggestion is look for new snapshots every few days for a bit, and see if you are dealing with a recurring issue or not.
14 Replies
Replies have been turned off for this discussion
Normally, you click on snapshots on the admin web ui's share page, and then click on each share in the popup window. That should show you the snapshots, and you can right-click on one (or more) and delete them.
Are you seeing the snapshots when you do that?
No the snapshots are not there!
So I did a bit of digging and accessed my drive via SSH, these are the snapshots. any idea how I can remove them?
Last login: Mon Dec 11 13:56:27 2017 from lukes-imac.lan
root@JBSTUDIO:~# btrfs subvolume list -R /data | grep snapshot
ID 272 gen 27619 top level 271 received_uuid - path MASTER/.snapshots
ID 1683 gen 5998 top level 272 received_uuid - path MASTER/.snapshots/2/snapshot
ID 2876 gen 27494 top level 272 received_uuid - path MASTER/.snapshots/231/snapshot
Your screen shot doesn't give me enough context to know that I'm looking at the snapshots screen.
You can try to delete the snapshots in SSH with btrfs sub delete -c pathname
Be careful the path is for the snapshot, you don't want to delete MASTER by mistake.
- lte_rtrTutor
I have an RN628 and when I set it up, I did not realize that snapshots were enabled by default. it is running the latest SW version 6.10.10 with one single X-RAID volume of ~100TB using 8x16TB drives.
I ahve noticed that I am running out of space and upon further examination, it looks like snapshots are eating up the precious space.
I can see the snapshots, but I cannot delete them. I SSH:ed into te box using the recommended command: btrfs sub delete -c to no avail. See the command and it's output below;
why is this feature disabled in the GUI?
root@myserver:/DATA/Video/snapshot# btrfs sub delete -c c_2024*
ERROR: not a btrfs filesystem: /DATA/Video/snapshot
ERROR: not a btrfs filesystem: /DATA/Video/snapshot
ERROR: not a btrfs filesystem: /DATA/Video/snapshot
ERROR: not a btrfs filesystem: /DATA/Video/snapshot
ERROR: not a btrfs filesystem: /DATA/Video/snapshot
ERROR: not a btrfs filesystem: /DATA/Video/snapshot
ERROR: not a btrfs filesystem: /DATA/Video/snapshot
ERROR: not a btrfs filesystem: /DATA/Video/snapshot
ERROR: not a btrfs filesystem: /DATA/Video/snapshot
ERROR: not a btrfs filesystem: /DATA/Video/snapshot
ERROR: not a btrfs filesystem: /DATA/Video/snapshot
ERROR: not a btrfs filesystem: /DATA/Video/snapshot
root@New48T:/DATA/Video/snapshot#if this is not a BTRFS file system, then what is it?
Any help is greatly appreciated!After you've cleaned up the unwanted snapshots, you might consider switching to custom snapshots instead of the default ones. The benefit is that you can explicitly set retention, which keeps the amount of free space under control.
One path is to do that now for the shares where snapshots are useful (I use 3 months retention myself). Then the NAS should reduce the number of snapshots in the share to the retention limit. Or you can use the methods below.
lte_rtr wrote:
I can see the snapshots, but I cannot delete them.
why is this feature disabled in the GUI?
It's not.
If you go to the shares page in the web ui, and browse the snapshots for a share, you can select one or more. Right-click on you will see the option to delete the snapshots.
lte_rtr wrote:
/DATA/Video/snapshot
You appear to have enabled "allow snapshot access" in the share snapshot settings. So I suggest checking for that.
I don't use that option myself. The reason is that it sets the snapshots to read-write. Since I want to use the snapshots for rollback if I accidentally delete something, I don't want to allow deletions in the snapshots themself.
lte_rtr wrote:
root@myserver:/DATA/Video/snapshot# btrfs sub delete -c c_2024*
ERROR: not a btrfs filesystem: /DATA/Video/snapshotif this is not a BTRFS file system, then what is it?
A folder in a BTRFS file system. Which is not the same thing.
If you want to do this from ssh, you can start by listing the snapshots using
btrfs subvolume list -S /DATA
You could then delete a specific snapshot by using its path in the list - making sure to prepend the path in the list above with /DATA/
btrfs subvolume delete -c /DATA/path
This is quite tedious, so I suggest using the GUI instead.
After you are finished (using either method), you should run a balance. I don't recommend running it without parameter from ssh, it is better to use the settings wheel for the volume in the GUI. The balance could take a long time - but it will reclaim all the space from the deleted snapshots.
- lte_rtrTutor
@ StephenB,
Thank you sir, your comments were very hepful.
I turned off "Allow snapshot access" and switched over to custom mode and set up the perservation period.
Also I learned about the "Balance" feature which is runing now to reclaim the space.
Thanks again!
Related Content
NETGEAR Academy

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