Linux mount: Structure needs cleaning 错误解决方法

网络知识 2023-02-09 13:14www.1681989.comseo网站推广
今天在使用fio进行IO测试的时候,文件系统/home分区遇到了mount: Structure needs cleang 报错。大致情况

/home分区是xfs文件系统;

执行fio进行多进程测试;

测试完毕之后,执行du -hs /home/,部分文件的数据提示 “mount: Structure needs cleang”报错;

解决方法

可以使用xfs_repair来修复,要注意 xfs_repair修复的分区中的文件都会丢失,即使是du能正常显示的文件也会丢失。

处理步骤

umount /home
xfs_repair /home
mount /home

Copyright © 2016-2025 www.1681989.com 推火网 版权所有 Power by