Server fails to boot when /etc/mtab symlink is removed in RHEL 7
Issue
- In Red Hat Enterprise Linux 7,
/etc/mtabis no longer a flat file, it is instead a symlink to/proc/self/mounts. If a service for some reason uses thesedcommand to access or modify/etc/mtab, it is possible that it will remove the symlink, and create a flat file. This in turns causes the server not to fully boot normally it drops to emergency mode,dfoutput shows everything mounted, but if/proc/mountsis checked there will be nothing but/is mounted.
Environment
- Red Hat Enterprise Linux 7
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.