xfs在rhel/centos下挂载的bug

编程入门 行业动态 更新时间:2024-10-04 23:20:46

xfs在<a href=https://www.elefans.com/category/jswz/34/1751926.html style=rhel/centos下挂载的bug"/>

xfs在rhel/centos下挂载的bug

在rhel下挂载xfs文件系统,重启后进入emergency mode。百思不得其解。最后在红帽官网找到了答案,是因为bug所致。可以通过添加mount选项_netdev解决此问题。

以下是引用:

RHEL7 boots up to emergency mode when using a separate journal for XFS


环境

  • Red Hat Enterprise Linux 7

问题

  • A RHEL7 machine boots to emergency mode if a new XFS filesystem is created that uses a separate device for the journal with the logdev argument.

  • It works fine to mount the filesystem manually, but if an entry is added in /etc/fstab and the machine is rebooted, it stops at the "Welcome to emergency mode" prompt.

  • If 'Ctrl+D" is pressed, the system boots normally and automatically mounts the filesystem.

  • If the filesystem is created without a separate journal, the machine boots normally.

  • The filesystem was created as following:

Raw
# lvcreate -L 256M -n lv_journal01 rhel
# mkfs.xfs -l logdev=/dev/rhel/lv_journal01 /dev/sdb
# vi /etc/fstab
# mount -a

决议

  • This was tracked in the bugzilla .cgi?id=1164334.

  • This is fixed as an errata for systemd (systemd-219-19.el7) and can be seen at .html

  • After updating the package, the /etc/fstab entry for the XFS filesystem should be changed to:

Raw
/dev/sd<X><Y>              /<mount-point>        xfs    logdev=/dev/<journal-device>,x-systemd.requires=/dev/<journal-device>     0  0
  • If the above update and /etc/fstab entry cannot be done, the workaround is to add '_netdev' as a mount option in /etc/fstab.

  • The entry should look as

Raw
/dev/<device>   /<mount-point>  xfs defaults,logdev=/dev/<journal-device>,_netdev 1 2

Affected Products

  • Red Hat Enterprise Linux Server 7 x86_64
  • Red Hat Enterprise Linux Server - Extended Update Support 7.4 x86_64
  • Red Hat Enterprise Linux Server - Extended Update Support 7.3 x86_64
  • Red Hat Enterprise Linux Server - AUS 7.3 x86_64
  • Red Hat Enterprise Linux Workstation 7 x86_64
  • Red Hat Enterprise Linux Desktop 7 x86_64
  • Red Hat Enterprise Linux for IBM z Systems 7 s390x
  • Red Hat Enterprise Linux for IBM z Systems - Extended Update Support 7.4 s390x
  • Red Hat Enterprise Linux for IBM z Systems - Extended Update Support 7.3 s390x
  • Red Hat Enterprise Linux for Power, big endian 7 ppc64
  • Red Hat Enterprise Linux for Power, big endian - Extended Update Support 7.4 ppc64
  • Red Hat Enterprise Linux for Power, big endian - Extended Update Support 7.3 ppc64
  • Red Hat Enterprise Linux for Scientific Computing 7 x86_64
  • Red Hat Enterprise Linux Server from RHUI 7 x86_64
  • Red Hat Enterprise Linux EUS Compute Node 7.4 x86_64
  • Red Hat Enterprise Linux EUS Compute Node 7.3 x86_64
  • Red Hat Enterprise Linux Server - AUS 7.4 x86_64
  • Red Hat Enterprise Linux for Power, little endian 7 ppc64le
  • Red Hat Enterprise Linux for Power, little endian - Extended Update Support 7.4 ppc64le
  • Red Hat Enterprise Linux for Power, little endian - Extended Update Support 7.3 ppc64le
  • Red Hat Enterprise Linux for Power, little endian - Extended Update Support 7.2 ppc64le
  • Red Hat Enterprise Linux Server - TUS 7.3 x86_64
  • Red Hat Enterprise Linux Server (for IBM Power LE) - 4 Year Extended Update Support 7.4 ppc64le
  • Red Hat Enterprise Linux Server (for IBM Power LE) - 4 Year Extended Update Support 7.3 ppc64le
  • Red Hat Enterprise Linux Server - 4 Year Extended Update Support 7.4 x86_64
  • Red Hat Enterprise Linux Server - 4 Year Extended Update Support 7.3 x86_64

By 徐云鹤

更多推荐

xfs在rhel/centos下挂载的bug

本文发布于:2024-02-06 15:32:31,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1749983.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:rhel   xfs   centos   bug   下挂载

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!