NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
kevinb_vr
Jul 11, 2017Tutor
RN3312 BTRFS operations are completely hung
We have owned the RN3312 for a bit over 6 months, and all was seemingly fine. However, things went downhill recently and now pretty much the entire BTRFS partition is completely unusable at this poin...
jak0lantash
Jul 12, 2017Mentor
(Sorry for the quick reply.)
(used) 80GB of Metadata is huge! And it's heavily unbalanced, 145GB allocated. In DUP mode, that gives 291GB of Metadata on the volume.
In comparison, on my 1.81TiB backup volume containing 1.20TiB of data, the metadata used is 368.75MiB (but it is low).
Huge Metadata, heavy fragmentation, many snapshots, BTRFS quotas enabled on the volume, that's why the NAS can't keep up.
You can disable the quotas with the command for now and do it from the GUI later (to update readynasd database).
'reboot' is not clean. Use 'rn_shutdown' for graceful shutdown or 'rn_shutdown -r' for graceful reboot. I'm not sure that you will be able to shutdown/reboot with a system command if the system is in that state though.
(used) 80GB of Metadata is huge! And it's heavily unbalanced, 145GB allocated. In DUP mode, that gives 291GB of Metadata on the volume.
In comparison, on my 1.81TiB backup volume containing 1.20TiB of data, the metadata used is 368.75MiB (but it is low).
Huge Metadata, heavy fragmentation, many snapshots, BTRFS quotas enabled on the volume, that's why the NAS can't keep up.
You can disable the quotas with the command for now and do it from the GUI later (to update readynasd database).
'reboot' is not clean. Use 'rn_shutdown' for graceful shutdown or 'rn_shutdown -r' for graceful reboot. I'm not sure that you will be able to shutdown/reboot with a system command if the system is in that state though.
- kevinb_vrJul 12, 2017Tutor
All right, seems to be becoming more manageable. I was able to disable quotas through the GUI on the volume, and then also compression, and CoW on the share after a reboot last night and letting it sit for a while, and today I have been balancing the metadata and data to try and clean up some of the usage.
The 'reboot' command does work after a long while, it just must take a bit to unmount the partition. At that point rn_shutdown didn't do anything, as readynasd was not accepting commands (or web ui interaction...)
Balancing the metadata brought total metadata usage down almost 100 GB... maybe still high at 52 GB but it is much better. Running:
root@archive:~# for u in `seq 30 10 80`; do echo $u; btrfs balance start -musage=$u /data; done
root@archive:/data# btrfs fi df /data Data, single: total=14.60TiB, used=12.38TiB System, DUP: total=32.00MiB, used=1.97MiB Metadata, DUP: total=58.00GiB, used=52.17GiB GlobalReserve, single: total=512.00MiB, used=0.00B
Then the data balancing is still running... might just let that run in the background and start re-enabling backups.
Thanks again...
Related Content
NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!