现有一台HP DL380 G8服务器,安装redhat7.X系统,更换主板后,发现进不了系统,报错信息如下:
/dev/mapper/vg_xxx-lv_usr:UNEXPECTED INCONSISTENCY;RUN fsck MANUALLY.
/dev/mapper/vg_xxx-lv_var:UNEXPECTED INCONSISTENCY;RUN fsck MANUALLY.
…
An error occurred during the file system check.
Dropping you to a shell;the system will reboot
…
对于这个故障,只需要按照提示fsck检查下磁盘相关分区即可。
输入root密码后,fsck -y /dev/mapper/vg_xxx-lv_usr,fsck -y /dev/mapper/vg_xxx-lv_var。
重启,但是出现另一个报错:
Starting system logger:Can’t open or create /var/run/syslogd.pid.
Can’t write pid.
对于这个报错,是因为root用户没有审计日志文件的权限,导致system logger启动失败,输入如下命令:
#chown root.root /var/log/audit/audit.log
#chmod 600 /var/log/audit/audit.log
重启,成功进入系统。