hn.today

Debugging a Raspberry Pi NAS whose disks kept disappearing: it was power

artemiev.org6 points3 comments
Screenshot of Debugging a Raspberry Pi NAS whose disks kept disappearing: it was power

A Raspberry Pi NAS built with RAID, Samba, and a SATA HAT began showing intermittent failures after it had been running for days: disks vanished, network access dropped, and the hostname sometimes changed before the system recovered. The symptoms suggested several possible culprits, including OpenMediaVault, Docker, Samba, networking, RAID, or the drives. Removing OpenMediaVault and Docker and rebuilding the setup on Debian made the system easier to control, but the same failures continued. Checks of network settings, disk health, RAID state, and kernel logs narrowed the possibilities without identifying a fix.

The breakthrough came from adding Grafana dashboards and tracking system behavior over time, including disk activity, temperatures, RAID status, and power-related metrics. The Raspberry Pi and SATA HAT had separate power supplies, and the storage side lacked sufficient current headroom when the disks were active. Upgrading both supplies largely stopped the disconnects, showing how a power problem can masquerade as software, storage, or network trouble. The NAS still sometimes experiences SSD heating and RAID degradation, but monitoring and alerts make those issues visible rather than leaving them to chance. The central lesson is that observability - logs, metrics, dashboards, and alerts - helps replace assumptions with evidence and should be considered early whenever a system matters.

Read on artemiev.org3 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Hardware

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.