6.3 KiB
OpenMediaVault
NAS solution based on Debian Linux.
- TL;DR
- First access
- Make other users administrators
- Remove access for the default admin user
- Wake On Lan
- Power management
- OMV Extras
- ZFS
- Further readings
TL;DR
Default web UI login: admin:openmediavault
The root password is the one set during installation.
# Make other users administrators.
gpasswd -a 'me' 'openmediavault-admin'
usermod -aG 'openmediavault-admin' 'me'
# Revoke WebUI access from the 'admin' user.
gpasswd -d 'admin' 'openmediavault-admin'
deluser 'admin' 'openmediavault-admin'
# Install plugins from the CLI.
apt install 'openmediavault-clamav'
# Install OMV-Extras.
wget -O - 'https://github.com/OpenMediaVault-Plugin-Developers/packages/raw/master/install' | bash
# Disable the kernel's backports sources.
mv -v \
'/etc/apt/sources.list.d/openmediavault-kernel-backports.list' \
'/etc/apt/sources.list.d/openmediavault-kernel-backports.list.disabled'
# Upgrade packages.
sudo omv-upgrade
# Move to the next release.
# Includes upgrading the OS to the next version.
# E.g.: Debian 11 -> 12 + OMV 6 -> 7
tmux new-session -As 'omv-release-upgrade' "sudo omv-release-upgrade"
First access
Default web UI login: admin:openmediavault
The root password is the one set during installation.
Make other users administrators
Just add the user to the openmediavault-admin group:
gpasswd -a 'me' 'openmediavault-admin'
usermod -aG 'openmediavault-admin' 'me'
Remove access for the default admin user
Only do this after you created another user and made it an admin.
From the safest to the less safe option:
-
Lock the account:
chage -E0 'admin' -
Remove it from the
openmediavault-admingroup:gpasswd -d 'admin' 'openmediavault-admin' deluser 'admin' 'openmediavault-admin' -
Delete it completely:
userdel -r 'admin' deluser 'admin'
Wake On Lan
The network interface must support this feature and it must be enabled in the BIOS.
WOL is not enabled by default in the kernel driver.
Enable the option under Network > Interfaces, in every NIC's settings you want to respond.
Power management
CPU governor
Enabling the Monitoring option under System > Power Management configures cpufrequtils.
For x86 architectures, this also sets the default governor to conservative. If the architecture is different, the
governor is set to ondemand.
Disk power options
By default disks have no power management configured.
Editing a disk under Storage > Disks will allow to set these options for it:
- Advanced power management.
- Automatic acoustic management.
Not all drives support this. - Spin down time.
- Write cache.
All the above options are configured using hdparm.
The APM values from the interface are resumed in seven steps.
To experiment with intermediate values:
-
Edit
/etc/openmediavault/config.xml. -
Find the
/storage/hdparmxpath. -
Change the values for the disk.
-
Run this command:
omv-salt deploy run hdparm -
Reboot.
-
Check if APM has been set:
hdparm -I "/dev/sdX"
When setting a spin down time, make sure the APM value is set lower than 128. It will not work otherwise.
The web framework does not narrow the APM options if the spin down time is set, nor it disables the spin down option
when a value higher than 128 is selected for APM.
OMV Extras
From the CLI, as the root user:
-
Install OMV-Extras:
wget -O - \ 'https://github.com/OpenMediaVault-Plugin-Developers/packages/raw/master/install' \ | bash
ZFS
-
Pick one:
-
Disable the kernel's backports APT sources and stick to the mainline one.
Linux backport kernels are released quickly enough to leave the userland incomplete at times. This often happens with ZFS, resulting in broken package issues.mv -v \ '/etc/apt/sources.list.d/openmediavault-kernel-backports.list' \ '/etc/apt/sources.list.d/openmediavault-kernel-backports.list.disabled' -
Install the
openmediavault-kernelplugin and use it to install the Proxmox kernel.
Debian does not build ZFS kernel modules into any of their kernels by default due to licensing conflicts. This may result in an extensive build process during installation, which is prone to errors.The Proxmox-Debian kernel has the ZFS kernel modules preinstalled by default. As kernel upgrades become available and are performed, the userland for the Proxmox kernel will always have the required packages to support ZFS.
-
-
Install the
openmediavault-zfsplugin. -
Create pools and such.
You might need to wipe the disks first.
ZFS provides ACL support, but it is not enabled by default.
Just enable property in the pool or dataset.