服务器控制台及系统message日志报"xfs filesystem being remounted at /run/systemd/unit-root/...supports timestamps until 2038"问题,本文进行一点浅析。
服务器控制台报多条信息,如"xfs filesystem being remounted at /run/systemd/unit-root/...supports timestamps until 2038",路径包括“/run/systemd/unit-root/var/tmp”和“/run/systemd/unit-root/etc”:

“grep remounted /var/log/messages”指令检查系统日志,也有相同提示
Mar 30 15:10:27 localhost kernel: [ 911.553495] xfs filesystem being remounted at /run/systemd/unit-root/var/tmp supports timestamps until 2038 (0x7fffffff)
Mar 30 15:11:51 localhost kernel: [ 996.211926] xfs filesystem being remounted at /run/systemd/unit-root/etc supports timestamps until 2038 (0x7fffffff)
Mar 30 15:11:51 localhost kernel: [ 996.212002] xfs filesystem being remounted at /run/systemd/unit-root/var/tmp supports timestamps until 2038 (0x7fffffff)
Mar 30 15:11:51 localhost kernel: [ 996.214356] xfs filesystem being remounted at /run/systemd/unit-root/etc supports timestamps until 2038 (0x7fffffff)
Mar 30 15:11:51 localhost kernel: [ 996.235953] xfs filesystem being remounted at /run/systemd/unit-root/var/tmp supports timestamps until 2038 (0x7fffffff)
此时检查路径“/run/systemd/unit-root/var/tmp”和“/run/systemd/unit-root/etc”,实际上是不存在的。
/run/systemd/unit-root/...目录不存在的问题,这个目录是systemd的一个临时挂载点,通常用于在启动过程中挂载某些文件系统或执行其他初始化任务。如果/run/systemd/unit-root/下的目录不存在,可能是因为系统没有尝试挂载任何内容到这个位置,或者这个挂载是临时的,并且在某个点被卸载了。如果没有迭加有与/run/systemd/unit-root/...相关的服务失败、文件缺失等其它问题,这些目录不存在就不是问题。
XFS是一个高性能的日志文件系统,“supports timestamps until 2038”说明当前系统的XFS文件系统使用的时间戳是基于32位整数的,32位整数能够表示的时间戳范围是从1970年1月1日(UNIX纪元开始)到2038年1月19日03:14:07 UTC。一旦到达这个时间点,由于32位整数会溢出,时间戳将回绕到1901年。
在Linux 5.10中,XFS文件系统已经引入了两项新的on-disk meta-data功能,其中之一就是“大时间戳”(bigtime)功能。这个功能是对XFS的时间戳和inode编码功能进行重构,以将时间戳作为64位纳秒计数器进行处理,并通过移位来增加有效大小。通过启用bigtime功能,XFS可以支持的时间戳范围扩展到了1901年12月至2486年7月,远超过了2038年的限制。但是为了保持向后兼容,默认情况下当前并未启用big timestamps功能。
XFS文件系统的bigtime功能是不能通过在线调整启用的,需要在创建新的XFS文件系统或格式化现有文件系统时启用的。这是因为bigtime功能涉及到文件系统的元数据结构和磁盘布局,所以需要在文件系统创建或格式化时进行设置。
为了启用bigtime功能,你需要使用mkfs.xfs命令来创建新的XFS文件系统,并在命令中包含相应的选项来启用该功能。例如,使用以下命令可以创建一个启用bigtime功能的新XFS文件系统:
mkfs.xfs -m bigtime=1 /dev/sdXN
在这里,/dev/sdXN是你要格式化为XFS的分区或设备的路径。bigtime=1参数告诉mkfs.xfs启用bigtime功能。
上一篇:【wpk德州】辅助!(【wpk德州】)软件透明挂(靠谱的)确实真实有挂的(有辅助插件)有挂助你(哔哩哔哩)
下一篇:AApoker辅助!(AApoker)软件透明挂(插件使用方法)确实真的是有挂的(有辅助插件)有挂带你(哔哩哔哩)