升級AIX作業系統

leixue0906發表於2015-04-29

環境:

當前作業系統版本AIX 6104

升級到6107

 

 

大體流程:

 

檢查當前系統包是否都是COMMITED狀態,如果有APPLY狀態,將其變為COMMIT狀態

 

放入UPDATE盤或包,升級到APPLY狀態執行一段時間

 

升級後沒問題,再將其變為COMMIT狀態

 

 

 

準備條件:

2AIX 6107升級光碟

 

1、升級前檢查系統

# oslevel -r

6100-04

 

# instfix -i|grep AIX

    All filesets for 6100-00_AIX_ML were found.

    All filesets for 6100-01_AIX_ML were found.

    All filesets for 6100-02_AIX_ML were found.

    All filesets for 6100-03_AIX_ML were found.

    All filesets for 6100-04_AIX_ML were found.

 

# lslpp -h|more

  Fileset         Level     Action       Status       Date         Time       

  ----------------------------------------------------------------------------

Path: /usr/lib/objrepos

  DLManager.mpio.rte

                  6.3.0.0   COMMIT       COMPLETE     06/07/10     16:43:34   

                  6.3.0.1   COMMIT       COMPLETE     06/07/10     16:48:37   

 

  Hitachi.aix.support.rte

                  5.0.0.1   COMMIT       COMPLETE     06/07/10     16:41:53   

                  5.0.0.5   COMMIT       COMPLETE     06/07/10     16:48:37   

                 5.0.52.1   COMMIT       COMPLETE     06/07/10     16:48:37   

                 5.0.52.2   APPLY        COMPLETE     06/07/10     16:41:56   

                 5.0.52.3   APPLY        COMPLETE     06/07/10     16:41:56   

//除了這2個包是APPLY,其他包都是COMMIT狀態

 

  Hitachi.hacmp.support.rte

                  5.0.0.0   COMMIT       COMPLETE     06/07/10     16:41:53   

 

  ICU4C.rte

                  6.1.4.1   COMMIT       COMPLETE     04/21/10     18:18:37

 

 

 

2、將APPLY狀態的包變成COMMIT狀態

# smitty commit

clip_image002

 

再執行# lslpp -h|grep APPLY

均變成COMMIT狀態

 

 

3、將升級光碟或ISO檔案傳到機器上

 

4、升級前先備份OS

 

5# smitty update_all

clip_image004

COMMITNOSAVE必須選YES,不然回不了頭

 

6、升級完成

# oslevel -r

6100-04

# instfix -i|grep ML

    All filesets for 6100-00_AIX_ML were found.

    All filesets for 6100-01_AIX_ML were found.

    All filesets for 6100-02_AIX_ML were found.

    All filesets for 6100-03_AIX_ML were found.

    All filesets for 6100-04_AIX_ML were found.

    Not all filesets for 6100-05_AIX_ML were found.

    Not all filesets for 6100-06_AIX_ML were found.

Not all filesets for 6100-07_AIX_ML were found.

 

# lslpp -h|more

  Fileset         Level     Action       Status       Date         Time       

  ----------------------------------------------------------------------------

Path: /usr/lib/objrepos

  DLManager.mpio.rte

                  6.3.0.0   COMMIT       COMPLETE     06/07/10     16:43:34   

                  6.3.0.1   COMMIT       COMPLETE     06/07/10     16:48:37   

 

  Hitachi.aix.support.rte

                  5.0.0.1   COMMIT       COMPLETE     06/07/10     16:41:53   

                  5.0.0.5   COMMIT       COMPLETE     06/07/10     16:48:37   

                 5.0.52.1   COMMIT       COMPLETE     06/07/10     16:48:37   

                 5.0.52.2   COMMIT       COMPLETE     11/14/12     15:51:40   

                 5.0.52.3   COMMIT       COMPLETE     11/14/12     15:51:40   

 

  Hitachi.hacmp.support.rte

                  5.0.0.0   COMMIT       COMPLETE     06/07/10     16:41:53   

 

  ICU4C.rte

                  6.1.4.1   COMMIT       COMPLETE     04/21/10     18:18:37   

                  6.1.7.0   APPLY        COMPLETE     11/14/12     16:20:34   

 

  Java5.msg.Zh_CN

                5.0.0.175   COMMIT       COMPLETE     04/22/10     12:22:07   

 

  Java5.msg.zh_CN

                5.0.0.175   COMMIT       COMPLETE     04/22/10     12:22:06   

 

  Java5.sdk

                5.0.0.235   COMMIT       COMPLETE     04/21/10     18:17:48   

                5.0.0.430   APPLY        COMPLETE     11/14/12     16:07:49

 

檢查哪些包未升級成功

# oslevel -rl 6100-07

Fileset                                 Actual Level           Recommended ML

-----------------------------------------------------------------------------

Java6.sdk                               6.0.0.200              6.0.0.280     

bos.loc.iso.Zh_CN                       6.1.0.0                6.1.7.0       

bos.loc.iso.de_DE                       6.1.0.0                6.1.7.0       

bos.loc.iso.en_US                       6.1.0.0                6.1.7.0       

bos.loc.iso.zh_CN                       6.1.4.0                6.1.7.0       

bos.loc.utf.DE_DE                       6.1.0.0                6.1.7.0       

bos.loc.utf.ZH_CN                       6.1.4.0                6.1.7.0

 

8、使用第2張升級光碟,按照以上方法升級包

升級完後

# oslevel -rl 6100-07

Fileset                                 Actual Level           Recommended ML

-----------------------------------------------------------------------------

Java6.sdk                               6.0.0.200              6.0.0.280 //推薦版本

 

# oslevel -r

6100-05

 

# instfix -i|grep ML

    All filesets for 6100-00_AIX_ML were found.

    All filesets for 6100-01_AIX_ML were found.

    All filesets for 6100-02_AIX_ML were found.

    All filesets for 6100-03_AIX_ML were found.

    All filesets for 6100-04_AIX_ML were found.

    All filesets for 6100-05_AIX_ML were found.

    Not all filesets for 6100-06_AIX_ML were found.

    Not all filesets for 6100-07_AIX_ML were found.

 

 

 

只有java包未升級成功,該包需要單獨到IBM官網下載升級包

clip_image006

 

升級完後

# oslevel -r

6100-07

# instfix -i|grep ML

    All filesets for 6100-00_AIX_ML were found.

    All filesets for 6100-01_AIX_ML were found.

    All filesets for 6100-02_AIX_ML were found.

    All filesets for 6100-03_AIX_ML were found.

    All filesets for 6100-04_AIX_ML were found.

    All filesets for 6100-05_AIX_ML were found.

    All filesets for 6100-06_AIX_ML were found.

    All filesets for 6100-07_AIX_ML were found.

# oslevel -rl 6100-07

 

為了新系統生效,需要重啟OS

 

9、確認打完補丁,應用無異常

APPLY狀態改成COMMIT狀態

 

10、如果應用異常,需要回退(步驟9不做)

回退安裝AIX的補丁包

回退只能對在安裝補丁包的過程中透過將選項“COMMIT software updates?”設定為“No”,並且“SAVE replaced files?”設定為“Yes”安裝的補丁。否則只能做刪除操作,而不能做回退操作。

 

1.        在系統中執行命令“smitty install”→“Software Maintenance and Utilities”→“Reject Applied Software Updates (Use Previous Version)

2.        在“SOFTWARE name”按“ESC+4”顯示選擇選單,透過按“ESC+7”選擇需要回退的補丁,然後回車,如圖2

 

3.        再回退前還是先模擬預覽一下,將選項“PREVIEW only? (install operation will NOT occur)”改為“Yes”(用“ESC+4”選擇),然後回車

4.        檢視輸出結果。輸出結果為OK,則按“ESC+3”返回之前圖2的介面。將選項“PREVIEW only? (install operation will NOT occur)”改為“No”,然後回車

5.        看到螢幕輸出結果Ok,補丁即回退完畢。

6.        回退完畢後,按“ESC+0”返回到命令列介面。輸入命令“lslpp l|grep XXXX”(XXXX為回退的補丁filesets)可以檢視filesets是否回退到之前的版本。

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

相關文章