Had some storms recently and suffered a power loss. After rebooting my OMV machine I found that the ext4 partition on my RAID1 array was no longer being mounted to /srv/. I could see contents in the /sharedfolders/ mounts however.
The mount button on the filesystems page was disabled, I presumed at the time because it was being referenced by various shared folders. So I removed all of them. I was then able to mount the filesystem just fine, but the name of the mount in /srv/ changed. Where it used to be dev-disk-by-id-md-name-vault-data0 (or something to that effect) it was now mounted to dev-disk-by-label-data0 and I could see all of the contents I expected. So I updated everything that relied on the original path and moved on.
I attempted a reboot to see if everything was happy again but the filesystem still was not mounted automatically. So I started to gather some information and come here to seek help...
After a fresh boot...
root@vault:~# blkid
/dev/sda1: UUID="abb0efc3-5e5c-430f-9e17-7fc42830fae7" TYPE="ext4" PARTUUID="9e7337ab-01"
/dev/sda5: UUID="19569405-dfde-4258-b5cc-e787741461c4" TYPE="swap" PARTUUID="9e7337ab-05"
/dev/sdb: UUID="afc63939-1834-e73e-9bf7-8ef86f2436cc" UUID_SUB="9030e1b3-dddf-f4c7-c3c1-96d8b710e4ae" LABEL="vault:data0" TYPE="linux_raid_member"
/dev/sdc: UUID="afc63939-1834-e73e-9bf7-8ef86f2436cc" UUID_SUB="c464428a-a774-4a9e-1c55-535349600c44" LABEL="vault:data0" TYPE="linux_raid_member"
/dev/md0: LABEL="data0" UUID="777b5f67-b0d2-448d-a744-9b4f9fb846fb" TYPE="ext4"
root@vault:~# cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda1 during installation
UUID=abb0efc3-5e5c-430f-9e17-7fc42830fae7 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=19569405-dfde-4258-b5cc-e787741461c4 none swap sw 0 0
/dev/sr0 /media/cdrom0 udf,iso9660 user,noauto 0 0
# >>> [openmediavault]
/dev/disk/by-label/data0 /srv/dev-disk-by-label-data0 ext4 defaults,nofail,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl 0 2
# <<< [openmediavault]
tmpfs /tmp tmpfs defaults 0 0
root@vault:~# omv-confdbadm read --prettify conf.system.filesystem.mountpoint
[
{
"dir": "/srv/dev-disk-by-label-data0",
"freq": 0,
"fsname": "/dev/disk/by-label/data0",
"hidden": false,
"opts": "defaults,nofail,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl",
"passno": 2,
"type": "ext4",
"uuid": "00de9482-c45a-429e-91ea-beb772a72436"
}
]
root@vault:~# mount
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=4032996k,nr_inodes=1008249,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=816876k,mode=755)
/dev/sda1 on / type ext4 (rw,relatime,errors=remount-ro)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/rdma type cgroup (rw,nosuid,nodev,noexec,relatime,rdma)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=42,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=12851)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,pagesize=2M)
mqueue on /dev/mqueue type mqueue (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
sunrpc on /run/rpc_pipefs type rpc_pipefs (rw,relatime)
nfsd on /proc/fs/nfsd type nfsd (rw,relatime)
tmpfs on /tmp type tmpfs (rw,relatime)
Alles anzeigen
So far as I could figure everything seemed to be in place. blkid recognized the disks and the filesystem, OMV created the fstab entry, there is a mountpoint int the omv config. But, the mount is missing.
After clicking mount on the web console it mounted just fine...
root@vault:~# mount
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=4032996k,nr_inodes=1008249,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=816876k,mode=755)
/dev/sda1 on / type ext4 (rw,relatime,errors=remount-ro)
<SNIP>
tmpfs on /tmp type tmpfs (rw,relatime)/dev/md0 on /srv/dev-disk-by-label-data0 type ext4 (rw,noexec,relatime,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group)
Searching further I examined systemctl after booting...
root@vault:~# systemctl status "srv-dev\x2ddisk\x2dby\x2dlabel\x2ddata0.mount"
● srv-dev\x2ddisk\x2dby\x2dlabel\x2ddata0.mount - /srv/dev-disk-by-label-data0
Loaded: loaded (/etc/fstab; generated; vendor preset: enabled)
Active: inactive (dead) since Thu 2019-05-09 10:58:44 CDT; 1h 22min ago
Where: /srv/dev-disk-by-label-data0
What: /dev/disk/by-label/data0
Docs: man:fstab(5)
man:systemd-fstab-generator(8)
Process: 489 ExecMount=/bin/mount /dev/disk/by-label/data0 /srv/dev-disk-by-label-data0 -t ext4 -o defaults,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl (code=exited, status=0/SUCCESS)
CPU: 65ms
May 09 10:58:44 vault systemd[1]: Mounting /srv/dev-disk-by-label-data0...
May 09 10:58:44 vault systemd[1]: Mounted /srv/dev-disk-by-label-data0.
Alles anzeigen
The log entries seem to indicate that it succeeded, but it was not actually mounted.
After mounting manually..
root@vault:~# systemctl status "srv-dev\x2ddisk\x2dby\x2dlabel\x2ddata0.mount"
● srv-dev\x2ddisk\x2dby\x2dlabel\x2ddata0.mount - /srv/dev-disk-by-label-data0
Loaded: loaded (/etc/fstab; generated; vendor preset: enabled)
Active: active (mounted) since Thu 2019-05-09 12:23:17 CDT; 35s ago
Where: /srv/dev-disk-by-label-data0
What: /dev/md0
Docs: man:fstab(5)
man:systemd-fstab-generator(8)
Process: 489 ExecMount=/bin/mount /dev/disk/by-label/data0 /srv/dev-disk-by-label-data0 -t ext4 -o defaults,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl (code=exited, status=0/SUCCESS)
Tasks: 0 (limit: 4915)
Memory: 0B
CPU: 0
CGroup: /system.slice/srv-dev\x2ddisk\x2dby\x2dlabel\x2ddata0.mount
Alles anzeigen
Information from journalctl to follow...