在启动Linux的时候 出现Stale NFS file handle 错误,只要是操作文件都不行,设备中途会被mysql卡住起不来,错误信息如下:
[ FAIL ]/dev/sda1: Invalid argument
[ OK ]system clock...[ OK ] root file system in read-only mode...
Checking file systems...
[ OK ]ck.xfs: XFS file system.
Remounting root file system in r[ 9.164167] EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
[ OK ]e mode...
[ OK ]g existing mounts in /etc/mtab...
[ OK ] remaining file systems...
[ OK ] failed uevents, if any...
Cleaning file systems: /tmp /var/lockfind: ./subsys/mysql: Stale NFS file handle
find: ./subsys/mysql: Stale NFS file handle
解决方法:
在Linux启动的时候通过grub进入到单用户模式,然后将系统umount下,再使用 e2fsck -a /dev/... 然后重启即可。
用户记录,备忘