NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
lpkvh08
Sep 23, 2019Tutor
Unable to erase inaccessible snapshots in ReadyNAS 424
Hi, I have a ReadyNAS 424 and even after I have disabled and deleted all the snapshots in it. But still 1-1.5 TB s space is alloted to it. I have tried the methos from, https://forum1.netgear.com/t...
- Sep 24, 2019
lpkvh08 wrote:
ERROR: Could not destroy subvolume/snapshot: Directory not empty
The command isn't recursive, so it won't delete subvolumes inside another subvolume. So if you just tried deleting the main snapshot folder for the share with that command, it will fail.
Try listing the snapshots with
# btrfs subvolume list -s /data
and then delete each snapshot (one at a time) using the full path name.
The other approach is to destroy the volume, recreate it, reconfigure the shares, and restore the files from your backup.
lpkvh08
Sep 24, 2019Tutor
Hi. Thank you for the reply. I have previously tried deleting using SSH and with root user privileges. I used various Linux commands to delete. But I got errors saying they were read-only file system. I also tried to change permissions with chmod -Rf 777. But nothing worked.
I tried the command you gave just now as well. But it returned this,
ERROR: Could not destroy subvolume/snapshot: Directory not empty
Any other method to delete these read-only folders along with the complete directory structure in one go? Please let me know. Thank you.
StephenB
Sep 24, 2019Guru - Experienced User
lpkvh08 wrote:
ERROR: Could not destroy subvolume/snapshot: Directory not empty
The command isn't recursive, so it won't delete subvolumes inside another subvolume. So if you just tried deleting the main snapshot folder for the share with that command, it will fail.
Try listing the snapshots with
# btrfs subvolume list -s /data
and then delete each snapshot (one at a time) using the full path name.
The other approach is to destroy the volume, recreate it, reconfigure the shares, and restore the files from your backup.
- lpkvh08Sep 25, 2019Tutor
OMG Finally!!! It works! All the snapshot allocation is cleared! Thank you so much! Now running a balance operation.
Here is the display from using # btrfs subvolume list -s /data
root@NAS:~# btrfs subvolume list -s /data
ID 35125 gen 128961 cgen 128961 top level 2635 otime 2019-04-06 19:00:14 path Applications/.snapshots/2317/snapshot
ID 35126 gen 226262 cgen 128962 top level 2977 otime 2019-04-06 19:00:15 path Backups/.snapshots/2317/snapshot
ID 35127 gen 128963 cgen 128963 top level 269 otime 2019-04-06 19:00:16 path Documents/.snapshots/2317/snapshot
ID 35128 gen 128964 cgen 128964 top level 2605 otime 2019-04-06 19:00:16 path Downloads/.snapshots/2317/snapshot
ID 35129 gen 128965 cgen 128965 top level 3777 otime 2019-04-06 19:00:16 path Games/.snapshots/2317/snapshot
ID 35130 gen 128966 cgen 128966 top level 268 otime 2019-04-06 19:00:17 path Music/.snapshots/2317/snapshot
ID 35131 gen 226262 cgen 128967 top level 266 otime 2019-04-06 19:00:17 path Pictures/.snapshots/2317/snapshot
ID 35132 gen 128968 cgen 128968 top level 4775 otime 2019-04-06 19:00:18 path resilio-sync/.snapshots/2317/snapshot
ID 35133 gen 226262 cgen 128969 top level 267 otime 2019-04-06 19:00:18 path Videos/.snapshots/2317/snapshot
ID 35845 gen 131074 cgen 131074 top level 2635 otime 2019-04-17 20:00:15 path Applications/.snapshots/2397/snapshot
ID 35846 gen 226262 cgen 131075 top level 2977 otime 2019-04-17 20:00:15 path Backups/.snapshots/2397/snapshot
ID 35847 gen 131076 cgen 131076 top level 269 otime 2019-04-17 20:00:16 path Documents/.snapshots/2397/snapshot
ID 35848 gen 131077 cgen 131077 top level 2605 otime 2019-04-17 20:00:16 path Downloads/.snapshots/2397/snapshot
ID 35849 gen 131078 cgen 131078 top level 3777 otime 2019-04-17 20:00:16 path Games/.snapshots/2397/snapshot
ID 35850 gen 131079 cgen 131079 top level 268 otime 2019-04-17 20:00:17 path Music/.snapshots/2397/snapshot
ID 35851 gen 226262 cgen 131080 top level 266 otime 2019-04-17 20:00:17 path Pictures/.snapshots/2397/snapshot
ID 35852 gen 131081 cgen 131081 top level 4775 otime 2019-04-17 20:00:18 path resilio-sync/.snapshots/2397/snapshot
ID 35853 gen 226262 cgen 131082 top level 267 otime 2019-04-17 20:00:18 path Videos/.snapshots/2397/snapshotI opened another SSH terminal and started using # btrfs subvolume delete -c <path> and it went something like this,
root@NAS:~# btrfs subvolume delete -c /data/Applications/.snapshots/2317/snapshot Delete subvolume (commit): '/data/Applications/.snapshots/2317/snapshot' root@NAS:~# btrfs subvolume delete -c /data/Backups/.snapshots/2317/snapshot Delete subvolume (commit): '/data/Backups/.snapshots/2317/snapshot' root@NAS:~# btrfs subvolume delete -c /data/Documents/.snapshots/2317/snapshot Delete subvolume (commit): '/data/Documents/.snapshots/2317/snapshot' root@NAS:~# btrfs subvolume delete -c /data/Downloads/.snapshots/2317/snapshot Delete subvolume (commit): '/data/Downloads/.snapshots/2317/snapshot' root@NAS:~# btrfs subvolume delete -c /data/Games/.snapshots/2317/snapshot Delete subvolume (commit): '/data/Games/.snapshots/2317/snapshot' root@NAS:~# btrfs subvolume delete -c /data/Music/.snapshots/2317/snapshot Delete subvolume (commit): '/data/Music/.snapshots/2317/snapshot' root@NAS:~# btrfs subvolume delete -c /data/Pictures/.snapshots/2317/snapshot Delete subvolume (commit): '/data/Pictures/.snapshots/2317/snapshot' root@NAS:~# btrfs subvolume delete -c /data/resilio-sync/.snapshots/2317/snapshot Delete subvolume (commit): '/data/resilio-sync/.snapshots/2317/snapshot' root@NAS:~# btrfs subvolume delete -c /data/Videos/.snapshots/2317/snapshot Delete subvolume (commit): '/data/Videos/.snapshots/2317/snapshot' root@NAS:~# btrfs subvolume delete -c /data/Applications/.snapshots/2397/snapshot Delete subvolume (commit): '/data/Applications/.snapshots/2397/snapshot' root@NAS:~# btrfs subvolume delete -c /data/Backups/.snapshots/2397/snapshot Delete subvolume (commit): '/data/Backups/.snapshots/2397/snapshot' root@NAS:~# btrfs subvolume delete -c /data/Documents/.snapshots/2397/snapshot Delete subvolume (commit): '/data/Documents/.snapshots/2397/snapshot' root@NAS:~# btrfs subvolume delete -c /data/Downloads/.snapshots/2397/snapshot Delete subvolume (commit): '/data/Downloads/.snapshots/2397/snapshot' root@NAS:~# btrfs subvolume delete -c /data/Games/.snapshots/2397/snapshot Delete subvolume (commit): '/data/Games/.snapshots/2397/snapshot' root@NAS:~# btrfs subvolume delete -c /data/Music/.snapshots/2397/snapshot Delete subvolume (commit): '/data/Music/.snapshots/2397/snapshot' root@NAS:~# btrfs subvolume delete -c /data/Pictures/.snapshots/2397/snapshot Delete subvolume (commit): '/data/Pictures/.snapshots/2397/snapshot' root@NAS:~# btrfs subvolume delete -c /data/resilio-sync/.snapshots/2397/snapshot Delete subvolume (commit): '/data/resilio-sync/.snapshots/2397/snapshot' root@NAS:~# btrfs subvolume delete -c /data/Videos/.snapshots/2397/snapshot Delete subvolume (commit): '/data/Videos/.snapshots/2397/snapshot'
And finally the snapshot allocation was cleared. I will post the web UI page screenshot again after completion of the Balance operation. Again thank you so much!
Related Content
- Jun 06, 2017Retired_Member
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!