想法#1:有没有办法修复 RHEL 6.2 安装?
在启动过程中,最近强制重启后,我的 Linux 机器(RHEL 6.2)在成功启动 virt-who 后立即挂起。我可以在文本模式下使用登录屏幕(Alt + F2/F3...)。
我很困惑——我如何才能知道启动顺序中的下一步是什么?这一步很可能就是导致它挂起的原因。
这是最后保存的几行/var/log/boot.log:
Starting RPC idmapd: [60G[[0;32m OK [0;39m]
Starting cups: [60G[[0;32m OK [0;39m]
Starting acpi daemon: [60G[[0;32m OK [0;39m]
Starting HAL daemon: [60G[[0;32m OK [0;39m]
Starting PC/SC smart card daemon (pcscd): [60G[[0;32m OK [0;39m]
Retrigger failed udev events[60G[[0;32m OK [0;39m]
Loading autofs4: [60G[[0;32m OK [0;39m]
Starting automount: [60G[[0;32m OK [0;39m]
Enabling Bluetooth devices:
Starting sshd: [60G[[0;32m OK [0;39m]
Starting ntpd: [60G[[0;32m OK [0;39m]
Starting mysqld: [60G[[0;32m OK [0;39m]
Starting postfix: [60G[[0;32m OK [0;39m]
Starting abrt daemon: [60G[[0;32m OK [0;39m]
Starting ksm: [60G[[0;32m OK [0;39m]
Starting ksmtuned: [60G[[0;32m OK [0;39m]
Starting Qpid AMQP daemon: [60G[[0;32m OK [0;39m]
Starting crond: [60G[[0;32m OK [0;39m]
Starting atd: [60G[[0;32m OK [0;39m]
Starting libvirtd daemon: [60G[[0;32m OK [0;39m]
Starting rhsmcertd 240 1440[60G[[0;32m OK [0;39m]
Starting virt-who: [60G[[0;32m OK [0;39m]
答案1
获取系统的初始化级别:
[root@rhel6 ~]# INIT_LEVEL=$(cat /etc/inittab |tail -n1|cut -d":" -f2)
[root@rhel6 ~]# echo $INIT_LEVEL
3
列出在此运行级别启动的服务(它们按启动顺序排列),在您的情况下获取 virt-who 之后的行:
[root@rhel6 ~]# find /etc/rc${INIT_LEVEL}.d/S*
/etc/rc3.d/S02lvm2-monitor
/etc/rc3.d/S08ip6tables
/etc/rc3.d/S08iptables
/etc/rc3.d/S10network
/etc/rc3.d/S11auditd
/etc/rc3.d/S12rsyslog
/etc/rc3.d/S25netfs
/etc/rc3.d/S26udev-post
/etc/rc3.d/S55sshd
/etc/rc3.d/S80postfix
/etc/rc3.d/S90crond
/etc/rc3.d/S97rhnsd
/etc/rc3.d/S97rhsmcertd
/etc/rc3.d/S99local
答案2
这可能是最近才出现的错误。我上周也遇到了同样的问题。