怎麼樣安裝AIX 補丁或者補丁集

lenx2000發表於2009-08-29


AIX補丁軟體的分類及安裝方法

軟體組成

Fileset:一組實現特定功能檔案Files)的集合。可安裝的最小單位。
Package:一組具有相同功能的Filesets的集合。可安裝的單個對映(Images)。
LPP:一個包含所有與本LPP有關的FilesetsPackages的完整的軟體產品。
Bundle:一組用於特定環境的FilesetsPackages的集合。

Bundle的種類:
App-Dev:應用程式開發所需的程式和工具
Client:在client/server環境下,作為Client執行所需的程式
Graphics-startup:執行X-Windows所需的程式(不如Pers-Prod中的功能全)
Hdwr-Diag:執行硬體測試所需的程式
Pers-Prod:提供完整功能的圖形環境所需的程式
Server:在client/server環境下,作為Server執行所需的程式(提供完整的系統管理功能)

軟體的三種狀態:
Apply:軟體處於應用狀態,但未被提交(Commit
Commit:軟體已經提交
Reject:軟體被從系統中刪除

注意:安裝軟體時,可用如下命令
# smit easy_install
指定欲安裝的Bundles
一般選擇安裝App-DevServer兩個Bundles

# lslpp [–l | –h] 系統軟體列表
-l:列出已安裝的軟體清單
-h:列出軟體安裝的歷史清單

# lppchk [–c | –v | –l]校驗系統軟體的正確性和完整性
-c:執行校驗和(checksum)及檔案大小檢查,校驗其是否和SVPDSoftware Vital Product
Database:軟體的重要產品資料庫)中的一致
-v:校驗系統的三個部分(//usr/usr/share)是否有效,是否有丟失的PTF
-l:校驗系統的符號連線(Symbolic Links)是否有改變

# instfix –T [–iv] [–s String | –k Keyword | –f File_Name] [–d Device_Name]安裝、查詢Fixs
-T:顯示完整的Fileset內容清單
-s Sting:顯示並查詢包含指定的字串的Fileset
-iv:只顯示詳細的內容列表,而不進行安裝
-k Keyword:安裝包含指定關鍵字(Keyword)或糾錯碼(Fix)的Fileset
-f File_Name:安裝包含多個指定關鍵字或糾錯碼的Fileset
-d Device_Name:指定輸入裝置
如:
顯示詳細的Fileset內容列表:
# instfix –Tvi
從磁帶上安裝包含指定關鍵字的Fileset
# instfix –k Keyword –d /dev/rmt0.1
CDROM上查詢包含指定字串的Fileset
# instfix –s String –d /dev/cd0

oslevel可以返回主版本與ML補丁資訊

#oslevel -r

5200-06

其中5200是主版本號,06ML小版本號,可以用instfix檢視詳細資訊

#instfix -i|grep ML

    All filesets for 5.2.0.0_AIX_ML were found.

    All filesets for 5200-01_AIX_ML were found.

    All filesets for 5200-02_AIX_ML were found.

    All filesets for 5200-03_AIX_ML were found.

    All filesets for 5200-04_AIX_ML were found.

    All filesets for 5200-05_AIX_ML were found.

    All filesets for 5200-06_AIX_ML were found.

Aix 5.3以上,透過-s引數,還可以檢視更詳細的sp版本,如:

#oslevel -s

5300-05-04

如果想檢查哪個詳細的補丁是否安裝,則需要用如下的格式

#/usr/sbin/instfix -a -ivk IY59082

    IY59082 Abstract: system hang with jfs2 and heavy load

    IY59082 Symptom Text:

     Heavily loaded system running JFS2 filesystems may hang.

     (Or a single thread may hang on stuck I/O)

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

      Fileset bos.mp:5.2.0.41 is applied on the system.

      Fileset bos.mp64:5.2.0.41 is applied on the system.

      Fileset bos.up:5.2.0.41 is applied on the system.

      All filesets for IY59082 were found.

如果檢查檔案集(filesets)是否安裝,則需要用如下的命令

#lslpp -l bos.adt.libm

      Fileset             Level      State       Description

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

    Path: /usr/lib/objrepos

      bos.adt.libm              5.2.0.50  COMMITTED  Base Application Development

                                                     Math Library

1、安裝檔案集

#smit install_latest

選擇安裝路徑,如/dev/cd0

INPUT device / directory for software [/dev/cd0]

在安裝的軟體選項上按F4或者是Esc 4,開啟軟體列表,可以用“/”尋找你需要安裝的檔案集。如找到bos.adt,然後按F7或者Esc 7選中要安裝的軟體:

    > bos.adt                                                            ALL

     5.2.0.50  Base Application Development Debuggers

     5.2.0.40  Base Application Development Graphics Include Files

     5.2.0.50  Base Application Development Libraries

     5.2.0.50  Base Application Development Math Library

     5.2.0.50  Base Application Development Toolkit

     5.2.0.0  Base Application Development Toolkit Data

     5.2.0.50  Base Application Development Utilities - lex and yacc

     5.2.0.50  Base Operating System Samples

     5.2.0.0  Printer Support Development Toolkit

     5.2.0.0  SCCS Application Development Toolkit

     5.2.0.50  System Calls Application Development Toolkit

     5.2.0.40  Tool to Create installp Packages

回車,確定安裝選項

    PREVIEW only? (install operation will NOT occur)              no

    COMMIT software updates?                                      yes

    SAVE replaced files?                                          no

    AUTOMATICALLY install requisite software?                     yes

    EXTEND file systems if space needed?                          yes

    OVERWRITE same or newer versions?                             no

    VERIFY install and check file sizes?                          no

    Include corresponding LANGUAGE filesets?                      yes

    DETAILED output?                                              no

    Process multiple volumes?                                     yes

    ACCEPT new license agreements?                                no

    Preview new LICENSE agreements?                               no

其中

PREVIEW only表示預覽安裝,如果選yes可以先安裝

COMMIT software updates表示立即提交,如果選為yes,則SAVE replaced filesno

ACCEPT new license agreements一般選為yes,表示接受許可協議。

確定後,回車開始安裝。

2、安裝補丁

#smit update_by_fix

選擇安裝目錄,如

INPUT device / directory for software [/dev/cd0]

開啟安裝列表,選擇需要安裝的patch,如

      IY35795 smitty causes an error of invalid length of strings in JA_JP

    > IY35810 Enhanced concurrent extendvg with 3 or more nodes may fail

      IY35817 pthread debug resource owner broken for 64-bit mode

確定安裝選項,是否提交,是否儲存過去的版本等等,確定後提交執行安裝。

3、安裝補丁集

先把補丁集複製到一定目錄,

/u01/5206update,然後執行

#smit update_all

選擇安裝目錄/u01/5206update

預設

SOFTWARE to update [_update_all]

選擇不提交,儲存被覆蓋的檔案,可以回滾操作,接受許可協議

    COMMIT software updates?                          no

    SAVE replaced files?                              yes

    ACCEPT new license agreements?                    Yes

然後回車執行安裝。

注意:如果一個安裝剛結束,可能影響到另外一個安裝,可以刪除當前安裝目錄下的.toc檔案

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

相關文章