Translated message

A translation of this page exists in English.

为什么一些服务在系统启动后有时无法正常运行?

Solution In Progress - Updated -

Issue

  • 有些服务在引导时无法正确启动。但是,它们可以在以后正常启动。

  • systemd 检测到的 ordering cycle,如下所示:

    # journalctl -b | egrep "Found|ordering cycle"
    ...
    systemd[1]: Found ordering cycle on sysinit.target/start
    systemd[1]: Found dependency on local-fs.target/start
    systemd[1]: Found dependency on data.mount/start
    systemd[1]: Found dependency on home.mount/start
    systemd[1]: Found dependency on network.target/start
    systemd[1]: Found dependency on NetworkManager-wait-online.service/start
    systemd[1]: Found dependency on basic.target/start
    systemd[1]: Found dependency on sysinit.target/start
    systemd[1]: Breaking ordering cycle by deleting job local-fs.target/start
    ...
    
  • 文件 /run/nologin 存在且没有被自动删除,从而导致用户无法登录

Environment

  • Red Hat Enterprise Linux (RHEL) 7, 8, 9
    • systemd
    • 绑定挂载或 NFS 挂载
    • 自定义 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