语法
xfs_repair [-fnd] 设备名称
作用
对xfs文件系统进行检查,修复。
参数
- -f
后面的设备其实是个文件,而不是实体的设备。 - -n
单纯检查并不修改文件系统的任何数据。 - -d
通常用在单人维护模式下,针对根目录进行检查修复。
使用实例
对xfs文件系统进行检查
[root@192 ~]# xfs_repair /dev/sdb1
Phase 1 - find and verify superblock...
Phase 2 - using internal log
- zero log...
- scan filesystem freespace and inode maps...
- found root inode chunk
Phase 3 - for each AG...
- scan and clear agi unlinked lists...
- process known inodes and perform inode discovery...
- agno = 0
- agno = 1
- agno = 2
- agno = 3
- process newly discovered inodes...
Phase 4 - check for duplicate blocks...
- setting up duplicate extent list...
- check for inodes claiming duplicate blocks...
- agno = 0
- agno = 1
- agno = 2
- agno = 3
Phase 5 - rebuild AG headers and trees...
- reset superblock...
Phase 6 - check inode connectivity...
- resetting contents of realtime bitmap and summary inodes
- traversing filesystem ...
- traversal finished ...
- moving disconnected inodes to lost+found ...
Phase 7 - verify and correct link counts...
done
版权声明:本文为qq_35751843原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。