CentOS Linux 版本 7.7.1908(核心)服务器重启后,停止了 xfs 支持并抛出以下错误
挂载:未知的文件系统类型‘xfs’
#lsmod | grep xfs
没有显示任何内容并且#modprobe xfs
也不起作用。
#find /usr/lib/modules/$(uname -r) -name *xfs*
find: ‘/usr/lib/modules/3.10.0-957.10.1.el7.x86_64’: No such file or directory
#find /usr/lib/modules/$(uname -r) -name \*xfs\*
find: ‘/usr/lib/modules/3.10.0-957.10.1.el7.x86_64’: No such file or directory
# find /usr/lib/modules -maxdepth 1 -type d
/usr/lib/modules
/usr/lib/modules/3.10.0-1062.4.3.el7.x86_64
/usr/lib/modules/3.10.0-1062.12.1.el7.x86_64
/usr/lib/modules/3.10.0-1062.9.1.el7.x86_64
/usr/lib/modules/3.10.0-1062.4.1.el7.x86_64
/usr/lib/modules/3.10.0-1062.7.1.el7.x86_64
答案1
卸载最新更新对我来说解决了这个问题。
# yum history undo 210
在执行此操作时我收到以下错误,
warning: file /boot/vmlinuz-3.10.0-1062.4.1.el7.x86_64: remove failed: No such file or directory
warning: file /boot/symvers-3.10.0-1062.4.1.el7.x86_64.gz: remove failed: No such file or directory
warning: file /boot/config-3.10.0-1062.4.1.el7.x86_64: remove failed: No such file or directory
warning: file /boot/System.map-3.10.0-1062.4.1.el7.x86_64: remove failed: No such file or directory
warning: file /boot/.vmlinuz-3.10.0-1062.4.1.el7.x86_64.hmac: remove failed: No such file or directory
Cleanup : kernel.x86_64 33/41
warning: file /boot/vmlinuz-3.10.0-1062.12.1.el7.x86_64: remove failed: No such file or directory
warning: file /boot/symvers-3.10.0-1062.12.1.el7.x86_64.gz: remove failed: No such file or directory
warning: file /boot/config-3.10.0-1062.12.1.el7.x86_64: remove failed: No such file or directory
warning: file /boot/System.map-3.10.0-1062.12.1.el7.x86_64: remove failed: No such file or directory
warning: file /boot/.vmlinuz-3.10.0-1062.12.1.el7.x86_64.hmac: remove failed: No such file or directory
表示文件/存储损坏。谢谢@NasirRiley