Raspberry Pi 5 + OpenMediaVault +NAS

1. Commerial NAS vs. DIY NAS?

  • For me, the BIGGEST difference between Commerial NAS vs. DIY NAS is their prices πŸ˜‚
  • Without considering respective capabilities, DIY is ALWAYS of more freedom. And, freedom is so so so important as well

2. OpenMediaVault on Raspberry Pi 5

2.1 Use Lite Instead Of Desktop

On Raspberry Piβ€˜s official webpage Raspbian Operating Systems, find Raspberry Pi OS Lite in category Raspberry Pi OS (64-bit). As of today, the most up-to-date release is raspios_lite_arm64-2024-07-04.

1
2
3
4
5
6
➜  RaspberryPi sudo dd if=./2024-07-04-raspios-bookworm-arm64-lite.img of=/dev/sda bs=1M status=progress conv=fsync 
2031091712 bytes (2.0 GB, 1.9 GiB) copied, 2 s, 1.0 GB/s2835349504 bytes (2.8 GB, 2.6 GiB) copied, 2.88047 s, 984 MB/s

2704+0 records in
2704+0 records out
2835349504 bytes (2.8 GB, 2.6 GiB) copied, 312.17 s, 9.1 MB/s

Don’t forget to enable SSH after installation.

2.2 Install OpenMediaVault Upon Raspberry Pi OS Lite

Now, ssh into Raspberry Pi 5:

OpenMediaVault Dashboard

Follow OpenMediaVaultβ€˜s official documentation OpenMediaVault Installation on Debian, do the following:

  • apt-get install --yes gnupg
  • wget --quiet --output-document=- https://packages.openmediavault.org/public/archive.key | sudo gpg --dearmor --yes --output "/usr/share/keyrings/openmediavault-archive-keyring.gpg"
  • nvim /etc/apt/sources.list.d/openmediavault.list and add
    1
    2
    3
    4
    5
    6
    7
    8
    9
    deb [signed-by=/usr/share/keyrings/openmediavault-archive-keyring.gpg] https://packages.openmediavault.org/public sandworm main
    # deb [signed-by=/usr/share/keyrings/openmediavault-archive-keyring.gpg] https://downloads.sourceforge.net/project/openmediavault/packages sandworm main
    ## Uncomment the following line to add software from the proposed repository.
    # deb [signed-by=/usr/share/keyrings/openmediavault-archive-keyring.gpg] https://packages.openmediavault.org/public sandworm-proposed main
    # deb [signed-by=/usr/share/keyrings/openmediavault-archive-keyring.gpg] https://downloads.sourceforge.net/project/openmediavault/packages sandworm-proposed main
    ## This software is not part of OpenMediaVault, but is offered by third-party
    ## developers as a service to OpenMediaVault users.
    # deb [signed-by=/usr/share/keyrings/openmediavault-archive-keyring.gpg] https://packages.openmediavault.org/public sandworm partner
    # deb [signed-by=/usr/share/keyrings/openmediavault-archive-keyring.gpg] https://downloads.sourceforge.net/project/openmediavault/packages sandworm partner

By the way, please refer to OpenMediaVault SourceForge Distributions, sandworm is the MOST RECENT distribution.

  • Exports
    1
    2
    3
    export LANG=C.UTF-8
    export DEBIAN_FRONTEND=noninteractive
    export APT_LISTCHANGES_FRONTEND=none
  • sudo apt-get --yes --auto-remove --show-upgraded \ --allow-downgrades --allow-change-held-packages \ --no-install-recommends \ --option DPkg::Options::="--force-confdef" \ --option DPkg::Options::="--force-confold" \ install openmediavault
  • omv-confdbadm populate

Now, ALL done.

2.3 OpenMediaVault Overview

OpenMediaVault Login Page OpenMediaVault After Login
  • username: admin
  • password: openmediavault all lower case

OpenMediaVault Dashboard

3. NAS Configuration on My Raspberry Pi 5

3.1 Abbreviation

NAS is the abbreviation of Network Attached Storage.

3.2 Geekbord X1005 with a M.2 to Sata3.0 Extended Card

3.2.1 Enable NFS

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
➜  ~ sudo omv-salt deploy run nfs
raspberrypi4b8g:
----------
ID: remove_upgrade_debian12_conf
Function: file.absent
Name: /etc/nfs.conf.d/local.conf
Result: True
Comment: File /etc/nfs.conf.d/local.conf is not present
Started: 15:51:54.017518
Duration: 1.632 ms
Changes:
----------
ID: configure_nfs_conf
Function: file.managed
Name: /etc/nfs.conf.d/99-openmediavault.conf
Result: True
Comment: File /etc/nfs.conf.d/99-openmediavault.conf is in the correct state
Started: 15:51:54.019412
Duration: 407.334 ms
Changes:
----------
ID: configure_idmapd_conf
Function: file.managed
Name: /etc/idmapd.conf
Result: True
Comment: File /etc/idmapd.conf is in the correct state
Started: 15:51:54.427075
Duration: 345.438 ms
Changes:
----------
ID: divert_idmapd_conf
Function: omv_dpkg.divert_add
Name: /etc/idmapd.conf
Result: True
Comment: Leaving 'local diversion of /etc/idmapd.conf to /etc/idmapd.conf.distrib'
Started: 15:51:54.773922
Duration: 46.812 ms
Changes:
----------
ID: configure_nfs_exports
Function: file.managed
Name: /etc/exports
Result: True
Comment: File /etc/exports is in the correct state
Started: 15:51:54.821087
Duration: 411.736 ms
Changes:
----------
ID: divert_nfs_exports
Function: omv_dpkg.divert_add
Name: /etc/exports
Result: True
Comment: Leaving 'local diversion of /etc/exports to /etc/exports.distrib'
Started: 15:51:55.233143
Duration: 47.43 ms
Changes:
----------
ID: stop_nfs_blkmap_service
Function: service.dead
Name: nfs-blkmap
Result: True
Comment: The service nfs-blkmap is already dead
Started: 15:51:58.720879
Duration: 62.323 ms
Changes:
----------
ID: mask_nfs_blkmap_service
Function: service.masked
Name: nfs-blkmap
Result: True
Comment: Service nfs-blkmap is already masked
Started: 15:51:58.783606
Duration: 1.536 ms
Changes:
----------
ID: start_nfs_server_service
Function: service.running
Name: nfs-server
Result: True
Comment: The service nfs-server is already running
Started: 15:51:58.786135
Duration: 49.284 ms
Changes:
----------
ID: restart_nfs_utils_service
Function: service.running
Name: nfs-utils
Result: True
Comment: The service nfs-utils is already running
Started: 15:51:58.836046
Duration: 55.353 ms
Changes:

Summary for raspberrypi4b8g
-------------
Succeeded: 10
Failed: 0
-------------
Total states run: 10
Total run time: 1.429 s

and

1
2
➜  ~ sudo cat /proc/fs/nfsd/versions
+2 +3 +4 +4.1 +4.2

3.2.2 Hailo AI Accelerators On Geekbord X1005

I’ll give it a go with Hailo AI Accelerators some time soon.