怎么样安装AIX 补丁或者补丁集

检查OS的版本,与补丁信息
oslevel可以返回主版本与ML补丁信息

#oslevel -r

5200-06
其中5200是主版本号,06是ML小版本号,可以用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 files为no。

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
然后回车执行安装
参与7

6同行回答

yulu4314yulu4314技术支持长春
系统打补丁最重要了,好文章。显示全部
系统打补丁最重要了,好文章。收起
系统集成 · 2010-07-27
浏览1476
wskwskwskwsk软件架构设计师直真
真的是好文章显示全部
真的是好文章收起
IT其它 · 2015-09-18
浏览1447
neilruleneilrule系统运维工程师zhou
看了。顶一下显示全部
看了。顶一下收起
金融其它 · 2015-09-15
浏览1390
袁龙问问123袁龙问问123专业技术支持人员武汉英凯科技有限公司
学习 哈子显示全部
学习 哈子收起
IT分销/经销 · 2010-08-16
浏览1433
feizi111feizi111系统工程师深圳市科维思信息技术有限公司
学习一下显示全部
学习一下收起
互联网服务 · 2010-08-06
浏览1438
zhenzongjianzhenzongjian软件开发工程师na
不错.打补丁用显示全部
不错.打补丁用收起
互联网服务 · 2010-07-27
浏览1395

提问者

deadman
擅长领域: 服务器存储Unix

相关问题

相关资料

问题状态

  • 发布时间:2010-07-27
  • 关注会员:0 人
  • 问题浏览:7108
  • 最近回答:2015-09-18
  • X社区推广