How to add dependencies in RHEL systemd service configuration file using local or remote filesystems ?
Issue
- Why is RHEL system hung with
systemd[]: Timed out waiting for deviceerror at boot time ? - Why is RHEL
systemdservice using a Filesystem device, not available in time ? - Why is
journaclctlshowingsystemd[]:Timed out waiting for device dev-mapper-VG\LV.deviceerror messages ? - Why are boot error messages seen similar to
[Time] Timed out waiting for device dev-mapper-VG\LV.device? - How to add Filesystem dependencies in systemd Service configuration file, when a service requires remote Filesystems (FC / Network / FCoE) to be available ?
- Is there another way apart from using
_netdevoption in/etc/fstabto fix thesystemdservice requiring remote Filesystems to be available / mounted issue at boot ? - Using
RequiresandAfterin systemd for service configuration file.
Environment
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- systemd
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.