I'm not sure when/why this started happening, but I have a RAID array entered in my /etc/fstab
to mount on boot to /mnt/data
. Up until today everything has been fine, and it's been that way for several years!
Anyway, I rebooted the server today (CentOS 7) and it went into "emergency mode". After checking journalctrl
the following entries existed:
Feb 01 13:04:45 CentOS7 systemd[1]: Mounting /mnt/data...
Feb 01 13:04:45 CentOS7 mount[819]: mount: /dev/md126 is already mounted or /mnt/data busy
Feb 01 13:04:45 CentOS7 systemd[1]: Failed to mount /mnt/data.
However, if I remove the line from /etc/fstab
and reboot (which starts normally), then re-enter the line, and run mount -a
then it mounts OK.
Any reason why it's failing on boot?
I've added errors=continue
as an option to the line in /etc/fstab
which prevents a reboot entering emergency mode (and strangely mounts the drive anyway – presumably in a later step), but as there are other mounts I would like to perform on boot which depend on that one being mounted initially, so really I'd like to find a proper solution.