Files
2024-05-04 14:09:03 +02:00

5.2 KiB

DIY NAS v1

Table of contents

  1. Hardware
  2. BIOS
  3. Software
  4. Configuration
  5. Folder structure
  6. Further readings
  7. Sources

Hardware

Component Choice Price
Case Fractal Design Node 304 €99
CPU Intel Celeron N5105 Included in the motherboard
Hard disks Seagate IronWolf ST4000VN008 4TB €556,00 (4x €139,00)
Motherboard Mini ITX NAS motherboard with Intel N5105 CPU and I226-V network chip €175,28
Power supply Corsair RM850e fully modular €117,90
RAM Crucial CT2K16G4SFRA32A 32GB kit (2x16GB) €67,95
SATA cables Cable Matters 6.0Gbps SATA III cable with 90 degrees angle, black, 45cm €11,98 (2x €5,99)

BIOS

Option Requirement Notes
Network support Enabled Enables wake-on-LAN capabilities

Software

Component Choice Notes
Operating system OpenMediaVault With OMV-Extras
Kernel Default (Debian)
OS file system Default (ext4)
Data file system ZFS See ZFS on OpenMediaVault

Configuration

Network interface Usage Options
enp3s0 Management WoL enabled
enp4s0 Bond balance-alb mode
enp5s0 Bond balance-alb mode
enp6s0 Bond balance-alb mode
bond0 Data transfer

The ZFS pool and datasets used as shared folders shall have the following properties:

  • aclinherit:restricted;
  • aclmode:groupmask;
  • acltype:posix + xattr:sa until nfsv4 is supported on Linux.

Folder structure

/tank/            <-- pool
├── shared/       <-- shared datasets root, 'nobody:users', 'rwsrwsr-x' + 'd:u::rwX,g::rwX,o::rX'
│   ├── media/
│   └── oam/
└── user/         <-- private datasets root, 'user:user', 'rwsr-s---' + 'd:u::rwX,g::rX,o::-'
    ├── archive/
    ├── docs/
    ├── oam/
    └── work/

Further readings

Sources