Quantcast
Channel: Linux Device Hacking
Viewing all articles
Browse latest Browse all 3247

Netgear Stora MS2110 smbd keeps crashing (6 replies)

$
0
0
Greetings. I have an old Netgear Stora MS2110 that I've been (mostly experimentally) been trying to get SMB2 support reliably working on, but so far with no luck.

My first attempt involved installing samba36 on the stock firmware, but it had an issue where the memory usage kept increasing as the number of files copied across grew, gradually slowing down as swap got hammered progressively harder, until eventually OOM killer would stop the service. So, I gave up on that.

My next attempt involved flashing the newest uBoot, then installing Debian Stretch and OMV4 as detailed in this thread. Unfortunately the web server for OMV seems to be too much for the Stora to properly handle, and smbd often became the very first victim of OOM killer as the web server sucked up the system resources. I tried disabling the web server, but then I kept running into an issue where the tmpfs at /run would fill up and stop smbd from working. The previously-linked thread includes a fix for this problem, but it didn't seem to work for me. It seems systemd (which OMV requires) isn't suited for the tiny memory on the Stora. So, I moved on again.

My current attempt involves the Debian 5.2.9 rootfs with samba installed via apt. This time, the smbd service doesn't appear as if it is being terminated by OOM killer. Rather, it just...stops working. It seems to still be running, but no longer accepts any data from clients (Windows reports "a device attached to the system is not functioning"). I'm assuming, though, that this is still an OOM issue. Restarting the service gets it working again, but only temporarily. No tmpfs full issues this time, it's just...boom, stops working.

I know the fact that the Stora has only 128MB of memory is a major bottleneck for reliable operation beyond bone stock functionality. Like I said, even on the severely cut-down stock firmware with a smaller memory footprint, I couldn't get samba36 to work without hitting OOM issues. But, I'm wondering if anyone here has any ideas as to how I might be able to reliably get SMB2 support working on this thing long-term. It's been retired as my primary NAS, but if I can find a way to give it a second life as a backup NAS or such, I'd greatly appreciate it.

Thank you.

Viewing all articles
Browse latest Browse all 3247

Trending Articles