What is the recommended way to customize systemd unit file to wait until all iSCSI block devices are available?

Solution Unverified - Updated -

Issue

  • We have a service that needs to run on startup and requires that all iSCSI block devices are available.
  • However, although systemd executed our script after it started the iSCSI service, sometimes our script would fail because the iSCSI block devices were not yet available.

Environment

  • Red Hat Enterprise Linux (RHEL) 7
  • systemd

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.