NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
Anonymous
Jun 20, 2014Old Snapshot Deletion Errors
I was removing several old auto-snapshots from a RN316 OS6, and unfortunately something went wrong and the NAS went into a constant reboot/reset sequence. I rebooted in safe mode, scan disk'ed, etc. and seemed to have fixed the issue and everything is working except the old Snapshot deletions got partially messed up somehow.
The old snapshots only show in the Timeline and deletion via Timeline fails with the following errors:

Log reports the following (granted, 'rmdir(/data/Backup/snapshot/c_2014_06_03__00_00_04) fail's because it doesn't exist anymore in Recovery Mode/Folders):

Specifically can't delete this:

It seems OS 6 uses 3 locations for snapshots - LAN to the NAS as admin confirms the following folder structure:
\\RN316\data\
._share (hidden)
._snap-<folder share1> (hidden)
._snap-<folder share2> (hidden)
._snap-<folder share3> (hidden)
.apps (hidden)
.ELC (hidden)
.purge (hidden)
.vault (hidden)
<folder share1>
<folder share2>
<folder share3>
I had 16 snapshots before the attempted deletion and now have 11 left in Recovery Mode, but still have the 16 in Timeline view and taking up terabytes of space.
Recovery Mode shows the correct snapshots (in the sharefolder within subfolder 'snapshots'), and the ._snap-<folder share#> also reflects this, however the ._share folder contents a list of the <foldershare#> folders with all the snapshots including the failed deleted ones (wasting several few terabytes wanted space), in a hidden folder called '.snapshot' with folder names like c_1401719404, c_1401805823, etc..
It looks like the Timeline directly accesses the ._share folder for its snapshot management and all other snapshot views are managed via Recovery Mode with some kind of duplication via the hidden data folder "._snap-<share_folder_name>". Unless these are symbolic links, it seems like an awful waste of space.
I can't manually delete the ._share/<foldershare#>/<old_snapshot_folder>'s contents even as admin via LAN/samba, it says permission denied. I can try to re-permission the relevant folder recursively, but not sure if its possible nor how OS6 would behave if I tried...Recovery Mode doesn't list these old snapshots anymore (that's how i originally deleted them anyhow), so they can only be actioned via TimeLine but that's failing as above.
Anyone have any ideas on how to remove these unwanted/old snapshots from TimeLine or if its possible to re-permission via LAN and delete without messing up OS6?
The old snapshots only show in the Timeline and deletion via Timeline fails with the following errors:

Log reports the following (granted, 'rmdir(/data/Backup/snapshot/c_2014_06_03__00_00_04) fail's because it doesn't exist anymore in Recovery Mode/Folders):

Specifically can't delete this:

It seems OS 6 uses 3 locations for snapshots - LAN to the NAS as admin confirms the following folder structure:
\\RN316\data\
._share (hidden)
._snap-<folder share1> (hidden)
._snap-<folder share2> (hidden)
._snap-<folder share3> (hidden)
.apps (hidden)
.ELC (hidden)
.purge (hidden)
.vault (hidden)
<folder share1>
<folder share2>
<folder share3>
I had 16 snapshots before the attempted deletion and now have 11 left in Recovery Mode, but still have the 16 in Timeline view and taking up terabytes of space.
Recovery Mode shows the correct snapshots (in the sharefolder within subfolder 'snapshots'), and the ._snap-<folder share#> also reflects this, however the ._share folder contents a list of the <foldershare#> folders with all the snapshots including the failed deleted ones (wasting several few terabytes wanted space), in a hidden folder called '.snapshot' with folder names like c_1401719404, c_1401805823, etc..
It looks like the Timeline directly accesses the ._share folder for its snapshot management and all other snapshot views are managed via Recovery Mode with some kind of duplication via the hidden data folder "._snap-<share_folder_name>". Unless these are symbolic links, it seems like an awful waste of space.
I can't manually delete the ._share/<foldershare#>/<old_snapshot_folder>'s contents even as admin via LAN/samba, it says permission denied. I can try to re-permission the relevant folder recursively, but not sure if its possible nor how OS6 would behave if I tried...Recovery Mode doesn't list these old snapshots anymore (that's how i originally deleted them anyhow), so they can only be actioned via TimeLine but that's failing as above.
Anyone have any ideas on how to remove these unwanted/old snapshots from TimeLine or if its possible to re-permission via LAN and delete without messing up OS6?
14 Replies
Replies have been turned off for this discussion
- nasischijfAspirantI had the same problems: I could not get rid of snapshots or a share. I managed to delete all snapshots via SSH, freeing some 400 GB :)
Be very careful with these commands, you can delete all your data.
in SSH, I used the following command to list all snapshots. The -s let's me view only the snapshotsbtrfs subvolume list /data -s
The following command I used for deleting some snapshots. The * is the wildcard for the various numbers after c_btrfs subvolume delete /data/._share/eBooks/.snapshot/c_*
The only problem is that apparently the Snapshot database of Frontview is not updated in this manner. But well, the database was corrupted anyway, so :roll: - mdgm-ntgrNETGEAR Employee RetiredThat won't remove the entries for the snapshots from the readynasd database though, so in the GUI you would probably still see references to those snapshots.
- nasischijfAspirant
mdgm wrote: That won't remove the entries for the snapshots from the readynasd database though, so in the GUI you would probably still see references to those snapshots.
True, but at least it gives you valuable space back. Would it be possible that the defrag command from Frontview > Volumes > Data has screwed with the snapshots?
Would the snapshots entries be fixed after a reinstall, say when a new firmware arrives? - mdgm-ntgrNETGEAR Employee RetiredNot sure what caused this for you.
When you delete a snapshot via the GUI, the database entry is deleted as well as the snapshot. The entries would still need to be removed from the database manually.
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!