Chinaunix首页 | 论坛 | 博客
  • 博客访问: 77012
  • 博文数量: 10
  • 博客积分: 40
  • 博客等级: 民兵
  • 技术积分: 238
  • 用 户 组: 普通用户
  • 注册时间: 2010-07-20 13:45
个人简介

文章分类

全部博文(10)

文章存档

2013年(10)

我的朋友

分类: AIX

2013-01-30 22:35:03

 

环境:

当前操作系统版本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

再执行# lslpp -h|grep APPLY

均变成COMMIT状态

 

3、将升级光盘或ISO文件传到机器上

 

4、升级前先备份OS

 

5# smitty update_all

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官网下载升级包

 

升级完后

# 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是否回退到之前的版本。

阅读(3713) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~