Red Hat Training
A Red Hat training course is available for Red Hat Enterprise Linux
18.6. 序列主控台的故障排除
序列主控台適用於排除嚴重故障。如果虛擬化核心當機,然後程序管理會產生錯誤,而且無法找到本埠主機上得錯誤位置。但是這個序列主控台讓您能夠從遠端主機來擷取這項錯誤。您必須設定 Xen 主機來輸出資料到序列主控台。在使用之前您必須修改這些選項於
grub.conf
檔案來啟動 com1 /dev/ttyS0
上的 38400-bps 序列主控台:
title Red Hat Enterprise Linix (2.6.18-8.2080_RHEL5xen0) root (hd0,2) kernel /xen.gz-2.6.18-8.el5 com1=38400,8n1 module /vmlinuz-2.618-8.el5xen ro root=LABEL=/rhgb quiet console=xvc console=tty xencons=xvc module /initrd-2.6.18-8.el5xen.img
The
sync_console
can help determine a problem that causes hangs with asynchronous hypervisor console output, and the "pnpacpi=off"
works around a problem that breaks input on the serial console. The parameters "console=ttyS0"
and "console=tty"
means that kernel errors get logged with on both the normal VGA console and on the serial console. Then you can install and set up ttywatch
to capture the data on a remote host connected by a standard null-modem cable. For example, on the remote host you could type:
ttywatch --name myhost --port /dev/ttyS0
這個導管會從
/dev/ttyS0
輸入到檔案 /var/log/ttywatch/myhost.log
中。