使用HMC接管透過串列埠或顯示卡安裝的分割槽作業系統

尛樣兒發表於2013-12-03

    這是一個真實的案例,客戶有一臺P550的伺服器,最開始使用串列埠的方式安裝的作業系統,隨著時間的推移和HMC的發展,客戶想將這臺伺服器接入HMC,從而更方便的管理和維護,HMC接管該伺服器的過程並不是我想象的那麼簡單。

   首先要明白一個知識點,對於在IBM Power伺服器上安裝作業系統的方式有很多,包括CDROM光碟安裝,隨身碟安裝,磁碟克隆等等;可使用的終端包括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選單配置

啟用分割槽之後,在最開始出現的選單中按下1F1選擇進入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

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

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庫中所有的vtyvsa裝置都刪除乾淨,確保執行以下的命令沒有返回:

# lsdev | grep vty

# lsdev | grep vsa

/dev/目錄下的vtyvsa相應的裝置檔案最好也一起刪除。

ODM庫和/dev/目錄下的vtyvsa裝置全部刪除成功後,重啟分割槽,在開啟的HMC終端會出現如下的提示:

按下2,回車,即可繼續引導系統。



系統引導完成,出現如下介面:



重新開啟一個終端,即可正常登入:



--end--

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/23135684/viewspace-1062084/,如需轉載,請註明出處,否則將追究法律責任。

相關文章