During system shutdown, a service doesn't shut down cleanly because some file system it uses got unexpectedly unmounted by systemd

Solution Verified - Updated -

Issue

  • During system shutdown, a custom or 3rd party service (usually a database taking time to shut down) shuts down abruptly because somehow a file system it was using got unmounted
  • Service properties such as RequiresMountsFor=</mountpoint> or After=<mount-point>.mount and Requires=<mount-point>.mount properties are properly defined in the service unit

Environment

  • Red Hat Enterprise Linux 7 and later
    • systemd
    • multipath installed (even if unused)

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