NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
Platypus69
Dec 22, 2020Luminary
Cannot copy files to RN428 even though it shows that 700GB+ is free
I have a weird problem, hope you guys can help. I have a ReadyNAS RN428 to which I cannot copy files even though there is apparently plenty of free space (although perhaps not as a percentage). ...
Platypus69
Dec 22, 2020Luminary
Thanks.
I am not a SSH person, so never had to do that in past with any of the RaadyNASes.
I am a Wintel guy, please don't shoot me... :smileywink:
So I have enabled SSH, but when I SSH into the RN428 I get the following error:
Creating directory '/home/administrator'. Unable to create and initialize directory '/home/administrator'. Welcome to ReadyNASOS 6.10.4 Last login: Wed Dec 23 16:20:14 2020 from p50 Could not chdir to home directory /home/administrator: No such file or directory
(BTW, then tried by explicitly creatting a user called SSH and using that account but it to generated the same error.)
And if I try running the btrfs command I got the following:
administrator@RN428:/$ btrfs fi sh /data -bash: btrfs: command not found administrator@RN428:/$
So not sure if the 2 errors are related... Sorry.
What am I doing wrong?
Thanks for your patience.
PS:Is it easier for me to show you the btrfs log from the ZIP file you can generate?
PPS: Yes, getting error message that there is not enough free space, so volume full I expect. (Copying files from Windows environment.)
rn_enthusiast
Dec 23, 2020Virtuoso
Hi again
I should have explained that the username to use, when accessing the command line over SSH, is root (not administrator). Anyhow, yes you can also just pull a fresh log-set and show me the btrfs.log file. That wil work too :)
- rn_enthusiastDec 23, 2020Virtuoso
I just need to see the first two sections in that file. Essentially, everything before this line:
=== subvolume /data ===
Cheers
- Platypus69Dec 23, 2020Luminary
Thanks a million.
Well that's easy, here you go:
Label: '0b56af34:root' uuid: 2f7121c1-2de1-46b7-4cbb-205c63a876c1 Total devices 1 FS bytes used 1.23GiB devid 1 size 4.00GiB used 2.45GiB path /dev/md0 Label: '0b56af34:Data' uuid: 9d0f7e52-de11-ad32-89ab-08c78d217648 Total devices 1 FS bytes used 75.59TiB devid 1 size 76.37TiB used 76.37TiB path /dev/md127 === filesystem /Data === Data, single: total=76.21TiB, used=75.51TiB System, DUP: total=40.00MiB, used=7.91MiB Metadata, DUP: total=79.00GiB, used=78.50GiB GlobalReserve, single: total=512.00MiB, used=0.00B === subvolume /Data === ID 257 gen 8 top level 5 path .purge
...- rn_enthusiastDec 23, 2020Virtuoso
The filesystem will allocate blocks to be used for data or metadata.
Those blocks can be assigned to one thing only.
Currently, the system has assigned all blocks it has, there are no "free" or unassigned blocks left.
devid 1 size 76.37TiB used 76.37TiB path /dev/md127
Below we can see the distribution of these assigned blocks; how many are used for data and how many for metadata.
Data, single: total=76.21TiB, used=75.51TiB System, DUP: total=40.00MiB, used=7.91MiB Metadata, DUP: total=79.00GiB, used=78.50GiB GlobalReserve, single: total=512.00MiB, used=0.00B
So, the filesystem has assigned 76.21TiB worth of blocks to data and 79.00GiB to metadata. As you can see the filesystem has assigned more blocks to data than it really needs. approx 0.7TiB of data blocks too many. And for metadata, it is basically full. What happens when you try and write a file to the NAS, it will first allocate and write metadata but it can't because all metadata blocks are full and it cannot request new free blocks to be used for metadata as there are no free blocks left (since all the remaining blocks are assigned to data).
A balance is what you need as that will help free up blocks which can then be assigned to metadata usage. A few comments here though. Your NAS is very full in general and you are sitting at 99% used capacity. You have approx 700GB left and even though it sounds like a lot, it isn't on such a large volume. I would advise that you keep more free space in general, maybe bring it down to 3-4%.
Balancing a volume of this size will take considerable amount of time. Days or likely more. I think you should off-load some data to bring the volume down to 3-4% free space and then balance it. But this is your choice of course.
I hope this answered your question. Cheers
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!