NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
Blues11
Apr 04, 2021Luminary
Best practice for rearranging large directories
Situation: I have two large Shares (one is about 4TB, the other about 2TB) on this ReadyNAS with four 8TB drives in a RAID5 X-RAID configuration. Of the available 23TB, about 15TB are free. The large...
Sandshark
Apr 06, 2021Sensei
Blues11 wrote:StephenB and Sandshark, thank you for your responses.
First, I'd forgotten about the Move command in Unix and that it simply updates the index, not the files themselves.
It doesn't really apply to you any longer, but for completion's sake for anyone else looking for solutions, a mv between shares does do a copy and delete on a ReadyNAS because shares are BTRFS sub-volumes. mv between directories in the same share does not. Those can be important when using snapshots. A mv between directories won't totally re-snapshot the content, but one between shares will. So the mv between shares will still have the file in the snapshot of the first share as well as being on the new one, taking addiitonal space until purged.
StephenB
Apr 06, 2021Guru - Experienced User
Sandshark wrote:
a mv between shares does do a copy and delete on a ReadyNAS because shares are BTRFS sub-volumes.
Yes. But you can do a cp --reflink between shares - which is the same speed as a mv, and doesn't add any space. Then do a delete of the original.
- Blues11Apr 09, 2021Luminary
This continuing tale: But sort of a new topic:
So I deleted the Share with the four first level directories (with a combing total about 2200+ subdirectories). The ReadyNAS OS told me that it would take some time. That was 22 hours ago. The share is gone, but virtually none of its space (about 3.5TB) has been freed.
I just ran a Defrag but that didn't seem to change the available space. Is there something else I need to do?
Thank you again for all of your help.
- SandsharkApr 09, 2021Sensei
Defrag was likely the wrong thing to do if you use snapshots. It does take a while for the available space to update as BTRFS releases it. The GUI doesn't always stay up to date, either, so make sure you refresh it. A balance may help if you don't see anything changing.
- Blues11Apr 11, 2021Luminary
It's been nearly 3 days (close to 70 hours) since I deleted the Share with about 4TB of data and the available space on the ReadyNAS is still unchanged. This seems like an excessive amount of time for the OS not to show the space as free. I use a second ReadyNAS (a very old one, but running the same OS) as a nightly backup of this NAS. Although it is configured a bit differently, when I deleted the same data on that one, it showed the space available within minutes.
So, could someone please advise what needs to be done to force the ReadyNAS to make that space available? Would restarting it make it perform properly? Is somethng more required, like, reinstalling the OS (but not deleting any data)?
Thank you.
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!