在k8s的道路上我们都是小白,每天启动虚机都会遇到各种各样的问题,这不
部署的k8s虚机启动发现操作系统启动异常,提示如下报错信息
XFS(dm-0):Internal error XFS_WANT_CORRUPTED_GOTO at line 1700 of file fs/xfs/libxfs/sfc_alloc.c Caller xfs_free_extent+0xaa/0x150 [xfs]
XFS(dm-0):Internal error xfs_trans_cancel at line 993 of file fs/xfs/xfs_trans.c Caller xfs_efi_recover+0x183/0x1c0 [xfs]
XFS(dm-0):Corruption of in-memory data detected. Shutting down filesystem
XFS(dm-0):Please umount the filesystem and rectify the problem(s)
XFS(dm-0):Failed to recover intents
可以通过对文件系统进行修复操作,操作如下
进入/dev/mapper目录下,查询目录下路径信息
# cd /dev/mapper
# ls
centos-root centos-swap control
执行修复操作
# xfs_repair -L /dev/mapper/centos-root
# xfs_repair -L /dev/mapper/centos-swap
# xfs_repair -L /dev/mapper/control
操作完成后
# init 6
重启虚机操作
重启完成后虚机恢复正常登录