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, 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