How do I disable mounting of a filesystem if the hardware has failed.
Environment
- Red Hat Enterprise Linux (RHEL) 6
Issue
Sometimes, when storage hardware has failed, you may encounter a situation where the system is unable to boot because it it is trying to locate disks that are referenced in /etc/fstab
This can be undesirable when trying to recover a machine.
Resolution
The nofail option can be used to stop the boot process from trying to mount and fsck device if the hardware is not present:
You can set nofail in /etc/fstab like the example below
/dev/vg_data/log_data /var/log/data ext3 defaults,nofail 1 2
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Comments