AIX5.3升級(補丁安裝升級)

AIX5.3升級(補丁安裝升級)

一、查看補丁信息(以我的IBM小型機ps爲例)

(1)oslevel -s命令確認版本信息:

# oslevel -s
5300-10-04-1015

(2)還可以通過instfix -i |grep AIX_ML查看實際文件集情況:

# instfix -i |grep AIX_ML
    All filesets for 5.3.0.0_AIX_ML were found.
    All filesets for 5300-01_AIX_ML were found.
    All filesets for 5300-02_AIX_ML were found.
    All filesets for 5300-03_AIX_ML were found.
    All filesets for 5300-04_AIX_ML were found.
    All filesets for 5300-05_AIX_ML were found.
    All filesets for 5300-06_AIX_ML were found.
    All filesets for 5300-07_AIX_ML were found.
    All filesets for 5300-08_AIX_ML were found.
    All filesets for 5300-09_AIX_ML were found.
    All filesets for 5300-10_AIX_ML were found.

說明:補丁已經打到10並且打全,如果補丁沒有打全(以5300-10爲例)會顯示:Not all filesets for 5300-10_AIX_ML were found.

(3)如果補丁沒有打全如5300-10還可以查看105300-10缺哪些文件文件:

# oslevel -rl 5300-10

二、下載AIX5.3所需最新補丁(以補丁包5300-12爲例)

1.補丁下載地址:http://www-933.ibm.com/support/fixcentral/

2.補丁下載好後,將補丁包上傳至小型機相應目錄。(可通過FTP軟件如:FlashFXP上傳)

注意:2012年1月31號後下載需要先註冊。

三、補丁安裝。

1、查看升級前系統狀態。

errpt  沒有異常;
df –g  檢查文件系統使用率沒有超過80%或者未使用空間大小超過100M;
lsps –s  檢查swap使用率,最好不要超過20%;
lsvg –l rootvg  沒有看到stale的邏輯卷;
lsdev –Cc processor  看到CPU個數正確;
ifconfig –a  看到網卡狀態爲UP。
Lppchk -v   執行無異常

2、確定系統正常後,製作系統級全備份 mksysb至磁帶,

smit mksysb
     ----Backup Device or File
      選擇【/dev/rmt0】
     等到屏幕顯示OK後拿出磁帶. 這時候, 系統備份完成。如圖:
 

3、升級操作:

(1)停止AIX系統上的所有應用(down)。

(2)對主機上在此次系統補丁安裝之前所安裝的補丁作COMMIT操作

1)   以root用戶登錄主機

2)   Smit commit

對主機在此次系統補丁安裝之前的補丁進行commit操作:SOFTWARE name 選擇all,PREVIEW only 選擇no,COMMIT requistites 選擇yes,EXTEND file system if space needed 選擇yes,DETAILED output選擇yes,回車。如圖:

 

注意:如發現有fail等報錯信息,請停止升級。

(3)以Preview方式預安裝補丁,檢查預安裝結果

1)   以root用戶登錄主機

2)   smit update_all

3)   INPUT device/directory for software中輸入補丁文件的絕對路徑;

4)   選擇Preview預安裝系統補丁:PREVIEW only 選擇yes;COMMIT software updates選擇yes,SAVE replaced files選擇yes,DETAILED output選擇yes,ACCEPT new license agreement選擇yes,回車。如圖:

 注意:檢查是否有報錯信息。

 

  (4)以Apply方式安裝補丁,檢查安裝結果

1)以root用戶登錄主機

2) cd到補丁存放目錄

3) smit update_all

4) 安裝系統補丁:REVIEW only 選擇no;COMMIT software updates選擇No,SAVE replaced files選擇yes,DETAILED output選擇yes,ACCEPT new license agreement選擇yes,回車。

如圖:

注意:檢查是否有報錯信息


(5)查看補丁安裝情況。

lslpp -l |grep -i APPLIED |more 可以看到安裝的系統補丁,狀態爲applied;
oslevel-r看到當前操作系統維護級別;

instfix –vi|grep –i ML|more 可以查看到已經安裝的補丁

(6)一般情況AIX系統補丁安裝不需要重啓,但爲保證系統的穩定性建議重啓。

# shutdown -Fr(以下爲重啓信息)

SHUTDOWN PROGRAM
Sun Feb 26 15:35:58 BEIST 2012
0513-044 The sshd Subsystem was requested to stop.

Wait for 'Rebooting...' before stopping.
Error reporting has stopped.
Advanced Accounting has stopped...
Process accounting has stopped.
nfs_clean: Stopping NFS/NIS Daemons
0513-004 The Subsystem or Group, nfsd, is currently inoperative.
0513-044 The biod Subsystem was requested to stop.
0513-044 The rpc.lockd Subsystem was requested to stop.
0513-044 The rpc.statd Subsystem was requested to stop.
0513-004 The Subsystem or Group, gssd, is currently inoperative.
0513-004 The Subsystem or Group, nfsrgyd, is currently inoperative.
0513-004 The Subsystem or Group, rpc.mountd, is currently inoperative.
0513-044 The qdaemon Subsystem was requested to stop.
All processes currently running will now be killed...
Unmounting the file systems...
umount: 0506-349 Cannot unmount /dev/hd10opt: The requested resource is busy.

(7)重啓後檢查系統運行狀態

errpt 沒有異常;
df –g檢查文件系統使用率沒有超過80%或者未使用空間大小超過100M;
lsps –s檢查swap使用率,最好不要超過20%;
lsvg –l rootvg沒有看到stale的邏輯卷;
lsdev –Cc processor看到CPU個數正確;
ifconfig –a看到網卡狀態爲UP。
Lppchk -v 執行無異常
 


 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章