介绍
从 AIX7.2 开始, AIX 提供了在线升级功能( LiveUpdate ),该功能支持升级 AIX 系统内核时不用关闭系统。通过该功能,管理员可以在线安装 AIX ifix , ServicePack , Technical Levels ,整个过程不用停系统上的应用。
该功能在实现过程中,需要额外的存储磁盘,主机资源等,管理员需要操作存储、 HMC 及系统,因而整个过程相对复杂。为了方便操作,从 AIX 7.2.2 开始,如果当前系统是 PowerVC 纳管的系统, AIX 提供了基于 PowerVC 的自动化在线升级实现。本文将介绍利用 PowerVC 实现在线升级的整个过程。
利用 PowerVC 在线升级
针对 PowerVC 在线升级,可以通过下面两种方式实现:
1 )自己先手动升级操作系统,然后通过 geninstall 调用 PowerVC 完成在线迁移,从而在业务不间断情况下实现升级所需的系统重启;
2 )利用命令 geninstall 直接升级操作系统,然后调用 PowerVC 完成在线迁移,从而在业务不间断情况下实现升级所需的系统重启。
本次实验采用第一种方式,这种方式的好处是可以让管理员以自己熟悉的方式完成系统升级包安装,可以及时发现并解决升级过程中的错误。
下面是在线升级过程的详细步骤:
1 ) 现有环境信息:
# hostname
liveu7232
# oslevel -s
7200-03-02-1846
2 ) 配置 PowerVC :
配置 PowerVC
# pvcauth -u root -a 10.152.6.66
Enter PowerVC password:
验证 PowerVC 配置:
# pvcauth -l
Address : 10.152.6.66
User name: root
Project : ibm-default
Port : 5000
TTL : 5:54:22
升级结果:
正常情况下,安装完补丁后,需要重启系统,下面将通过在线升级命令完成不间断业务的情况下完成重启。
4 ) 在线升级检查:
5 ) 开始在线升级
输入 geninstall –k 开始在线升级。
注:如果想安装和在线升级放一起,使用参数 -d 指定补丁目录。
例: geninstall –k -d /patch
测试输出如下:
# geninstall -k
+-----------------------------------------------------------------------------+
Pre-Live Update Verification...
+-----------------------------------------------------------------------------+
Verifying environment...done
Verifying /var/adm/ras/liveupdate/lvupdate.data file...done
Computing the estimated time for the live update operation...done
Results...
EXECUTION INFORMATION
---------------------
LPAR: liveu7232
PowerVC: 10.152.6.66
user: root
Blackout time(in seconds): 8
Total operation time(in seconds): 1635
<< End of Information Section >>
+-----------------------------------------------------------------------------+
Live Update Requirement Verification...
+-----------------------------------------------------------------------------+
INFORMATION
-----------
INFO: Any system dumps present in the current dump logical volumes will not be available after live update is complete.
<< End of Information Section >>
+-----------------------------------------------------------------------------+
Live Update Preview Summary...
+-----------------------------------------------------------------------------+
The live update preview succeeded.
Non-interruptable live update operation begins in 10 seconds.
Broadcast message from root@liveu7232 (pts/0) at 13:35:29 ...
Live AIX update in progress.
Initializing live update on original LPAR.
Validating original LPAR environment.
Beginning live update operation on original LPAR.
Requesting resources required for live update.
................
Notifying applications of impending live update.
Creating rootvg for boot of surrogate.
................................................................................................
Starting the surrogate LPAR.
....................................................................................................................................................................................................................................................................
Creating mirror of original LPAR's rootvg.
........................................................
Moving workload to surrogate LPAR.
............
Blackout Time started.
Blackout Time end.
Workload is running on surrogate LPAR.
................................................................................................................................................................................................................
Shutting down the Original LPAR.
............................................
The live update operation succeeded.
Broadcast message from root@liveu7232 (pts/0) at 14:05:59 ...
Live AIX update completed.
6 ) 后续 lvup_rootvg 清除
在线升级完成后,系统会多出一个vg: lvup_rootvg,该VG 是原有迁移机的 rootvg 盘,该盘需要等下次系统重启后,通过 clvupdate -v 命令调用 PowerVC 清除。
下图展示了系统重启后,清理 lvup_rootvg 的过程
总结
在 PowerVC 虚机管理环境下,在线升级过程变得简单,仅需 3 步就可完成:
1) 系统利用 pvcauth 配置 PowerVC
2) 手动安装补丁(可选)
3) 利用 geninstall 完成在线升级
整个过程完全不需要客户操作存储, HMC ,大大提高了可用性。
如果觉得我的文章对您有用,请点赞。您的支持将鼓励我继续创作!
赞2
添加新评论1 条评论
2021-01-28 18:23