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,
but it still does not work. I tried scrubbing and balancing after, but still no use. The snapshot allocation remains unchanged.
I have searched all over teh internet and even tried to delete the snapshots via SSH. But it does not let me. I tried saturating the drive space to empty. But still the snapshots do not disappear.
I do not understand why this is happening. I cannot reset my NAS now since I do not have spare drives to dump the data temporarily. Can anyone help me? Netgear engineers and technicians? Power users? Please help me with this issue. Thank you.
Firmware ver 6.10.1
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.
5 Replies
Replies have been turned off for this discussion
- lpkvh08Tutor
- StephenBGuru - 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).
- lpkvh08Tutor
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.
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!