为乌达等地区用户提供了全套网页设计制作服务,及乌达网站建设行业解决方案。主营业务为成都网站建设、网站建设、乌达网站设计,以传统方式定制建设网站,并提供域名空间备案等一条龙服务,秉承以专业、用心的态度为用户提供真诚的服务。我们深信只要达到每一位用户的要求,就会得到认可,从而选择与我们长期合作。这样,我们也可以走得更远!
一、 目的
由于各种原因,需要将AIX操作系统升级补丁
二、 当前环境
AIX 6100-08-02-1316
# oslevel -sq
Known Service Packs
-------------------
6100-08-02-1316
6100-08-01-1245
6100-08-00-0000
6100-07-06-1241
6100-07-05-1228
6100-07-04-1216
6100-07-03-1207
6100-07-02-1150
6100-07-01-1141
6100-06-10-1241
6100-06-09-1228
6100-06-08-1216
6100-06-07-1207
6100-06-06-1140
6100-06-05-1115
6100-06-04-1112
6100-06-03-1048
6100-06-02-1044
6100-06-01-1043
6100-05-09-1228
6100-05-08-1207
6100-05-07-1140
6100-05-06-1119
6100-05-05-1112
6100-05-04-1048
6100-05-03-1036
6100-05-02-1034
6100-05-01-1016
6100-04-11-1140
6100-04-10-1119
6100-04-09-1112
6100-04-08-1048
6100-04-07-1036
6100-04-06-1034
6100-04-05-1015
6100-04-04-1014
6100-04-03-1009
6100-04-02-1007
6100-04-01-0944
6100-03-10-1119
6100-03-09-1112
6100-03-08-1048
6100-03-07-1036
6100-03-06-1034
6100-03-05-1015
6100-03-04-1014
6100-03-03-0943
6100-03-02-0939
6100-03-01-0921
6100-02-10-1036
6100-02-09-1034
6100-02-08-1015
6100-02-07-1014
6100-02-06-0943
6100-02-05-0939
6100-02-04-0920
6100-02-03-0909
6100-02-02-0849
6100-02-01-0847
6100-01-09-1015
6100-01-08-1014
6100-01-07-0943
6100-01-06-0939
6100-01-05-0920
6100-01-04-0909
6100-01-03-0846
6100-01-02-0834
6100-01-01-0823
6100-00-11-0943
6100-00-10-0939
6100-00-09-0920
6100-00-08-0909
6100-00-07-0846
6100-00-06-0834
6100-00-05-0822
6100-00-04-0815
6100-00-03-0808
6100-00-02-0750
6100-00-01-0748
三、 下载补丁
http://www-933.ibm.com/support/fixcentral/
四、 将下载的补丁包上传到服务器上
4.1 先查询有没有包是APPLY状态,如果是APPLY状态,要将其置为COMMITED状态
执行# lslpp -h|grep APPLY
查看
将APPLY状态的包变成COMMIT状态
# smitty commit
4.2 升级包
升级前先备份OS
# smitty update_all
COMMIT选NO,SAVE必须选YES,不然回不了头
升级完后:
# oslevel -sq
Known Service Packs
-------------------
6100-08-04-1341
6100-08-03-1339
6100-08-02-1316
6100-08-01-1245
6100-08-00-0000
6100-07-09-1341
6100-07-08-1339
6100-07-07-1316
6100-07-06-1241
6100-07-05-1228
6100-07-04-1216
6100-07-03-1207
6100-07-02-1150
6100-07-01-1141
6100-06-12-1339
6100-06-11-1316
6100-06-10-1241
6100-06-09-1228
6100-06-08-1216
6100-06-07-1207
6100-06-06-1140
6100-06-05-1115
6100-06-04-1112
6100-06-03-1048
6100-06-02-1044
6100-06-01-1043
6100-05-09-1228
6100-05-08-1207
6100-05-07-1140
6100-05-06-1119
6100-05-05-1112
6100-05-04-1048
6100-05-03-1036
6100-05-02-1034
6100-05-01-1016
6100-04-11-1140
6100-04-10-1119
6100-04-09-1112
6100-04-08-1048
6100-04-07-1036
6100-04-06-1034
6100-04-05-1015
6100-04-04-1014
6100-04-03-1009
6100-04-02-1007
6100-04-01-0944
6100-03-10-1119
6100-03-09-1112
6100-03-08-1048
6100-03-07-1036
6100-03-06-1034
6100-03-05-1015
6100-03-04-1014
6100-03-03-0943
6100-03-02-0939
6100-03-01-0921
6100-02-10-1036
6100-02-09-1034
6100-02-08-1015
6100-02-07-1014
6100-02-06-0943
6100-02-05-0939
6100-02-04-0920
6100-02-03-0909
6100-02-02-0849
6100-02-01-0847
6100-01-09-1015
6100-01-08-1014
6100-01-07-0943
6100-01-06-0939
6100-01-05-0920
6100-01-04-0909
6100-01-03-0846
6100-01-02-0834
6100-01-01-0823
6100-00-11-0943
6100-00-10-0939
6100-00-09-0920
6100-00-08-0909
6100-00-07-0846
6100-00-06-0834
6100-00-05-0822
6100-00-04-0815
6100-00-03-0808
6100-00-02-0750
6100-00-01-0748
为了新系统生效,需要重启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是否回退到之前的版本。
分享题目:升级AIX补丁
URL链接:http://scgulin.cn/article/ppcisp.html