Skip to content

Instantly share code, notes, and snippets.

@lilongen
Created February 20, 2019 06:00
Show Gist options
  • Save lilongen/cc399f500da8655ca41305aa1158a561 to your computer and use it in GitHub Desktop.
Save lilongen/cc399f500da8655ca41305aa1158a561 to your computer and use it in GitHub Desktop.
xfs文件系统, 根分区已满, 占用空间与实际使用空间不符, 使用xfs工具修复
首先安装xfs工具
yum install xfsdump
yum install xfsprogs-devel
yum install xfsprogs
检测/分区的碎片
# xfs_db -c frag -r /dev/vda1
显示的数据是10%左右,尝试使用修复整理碎片
# xfs_fsr /dev/vda1
再次查看,发现文件系统正常恢复
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment