使用HMC接管通过串口或显卡安装的分区操作系统
原文:http://m.blog.itpub.net/23135684/viewspace-1062084/
这是一个真实的案例,客户有一台P550的服务器,最开始使用串口的方式安装的操作系统,随着时间的推移和HMC的发展,客户想将这台服务器接入HMC,从而更方便的管理和维护,HMC接管该服务器的过程并不是我想象的那么简单。
首先要明白一个知识点,对于在IBM Power服务器上安装操作系统的方式有很多,包括CDROM光盘安装,U盘安装,磁盘克隆等等;可使用的终端包括HMC,显示卡(接显示器),串口三种方式,如果服务器使用串口方式安装的操作系统,之后将服务器接入HMC,HMC的终端无法打开分区操作系统,同样通过显示卡终端也无法打开操作系统,只能通过相同位置的串口终端才能正常打开,原因在于系统使用的终端信息被记录在了SMS菜单和操作系统中,HMC要想顺利接管操作系统就必须对这些信息进行修改,下面就来详细讨论一下HMC接管过程:
1.选择退出MDC
1) power off server
2) power on in stand-by
3) activate lpar : choose "exit the MDC" in activate options
如果出现屏幕提示"Open Completed"就卡住不动,或者提示出现"The open failed - The session is reserved for physical serial port communication",请执行下面一步,SMS菜单配置。
2.SMS菜单配置
激活分区之后,在最开始出现的菜单中按下1或F1选择进入SMS菜单(如果激活分区后无法看到SMS菜单选项,那么在打开一个HMC分区终端的情况下重启分区,在显示器或串口方式的终端上打开SMS菜单),进入主菜单,如下图所示:
按下4,回车。
在每种类型的终端都会出现类似下面的提示(例如,HMC终端press 0,显示器终端press 1,串口终端press 2),在相应的终端中按下指定的数字。默认启动界面只显示在显示器图形终端的。
按下0。
之后键入x退出,出现如下的界面,键入1,回车,即退出终端配置。
退出终端配置后会自动引导操作系统,之后会出现"Welcome to AIX"的提示,出现该提示证明SMS菜单配置是生效的。如果出现"Welcome to AIX"提示就不动了,且重新打开一个终端也是停留在"Open Completed"又不动了,那么需要执行下面的步骤,删除操作系统中的终端设备。
3.删除操作系统中的终端设备
参考如下文档,执行相关步骤:
AIX Console (HMC vterm) not working with new System p server
http://www-01.ibm.com/support/docview.wss?uid=isg3T1010609
AIX family?
Software version:?5.2, 5.3, 6.1
Operating system(s):?AIX
Reference #:?T1010609 ?
Modified date:?2007-12-06?
AIX Console (HMC vterm) not working with new System p server
Technote (troubleshooting)
Problem(Abstract)
System p is newly attached to a hardware management console (HMC) and the server property for manufactoring default configuration (MDC) is false. The vterm console works in hardware mode (i.e. SMS and for displaying hardware parameters when lpar is activating). However, the vterm does not display login prompt after AIX has been booted.
Symptom
Cause
AIX was installed on system p server when it was attached to an async console prior to attaching system to HMC.
Resolving the problem
To reconfigure the AIX‘s console device to use the new hardware connection you will need to do the following:
Either telnet (or SSH) into the server if networking had been configured or boot into a maintenance shell and run following procedure.
The procedure will completely remove vty0, vsa0 (and any other vty or vsa device) and syscons objects from the ODM and allow them to be recreated by AIX when system reboots.
Once telneted in or in a maintenance shell, as root execute the following:
# odmdelete -q name=vty0 -o CuDv
# odmdelete -q name=vty0 -o CuDv
# odmdelete -q name=vsa0 -o CuDv
# odmdelete -q name=vsa1 -o CuDv
# odmdelete -q attribute=syscons -o CuAt(可以不执行)
# bosboot -ad /dev/ipldevice <---- customer hung trying to run this
command
# sync
#reboot
When system comes up it should reconfigure vsa0 and vty0
and since we removed "syscons" from ODM it should prompt
you to select a terminal. This time, the only device
connected for a console should be the HMC‘s vterm.
You should messages similar to following when LPAR is booting back up:
-------------------------------------------------------
******* Please define the System Console. *********
Type a 1 and press Enter to use this terminal as the
system console.
1
-------------------------------------------------------
At this point you should see AIX console output being displayed in
the HMC vterm.
一定确保ODM库中所有的vty和vsa设备都删除干净,确保执行以下的命令没有返回:
# lsdev | grep vty
# lsdev | grep vsa
/dev/目录下的vty和vsa相应的设备文件最好也一起删除。
ODM库和/dev/目录下的vty和vsa设备全部删除成功后,重启分区,在打开的HMC终端会出现如下的提示:
按下2,回车,即可继续引导系统。
系统引导完成,出现如下界面:
重新打开一个终端,即可正常登录:
原文地址:https://www.cnblogs.com/liujiacai/p/8406302.html