Job dev-mapper-rhel\x2droot.device/start timed out

一台RHEL8系统服务器在启动时挂起,并显示以下消息。

[   12.311429] localhost.localdomain systemd[1]: dev-mapper-rhel\x2droot.device: Job dev-mapper-rhel\x2droot.device/start timed out.
[   12.312432] localhost.localdomain systemd[1]: Timed out waiting for device dev-mapper-rhel\x2droot.device.
[   12.312567] localhost.localdomain systemd[1]: Dependency failed for Initrd Root Device.
[   12.312651] localhost.localdomain systemd[1]: initrd-root-device.target: Job initrd-root-device.target/start failed with result 'dependency'.
[   12.312725] localhost.localdomain systemd[1]: initrd-root-device.target: Triggering OnFailure= dependencies.
[   12.312797] localhost.localdomain systemd[1]: Dependency failed for File System Check on /dev/mapper/rhel-root.
[   12.312870] localhost.localdomain systemd[1]: Dependency failed for /sysroot.
[   12.312951] localhost.localdomain systemd[1]: Dependency failed for Initrd Root File System.
[   12.313065] localhost.localdomain systemd[1]: Dependency failed for Reload Configuration from the Real Root.
[   12.313174] localhost.localdomain systemd[1]: initrd-parse-etc.service: Job initrd-parse-etc.service/start failed with result 'dependency'.
[   12.313262] localhost.localdomain systemd[1]: initrd-parse-etc.service: Triggering OnFailure= dependencies.
[   12.313343] localhost.localdomain systemd[1]: initrd-root-fs.target: Job initrd-root-fs.target/start failed with result 'dependency'.
[   12.313413] localhost.localdomain systemd[1]: initrd-root-fs.target: Triggering OnFailure= dependencies.
[   12.313476] localhost.localdomain systemd[1]: sysroot.mount: Job sysroot.mount/start failed with result 'dependency'.
[   12.313543] localhost.localdomain systemd[1]: systemd-fsck-root.service: Job systemd-fsck-root.service/start failed with result 'dependency'.
[   12.313617] localhost.localdomain systemd[1]: dev-mapper-rhel\x2droot.device: Job dev-mapper-rhel\x2droot.device/start failed with result 'timeout'.

看到这个报错,应该是lvm.conf中禁用了udev_规则选项,该选项负责在/dev/下创建所有设备文件。未创建/dev中用于活动LVs的所有设备文件或特殊文件,导致系统无法启动并进入紧急模式。

如何排除该故障呢?我们考虑从两方面检查

1,检查在/dev、/dev/mapper/和/dev/vgname下创建的逻辑卷的所有设备节点或符号链接。

2,检查/etc/lvm/lvm.conf并验证udev_规则选项是否已启用。

解决方案


在/etc/lvm/lvm.conf中启用udev规则选项。然后重建initramfs图像。

# cat /etc/lvm/lvm.conf |grep udev_rules
# Configuration option activation/udev_rules.
udev_rules = 1

给TA买糖
共{{data.count}}人
人已赞赏
笔记

firstboot.xml无法配置网络IP地址

2021-8-16 14:40:20

笔记

为什么从Ansible Private Automation Hub检索执行环境时收到“x509:无法验证证书”错误?

2021-8-18 14:08:06

此心远送浑河岸,斟别酒,唱阳关,临别无语空长叹,酒已阑,曲未残,人初散,心长怀去后,杳鱼雁,对遥山,当时无计锁雕鞍,去后思量悔应晚,别时容易见时难!
0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索