Chinaunix

标题: oracle x86 solaris如何打开serial console (串口输出) [打印本页]

作者: nimysun    时间: 2013-06-03 07:57
标题: oracle x86 solaris如何打开serial console (串口输出)
本帖最后由 nimysun 于 2013-06-03 10:22 编辑

大部分oracle x86 server都集成了Ilom / sp,很多情况下便于管理方便,需要把solaris的默认显示输出从图形输出改到串口输出。

其中一个比较关键的配置文件是: /boot/grub/menu.lst

需要做的事情是:

1,在/boot/grub/menu.lst取消注释下面两行
serial --unit=0 --speed=9600
terminal serial

2, 在/boot/grub/menu.lst注释掉 splashimage这行
splashimage /boot/grub/splash.xpm.gz

3, 在/boot/grub/menu.lst里面的kernel行尾追加:
-B console=ttya

4, 改变OS的eeprom值:
eeprom console=ttya

5, 手动更新boot archive文件
bootadm update-archive -fR /

6,  reset your OS
reboot

7,在ilom提示符下面运行
start /SP/console


附:当前的menu.lst的输出:
  1. default 0
  2. timeout 10
  3. serial --unit=0 --speed=9600
  4. terminal serial
  5. #---------- ADDED BY BOOTADM - DO NOT EDIT ----------
  6. title Solaris 10 9/10 s10x_u9wos_14a X86
  7. kernel /platform/i86pc/multiboot -B console=ttya
  8. module /platform/i86pc/boot_archive
  9. #---------------------END BOOTADM--------------------
  10. # Unknown partition of type 6 found on /dev/rdsk/c0t1d0p0 partition: 1
  11. # It maps to the GRUB device: (hhd0,0) .
  12. #---------- ADDED BY BOOTADM - DO NOT EDIT ----------
  13. title Solaris failsafe
  14. findroot (rootfs0,1,a)
  15. kernel /boot/multiboot kernel/unix -s -B console=ttya
  16. module /boot/x86.miniroot-safe
  17. #---------------------END BOOTADM--------------------
复制代码

作者: 东方蜘蛛    时间: 2013-06-03 14:51
不错,学习
作者: 稀饭配老干妈    时间: 2013-06-03 16:44
学习了,多谢分享
作者: zhangyudong1987    时间: 2013-06-05 10:29
直接接上去不能看吗?




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2