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 23, 2019Tutor
Attached is screenshot from my NAS web UI page.
- StephenBSep 24, 2019Guru - Experienced User
How did you try to delete the snapshots with ssh?
You need to log in as root (NOT admin) and you need to use btrfs commands (NOT rm). For instance
# btrfs subvolume delete -c <path>
where path is the full path of the subvolume.
After you've deleted them, it can take some time for the space to be reclaimed. I suggest running a balance afterwards (from the volume settings wheel).
- lpkvh08Sep 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.
- StephenBSep 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.
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!