Red Hat Training

A Red Hat training course is available for Red Hat Enterprise Linux

18.6. 직렬 콘솔을 사용한 문제해결

직렬 콘솔은 어려운 문제를 해결하는 데 유용합니다. Virtualization 커널이 충돌하고 hypervisor가 오류를 생성하면, 호스트에서 오류를 조사할 방법이 전혀 없습니다. 하지만, 직렬 콘솔을 사용하면 원격 호스트에서 오류를 캡쳐할 수 있습니다. 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 파일로 보냅니다.