How to add dependencies in RHEL systemd service configuration file using local or remote filesystems ?

Solution Verified - Updated -

Issue

  • Why is RHEL system hung with systemd[]: Timed out waiting for device error at boot time ?
  • Why is RHEL systemd service using a Filesystem device, not available in time ?
  • Why is journaclctl showing systemd[]:Timed out waiting for device dev-mapper-VG\LV.device error 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 _netdev option in /etc/fstab to fix the systemd service requiring remote Filesystems to be available / mounted issue at boot ?
  • Using Requires and After in 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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content