文件系统在重新引导期间以只读模式挂载,并在/var/log/messages中出现“Read-only file system”错误

根(/)文件系统在重新引导期间以只读模式挂载,并且多个systemd服务无法启动,并在 /var/log/messages 中出现“Read-only file system”错误。

Sep 22 00:44:15 shizhanxia.com systemd-tmpfiles[1281]: fchmod() of /tmp failed: Read-only file system
Sep 22 00:44:17 shizhanxia.com systemd[1]: chronyd.service: Failed with result 'resources'.
Sep 22 00:44:17 shizhanxia.com systemd[1]: Failed to start NTP client/server.
Sep 22 00:44:17 shizhanxia.com systemd[1]: systemd-shizhanxia.comd.service: Failed to run 'start' task: Read-only file system
Sep 22 00:44:17 shizhanxia.com systemd[1]: systemd-shizhanxia.comd.service: Failed with result 'resources'.
Sep 22 00:44:17 shizhanxia.com systemd[1]: Failed to start shizhanxia.com Service.
Sep 22 00:44:17 shizhanxia.com systemd[1]: systemd-journal-upload.service: Failed to run 'start' task: Read-only file system
Sep 22 00:44:42 shizhanxia.com kdumpctl[1455]: mktemp: failed to create directory via template ‘/tmp/mkdumprd.XXXXXX’: Read-only file system
Sep 22 00:44:48 shizhanxia.com rc.local[1401]: hwclock: cannot open /etc/adjtime: Read-only file system
Sep 22 00:44:48 shizhanxia.com systemd[1]: chronyd.service: Failed to run 'start' task: Read-only file system

检查根文件系统状态

# mount | grep -i ro
/dev/mapper/rhel-root on / type xfs (ro,relatime,seclabel,attr2,inode64,logbufs=8,logbsize=32k,noquota)
# touch testfile
touch: cannot touch 'testfile': Read-only file system

检查systemd-remount-fs服务活动状态。

# systemctl status systemd-remount-fs
● systemd-remount-fs.service - Remount Root and Kernel File Systems
   Loaded: loaded (/usr/lib/systemd/system/systemd-remount-fs.service; static; vendor preset: disabled)
   Active: inactive (dead)
     Docs: man:systemd-remount-fs.service(8)
           https://www.freedesktop.org/wiki/Software/systemd/APIFileSystems

/tmp挂载条目位于/etc/fstab中。

# cat /etc/fstab
/dev/mapper/vg00-lv01    /tmp                    xfs     defaults        0 0

在启动过程中会记录“只读文件系统”错误。

# journalctl | grep Read-only
Sep 22 00:44:15 shizhanxia.com auditd[690]: Couldn't open log file /var/log/audit/audit.log (Read-only file system)
Sep 22 00:44:15 shizhanxia.com systemd-update-utmp[692]: Failed to write utmp record: Read-only file system
Sep 22 00:44:15 shizhanxia.com systemd[1]: chronyd.service: Failed to run 'start' task: Read-only file system
Sep 22 00:44:15 shizhanxia.com systemd[1]: chronyd.service: Failed to run 'stop-post' task: Read-only file system

文件系统在重新引导期间以只读模式挂载,并在/var/log/messages中出现“Read-only file system”错误解决方案

声明:本网站刊载的所有内容,包括文字、图片、音频、视频、软件、程序、以及网页版式设计等如无特殊说明或标注,均在网上搜集。仅供访问者个人学习、研究或欣赏,禁止商业性或盈利性用途,访问者应遵守著作权法的规定,在使用时征得本站和原著作权人的同意并支付许可使用费。本网站刊登内容,如有侵权请权利人予以告知,本站将立即予以删除。

给TA打赏
共{{data.count}}人
人已打赏
笔记

CIFS挂载失败并出现错误"mount error(2): No such file or directory"

2023-9-21 7:26:00

笔记

在VMWare虚拟机中的linux系统执行efibootmgr或mokutil命令添加引导项时出现“No space left on device”

2023-10-17 7:26:00

0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
今日签到
有新私信 私信列表
搜索