I recently re-organized the storage on my OMV4 NAS:
- Added 2 new hard drives.
- Changed labels of existing file systems (using e2label)
- Installed openmediavault-unionfilesystems in order to pool my storage (creating 2 pools: one using SSD caching, the other being the backing pool).
The OMV file-system configuration looks like this:
- "S850PRO_0" previously had no label (this is the OMV boot system)
- "S850PRO_3" was previously named "SSD"
- "WD40EFRX_2014" was previously named "NAS0": this will eventually become a SnapRAID parity disk
- "WD40EFRX_201701" and "WD40EFRX_201702" are the file systems on the new hard drives
- "WD20EARS_2010" was previously named "NAS1"
- "mergefs:backingPool" and "mergerfs:cachedPool" are, unsurprisingly, the pools
Everything OMV seems to work correctly, except I do not seem to be able to unmount "WD40EFRX_2014". I unmounted it using OMV once, but it remained visible in the OMV UI (even after applying the changes and rebooting). Clicking the "unmount" button again results in an error:
The XPath query '//system/fstab/mntent[(((((((fsname='/dev/sdb1' or fsname='/dev/disk/by-partuuid/de32045a-9bcb-478a-8516-92bdf23f444e') or fsname='/dev/disk/by-path/pci-0000:00:1f.2-ata-2-part1') or fsname='/dev/disk/by-id/ata-WDC_WD40EFRX-68WT0N0_WD-WCC4EJJTZ2AE-part1') or fsname='/dev/disk/by-label/WD40EFRX_2014') or fsname='/dev/disk/by-uuid/644608a4-01f7-4987-b2c7-a7714dd5ea26') or fsname='/dev/disk/by-id/wwn-0x50014ee26016323f-part1') or fsname='644608a4-01f7-4987-b2c7-a7714dd5ea26')]' does not return the requested number of 1 object(s).
ls -l /srv shows this:
root@Sirius:~# ls /srv -la
total 56
drwxr-xr-x 14 root root 4096 Nov 11 09:40 .
drwxr-xr-x 24 root root 4096 Nov 9 19:36 ..
drwxrwsr-x+ 5 root users 4096 Nov 10 21:32 86531979-48b9-42be-a7d1-e0d735bd7880
drwxrwsr-x+ 5 root users 4096 Nov 10 21:32 bff37521-4538-47bb-b2ef-45d2edd7b3ce
drwx------ 5 root root 4096 Nov 10 06:03 dev-disk-by-label-NAS0
drwx------ 5 root root 4096 Nov 10 06:03 dev-disk-by-label-NAS1
drwxrwsr-x+ 7 root users 4096 Nov 10 21:29 dev-disk-by-label-S850PRO_3
drwx------ 5 root root 4096 Nov 10 06:03 dev-disk-by-label-SSD
drwxrwsr-x+ 6 root users 4096 Nov 10 21:30 dev-disk-by-label-WD20EARS_2010
drwxrwsr-x+ 5 root users 4096 Nov 10 21:32 dev-disk-by-label-WD40EFRX_201701
drwxrwsr-x+ 5 root users 4096 Nov 10 20:55 dev-disk-by-label-WD40EFRX_201702
drwxr-xr-x 2 ftp nogroup 4096 Sep 2 09:43 ftp
drwxr-xr-x 2 root root 4096 Nov 10 19:13 mergerfs_backingPool
drwxr-xr-x 2 root root 4096 Nov 10 19:13 mergerfs_cachedPool
Alles anzeigen
Lines 7, 8, 10, 15 and 16 are not supposed to be there (the last two are the result of my fiddling around with the pool mount labels: that was stupid).
I adapted the /etc/openmediavault/config.xml and ran omv-mkconf fstab to clean this mess up: /etc/fstab no longer lists the offending mount-points.
I am guessing that the error I get when trying to amount "WD40EFRX_2014" stems from /srv/dev-disk-by-label-NAS0 still pointing to it...
How can I clean this up?