Building a NAS box yourself
Summary
After a RAID upgrade, Alexander Schreiber had five disks left over and built a NAS box from them, as the Chemnitz Linux Days 2017 heard. Instead of spending a few hundred euros on an empty ready-made device, it was built from a drive cage, a small ARM board, a port multiplier, a laptop power supply and parts from the DIY store. The talk then turned to using it with NFS, iSCSI, AoE, encryption and automatic backups.
What is a NAS and why build it yourself?
A NAS, network attached storage, is storage on the network that several computers access. Ready-made devices are convenient but cost a few hundred euros even when empty, and their software is limited to what the manufacturer provides. A home-built device with Linux is cheaper and can be designed freely, but it requires manual skill and your own maintenance.
There are various ways of accessing it: NFS shares directories, while iSCSI and ATA over Ethernet provide entire block devices that the client uses like its own disk. Encryption protects the data if the device is stolen.
Why it is a good example
The talk combines tinkering with serious data storage. Leftover hardware is reused instead of thrown away, and Linux provides all the necessary building blocks. At the same time the responsibility stays with the operator: a home-built NAS does not replace a backup but should itself be part of a backup strategy.
Ideas
- Leftover disks can be reused in a home-built NAS.
- A small ARM board is enough as the computer for network storage.
- NFS shares directories, iSCSI and AoE share entire block devices.
Insights
- Building it yourself saves money but shifts maintenance and responsibility to the operator.
- A NAS is not a backup; it needs a backup itself.
Facts
- Five disks were left over after the RAID upgrade.
- The speaker was Alexander Schreiber, then a system engineer at Google in Switzerland.
- Basic Linux knowledge was enough as prior knowledge.
References
Remarks
- Alexander Schreiber had already spoken at the Chemnitz Linux Days in 1999, 2004 and 2015.
Recommendations
- Check old disks with SMART tests before reusing them and plan for redundancy.
- Additionally back up the most important data from the NAS to a second location.
Found a mistake or have something to add? Get in touch.
Links to the original source and the Web Archive open in a new tab.