近期一台服务器非法断电时间过久,导致阵列缓存电池电力不足致使高速缓存丢失,quota下记录的文件损坏,开机卡在Kernel且无法进入系统,类似错误提示:
Jan 10 07:07:18 server kernel: VFS: Quota for id 635 referenced but not present. Jan 10 07:07:18 server kernel: VFS: Can't read quota structure for id 635. Jan 10 07:07:18 server kernel: VFS: Quota for id 635 referenced but not present. Jan 10 07:07:18 server kernel: VFS: Can't read quota structure for id 635.
解决方案:
1、single进入单用户模式。
2、关闭quota并检测,再开启。
/sbin/quotaoff -a; /sbin/quotacheck -avugm; /sbin/quotaon -a;
如果仍然无法进入系统,需要执行
quotacheck -cavugm
3、重启进入系统