aix5.3rsync迁移_使用nimadm迁移到AIX 6.1

最近,我一直在忙于将整个AIX环境从AIX 5.3升级到AIX 6.1。 我的环境包含近100个AIX LPAR。 当面临这样的挑战时,我始终会考虑如何快速,高效,以最小的客户干扰来最好地实现这一目标。

AIX OS提供了网络安装管理器(NIM),以协助管理和更新大量的AIX系统。 该工具的一个不错的功能是NIM备用磁盘迁移( nimadm )工具。 就像您将很快看到的那样,使用该工具使您可以执行AIX迁移而无需长时间停机。

在本文中,我将演示我们用于迁移AIX系统的nimadm过程。 我假设您已经非常熟悉AIX和NIM。 我还要假设您的环境中已经有NIM主设备。 如果没有,建议您先阅读“ 相关主题”部分中的文档。

总览

多年来,我已迁移到AIX OS的多个新发行版。 为此,我通常会使用一种常规方法。 这些方法包括A)使用AIX安装DVD迁移或B)使用NIM迁移。 即使在虚拟环境中,通过使用文件支持的设备 ,方法A仍然可行。 通过网络启动客户端LPAR并使用NIM执行迁移,方法B也是完全可行的。

这两种方法的不利之处在于,它们在迁移时都需要在LPAR上花费大量的停机时间。 根据系统的不同,此停机时间可能在30-45分钟到几个小时不等。 在停机窗口紧密的环境中,这可能是一个问题。

与常规迁移相比, nimadm实用程序具有多个优点。 例如,系统管理员可以使用nimadm (在客户机的备用磁盘上,类似于标准备用磁盘安装alt_disk_install )创建NIM客户机的rootvg副本,并将该磁盘迁移到AIX的较新版本或发行版。 所有这些都可以在不中断客户端的情况下完成(执行迁移不需要中断)。 迁移完成后,所需的唯一停机时间将是按计划重新启动系统。

另一个优点是实际的迁移过程发生在NIM主服务器上,从而减轻了客户端LPAR的负担。 这减少了LPAR上的处理开销,并将对运行中的应用程序的性能影响最小化。

对于拥有大量AIX系统的客户来说,同样重要的是要注意nimadm工具支持一次迁移多个客户。

总而言之,这些是nimadm相对于其他迁移方法的优势:

  • 减少了客户的停机时间。 在系统启动并正常运行时执行迁移。 客户端上运行的任何应用程序或服务都不会中断。 因此,可以在管理员方便的时候进行升级。 在稍后的阶段,可以计划重新引导,以便在更高级别的AIX上重新启动系统。
  • nimadm过程非常灵活,可以使用一些可选的NIM自定义资源进行自定义,例如image_data,bosinst_data,pre / post_migration脚本,exclude_files等。
  • 从迁移失败中快速恢复。 所有更改都在rootvg副本(altinst_rootvg)上执行。 如果迁移存在任何严重问题,则原始rootvg仍然可用,并且系统不受影响。 如果迁移失败或在任何阶段终止, nimadm可以从事件中快速恢复并随后进行清理。 管理员除了确定迁移失败的原因,纠正这种情况并再次尝试执行nimadm流程外,几乎无能为力。 如果迁移已完成,但是在重新引导后发现问题,则管理员可以通过从原始rootvg磁盘引导轻松退出。

制备

在尝试使用nimadm迁移到AIX 6.1之前,必须满足一些要求。 我在这里只提及其中一些。 我建议您查看nimadm的在线文档或《 IBM NIM红皮书》以获取更多信息(请参阅本文末尾的“ 相关主题”部分)。

  • 您必须具有运行AIX 6.1或更高版本且具有最新技术级别或更高版本的NIM主机。
  • NIM主服务器必须在自己的rootvg和将用于迁移的SPOT中安装bos.alt_disk_install.rte文件集。 两者必须处于同一级别。 不必在客户端上安装备用磁盘实用程序。
  • 为迁移选择的lpp_source和SPOT NIM资源必须与要迁移到的AIX级别相匹配。
  • NIM主服务器(与往常一样)应与要在客户端上迁移到的级别处于相同或更高的AIX级别。
  • 目标客户端必须向NIM主服务器注册为独立的NIM客户端。
  • NIM主机必须能够使用rsh在客户端上执行远程命令。
  • 确保NIM客户端具有足够大的备用磁盘(未分配给卷组),以包含其rootvg的完整副本。 如果rootvg已镜像,请断开镜像并使用其中一张磁盘进行迁移。
  • 确保客户端NIM主服务器具有一个卷组(例如nimadmvg),该卷组具有足够的可用空间来满足客户端rootvg的完整副本。 如果多个NIM客户端正在进行多个AIX迁移,请确保每个客户端rootvg的副本都有容量。

本地磁盘缓存与NFS

默认情况下, nimadm工具在迁移过程中将NFS用于许多任务。 在较慢的网络上这可能是个问题,因为NFS写入可能会非常昂贵。 为了避免使用NFS,存在可以提供一些性能优势的“ 本地磁盘缓存”选项。

本地磁盘缓存使NIM主控机不必使用NFS写入客户端。 如果nimadm操作由于NFS写入瓶颈而无法正常运行,这将很有用。

如果调用了本地磁盘缓存功能,那么nimadm将在NIM主服务器上的卷组中创建客户端文件系统。 然后,它将使用流(通过rshd)将所有数据从客户端缓存到NIM主服务器上的文件系统。

与NFS相比,本地磁盘缓存的优势可以概括为:

  • 相对慢速网络上的nimadm操作的性能有所提高。
  • 提高了NFS写入瓶颈中的nimadm操作的性能。
  • 减少客户端上的CPU使用率。
  • 客户端文件系统未导出。
  • 允许使用nimadm迁移启用TCB的系统。

本地磁盘缓存的一些潜在缺点是:

  • 高速缓存文件系统占用NIM主服务器上的空间。 NIM主服务器上的卷组中必须有足够的磁盘空间来承载客户端的rootvg文件系统,以及用于迁移每个客户端的一些空间。
  • NIM主站上的CPU使用率增加。
  • 主服务器上的I / O增加。 为了获得最佳性能,请在NIM主服务器上使用不包含用于AIX迁移的NIM资源的卷组。

出于性能原因,我们在环境中使用nimadm部署了本地磁盘缓存。

nimadm命令分12个阶段执行迁移。 在执行迁移之前,对每个阶段都有一些了解是很有用的。

  1. 主服务器向客户端发出alt_disk_install命令,该命令将客户端rootvg的副本复制到目标磁盘。 在此阶段,将创建备用根卷组(altinst_rootvg)。
  2. NIM主机在nimadmvg卷组中创建缓存文件系统。 对所需的迁移磁盘空间进行了一些初始检查。
  3. NIM主服务器将NIM客户端的数据复制到nimadmvg中的缓存文件系统。 该数据复制是通过rsh完成的。
  4. 如果已指定了迁移前脚本资源,则此时将执行它。
  5. 系统配置文件已保存。 计算初始迁移空间,并进行适当的文件系统扩展。 还原bos映像并合并设备数据库(类似于常规迁移)。 所有迁移合并方法都将执行,并且会进行一些其他处理。
  6. 所有系统文件集都使用installp迁移。 在此阶段,还将安装所有必需的RPM映像。
  7. 如果已指定迁移后脚本资源,则此时将执行它。
  8. 运行bosboot命令以创建客户端引导映像,该映像将写入客户端的备用引导逻辑卷(alt_hd5)。
  9. 现在,所有迁移的数据都从NIM主服务器的本地缓存文件中复制,并通过rsh同步到客户端的备用rootvg。
  10. NIM主站会清理并删除本地缓存文件系统。
  11. 再次调用alt_disk_install命令进行最终调整,并使altinst_rootvg进入睡眠状态。 引导列表设置为目标磁盘。
  12. 执行清理以结束迁移。

如果您无法满足阶段1到10的要求,则应考虑执行常规迁移。

在介绍nimadm示例之前,我只想补充几点,供您首先考虑。

  • 我建议您不要在迁移正在进行后对系统进行任何更改,例如添加用户,更改密码,添加打印队列等。 如果可能,请等到迁移完成并在新版本的AIX上重新引导系统。 如果必须在重新引导之前执行管理任务,则应注意所做的更改,并在将其重新引导到AIX 6.1之后将其重新应用到系统中。
  • 在将其迁移到生产系统上之前,我们多次开发,测试和验证了迁移程序。 这使我们有时间验证步骤是否正确以及AIX迁移将按预期完成。 我建议您也这样做。
  • 如果rootvg中有multibos映像,请将其删除。 支持Multibos的系统不支持 AIX迁移。 确保将所有rootvg LV重命名为其旧名称。 如有必要,请创建新的rootvg实例,然后重新引导LPAR。 例如:
# multibos –sXp
	# multibos –sX
	# shutdown –Fr

确认现在正在使用旧版LV名称, 而不是bos_。

# lsvg -l rootvg | grep hd | grep open
	hd6           paging     80      160     2    open/syncd    N/A
	hd8           jfs2log    1       2       2    open/syncd    N/A
	hd4           jfs2       1       2       2    open/syncd    /
	hd2           jfs2       7       14      2    open/syncd    /usr
	hd3           jfs2       16      32      2    open/syncd    /tmp
	hd1           jfs2       1       2       2    open/syncd    /home
	hd9var        jfs2       8       16      2    open/syncd    /var
	hd7           sysdump    8       8       1    open/syncd    N/A
	hd7a          sysdump    8       8       1    open/syncd    N/A
	hd10opt       jfs2       8       16      2    open/syncd    /opt

删除旧的multibos实例。

# multibos -R

使用nimadm迁移到AIX 6.1

现在让我们使用nimadm迁移AIX系统。 在执行任何维护活动之前,请确保您记录了系统并执行mksysb。 你已经知道了吧? 但是我必须说!

我们将把系统从AIX 5.3迁移到AIX 6.1。 此环境中的NIM主服务器正在运行AIX 6.1 TL3 SP2。 我们的NIM客户端名称是aix1(运行AIX 5.3 TL7 SP5并迁移到AIX 6.1 TL3 SP1),NIM主服务器名称是nim1。

确保您阅读了AIX 6.1发行说明,并查看了已记录的要求,例如所需的可用磁盘空间量。

在进行迁移之前,始终最好在系统上运行pre_migration脚本以捕获可能阻止迁移成功完成的所有问题。 您可以在AIX 6.1安装介质上找到此脚本。

运行此脚本,查看输出(在/ home / pre_migration中),并在迁移之前更正其报告的所有问题。

#./pre_migration
	
All saved information can be found in: /home/pre_migration.090903105452

Checking size of boot logical volume (hd5).
	
Your rootvg has mirrored logical volumes (copies greater than 1)
Recommendation:  Break existing mirrors before migrating.
	
Listing software that will be removed from the system.

Listing configuration files that will not be merged.
	
Listing configuration files that will be merged.
	
Saving configuration files that will be merged.
	
Running lppchk commands. This may take awhile.
	
Please check /home/pre_migration.090903105452/software_file_existence_check 
for possible errors.
	
Please check /home/pre_migration.090903105452/software_checksum_verification 
for possible errors.
	
Please check /home/pre_migration.090903105452/tcbck.output for possible errors.
	
All saved information can be found in: /home/pre_migration.090903105452
	
It is recommended that you create a bootable system backup of your system
before migrating.

在进行AIX迁移之前,我总是复制/etc/sendmail.cf和/ etc / motd文件。 这些文件将在迁移期间被替换,您将需要再次编辑它们并添加您的修改。

提交所有已应用的文件集。 您还应该考虑删除所有可能阻碍迁移的ifix。

如果rootvg已镜像,则断开镜像并将其缩小为单个磁盘。 这给了我一个备用磁盘,可用于迁移。

为了使nimadm能够完成其工作,我必须在客户端LPAR上临时启用rshd。 迁移后,我将再次禁用它。

# chsubserver -a -v shell -p tcp6 -r inetd 
	# refresh –s inetd
	# cd /
	# rm .rhosts
	# vi .rhosts
	+
	# chmod 600 .rhosts

现在,在NIM主服务器上,我可以“ rsh”到客户端并以root用户身份运行命令。

# rsh aix1 whoami
	root

至此,我准备迁移了。 该过程大约需要30-45分钟; 一直以来,LPAR上的应用程序将继续正常运行。

在NIM主机上,我创建了一个名为nimadmvg的新卷组(VG)。 该VG具有足够的容量来满足NIM客户端根卷组(rootvg)的完整副本。 在开始迁移之前,此VG将为空。

同样,在NIM客户端上,我有一个备用磁盘,该磁盘具有足够的容量来存储其rootvg的完整副本。

在主服务器(nim1)上:

# lsvg -l nimadmvg
	nimadmvg:
	LV NAME  TYPE       LPs     PPs     PVs  LV STATE      MOUNT POINT

在客户端(aix1)上:

# lspv 
	hdisk0 0000273ac30fdcfc rootvg          active
	hdisk1 000273ac30fdd6e  None

文件集bos.alt_disk_install.rte文件集已安装在NIM主服务器上:

# lslpp -l bos.alt_disk_install.rte
  Fileset                      Level  State      Description
  ----------------------------------------------------------------------------
Path: /usr/lib/objrepos
  bos.alt_disk_install.rte   6.1.3.1  APPLIED    Alternate Disk Installation
                                                 Runtime

而且它也安装在AIX 6.1 TL3 SP1 SPOT中:

# nim -o showres 'spotaix61031'  | grep bos.alt_disk_install.rte
  bos.alt_disk_install.rte   6.1.3.1    C     F    Alternate Disk Installation

nimadm命令是从NIM主设备执行的。

# nimadm -j nimadmvg -c aix1 -s spotaix61031 -l lppsourceaix61031 -d "hdisk1" –Y

哪里:

  • -j标志指定将用于迁移的主服务器上的VG
  • -c是客户端名称
  • -s是SPOT名称
  • -l是lpp_source名称
  • -d是备用根卷组(altinst_rootvg)的hdisk名称
  • –Y同意要在迁移期间安装的软件的软件许可协议。

现在我可以坐下来观看迁移了。 所有迁移活动都记录在/ var / adm / ras / alt_mig目录中的NIM主机上。 对于此迁移,日志文件名为aix1_alt_mig.log。 这是每个阶段可以看到的一些输出示例:

MASTER DATE: Mon Nov  9 14:29:09 EETDT 2009
CLIENT DATE: Mon Nov  9 14:29:09 EETDT 2009
NIMADM PARAMETERS: -j nimadmvg -c aix1 -s spotaix61031 -l lppsourceaix61031 -d hdisk1 -Y
Starting Alternate Disk Migration.

+----------------------------------------------------------------------+
Executing nimadm phase 1.
+----------------------------------------------------------------------+
Cloning altinst_rootvg on client, Phase 1.
Client alt_disk_install command: alt_disk_copy -j -i /ALT_MIG_IMD -M 6.1 -P1 -d "hdisk1"
Checking disk sizes.
Creating cloned rootvg volume group and associated logical volumes.
Creating logical volume alt_hd5.
Creating logical volume alt_hd6.
Creating logical volume alt_hd8.
Creating logical volume alt_hd4.
Creating logical volume alt_hd2.
Creating logical volume alt_hd9var.
Creating logical volume alt_hd3.
Creating logical volume alt_hd1.
Creating logical volume alt_hd10opt.
Creating logical volume alt_hd7.
Creating logical volume alt_local_lv.
Creating logical volume alt_varloglv.
Creating logical volume alt_nmonlv.
Creating logical volume alt_chksyslv.
Creating logical volume alt_hd71.
Creating logical volume alt_auditlv.
Creating logical volume alt_nsrlv.
Creating logical volume alt_hd11admin.
Creating /alt_inst/ file system.
Creating /alt_inst/admin file system.
Creating /alt_inst/home file system.
Creating /alt_inst/home/nmon file system.
Creating /alt_inst/nsr file system.
Creating /alt_inst/opt file system.
Creating /alt_inst/tmp file system.
Creating /alt_inst/usr file system.
Creating /alt_inst/usr/local file system.
Creating /alt_inst/usr/local/chksys file system.
Creating /alt_inst/var file system.
Creating /alt_inst/var/log file system.
Creating /alt_inst/var/log/audit file system.
Generating a list of files
for backup and restore into the alternate file system...
Phase 1 complete.

+----------------------------------------------------------------------+
Executing nimadm phase 2.
+----------------------------------------------------------------------+
Creating nimadm cache file systems on volume group nimadmvg.
Checking for initial required migration space.
Creating cache file system /aix1_alt/alt_inst
Creating cache file system /aix1_alt/alt_inst/admin
Creating cache file system /aix1_alt/alt_inst/home
Creating cache file system /aix1_alt/alt_inst/home/nmon
Creating cache file system /aix1_alt/alt_inst/nsr
Creating cache file system /aix1_alt/alt_inst/opt
Creating cache file system /aix1_alt/alt_inst/tmp
Creating cache file system /aix1_alt/alt_inst/usr
Creating cache file system /aix1_alt/alt_inst/usr/local
Creating cache file system /aix1_alt/alt_inst/usr/local/chksys
Creating cache file system /aix1_alt/alt_inst/var
Creating cache file system /aix1_alt/alt_inst/var/log
Creating cache file system /aix1_alt/alt_inst/var/log/audit

+----------------------------------------------------------------------+
Executing nimadm phase 3.
+----------------------------------------------------------------------+
Syncing client data to cache ...

+----------------------------------------------------------------------+
Executing nimadm phase 4.
+----------------------------------------------------------------------+
nimadm: There is no user customization script specified for this phase.

+----------------------------------------------------------------------+
Executing nimadm phase 5.
+----------------------------------------------------------------------+
Saving system configuration files.
Checking for initial required migration space.
Setting up for base operating system restore.
/aix1_alt/alt_inst
Restoring base operating system.
Merging system configuration files.
Running migration merge method: ODM_merge Config_Rules.
Running migration merge method: ODM_merge SRCextmeth.
Running migration merge method: ODM_merge SRCsubsys.
Running migration merge method: ODM_merge SWservAt.
Running migration merge method: ODM_merge pse.conf.
Running migration merge method: ODM_merge vfs.
Running migration merge method: ODM_merge xtiso.conf.
Running migration merge method: ODM_merge PdAtXtd.
Running migration merge method: ODM_merge PdDv.
Running migration merge method: convert_errnotify.
Running migration merge method: passwd_mig.
Running migration merge method: login_mig.
Running migration merge method: user_mrg.
Running migration merge method: secur_mig.
Running migration merge method: RoleMerge.
Running migration merge method: methods_mig.
Running migration merge method: mkusr_mig.
Running migration merge method: group_mig.
Running migration merge method: ldapcfg_mig.
Running migration merge method: ldapmap_mig.
Running migration merge method: convert_errlog.
Running migration merge method: ODM_merge GAI.
Running migration merge method: ODM_merge PdAt.
Running migration merge method: merge_smit_db.
Running migration merge method: ODM_merge fix.
Running migration merge method: merge_swvpds.
Running migration merge method: SysckMerge.

+----------------------------------------------------------------------+
Executing nimadm phase 6.
+----------------------------------------------------------------------+
Installing and migrating software.
Updating install utilities.
+----------------------------------------------------------------------+
		    Pre-installation Verification...
+----------------------------------------------------------------------+
Verifying selections...done
Verifying requisites...done
Results...

…输出被截断…。

install_all_updates: Generating list of updatable rpm packages.
install_all_updates: No updatable rpm packages found.

install_all_updates: Checking for recommended maintenance level 6100-03.
install_all_updates: Executing /usr/bin/oslevel -rf, Result = 6100-03
install_all_updates: Verification completed.
install_all_updates: Log file is /var/adm/ras/install_all_updates.log
install_all_updates: Result = SUCCESS
Restoring device ODM database.

+----------------------------------------------------------------------+
Executing nimadm phase 7.
+----------------------------------------------------------------------+
nimadm: There is no user customization script specified for this phase.

+----------------------------------------------------------------------+
Executing nimadm phase 8.
+----------------------------------------------------------------------+
Creating client boot image.
bosboot: Boot image is 40952 512 byte blocks.
Writing boot image to client's alternate boot disk hdisk1.

+----------------------------------------------------------------------+
Executing nimadm phase 9.
+----------------------------------------------------------------------+
Adjusting client file system sizes ...
Adjusting size for /
Adjusting size for /admin
Adjusting size for /home
Adjusting size for /home/nmon
Adjusting size for /nsr
Adjusting size for /opt
Adjusting size for /tmp
Adjusting size for /usr
Adjusting size for /usr/local
Adjusting size for /usr/local/chksys
Adjusting size for /var
Adjusting size for /var/log
Adjusting size for /var/log/audit
Syncing cache data to client ...

+----------------------------------------------------------------------+
Executing nimadm phase 10.
+----------------------------------------------------------------------+
Unmounting client mounts on the NIM master.
forced unmount of /aix1_alt/alt_inst/var/log/audit
forced unmount of /aix1_alt/alt_inst/var/log
forced unmount of /aix1_alt/alt_inst/var
forced unmount of /aix1_alt/alt_inst/usr/local/chksys
forced unmount of /aix1_alt/alt_inst/usr/local
forced unmount of /aix1_alt/alt_inst/usr
forced unmount of /aix1_alt/alt_inst/tmp
forced unmount of /aix1_alt/alt_inst/opt
forced unmount of /aix1_alt/alt_inst/nsr
forced unmount of /aix1_alt/alt_inst/home/nmon
forced unmount of /aix1_alt/alt_inst/home
forced unmount of /aix1_alt/alt_inst/admin
forced unmount of /aix1_alt/alt_inst
Removing nimadm cache file systems.
Removing cache file system /aix1_alt/alt_inst
Removing cache file system /aix1_alt/alt_inst/admin
Removing cache file system /aix1_alt/alt_inst/home
Removing cache file system /aix1_alt/alt_inst/home/nmon
Removing cache file system /aix1_alt/alt_inst/nsr
Removing cache file system /aix1_alt/alt_inst/opt
Removing cache file system /aix1_alt/alt_inst/tmp
Removing cache file system /aix1_alt/alt_inst/usr
Removing cache file system /aix1_alt/alt_inst/usr/local
Removing cache file system /aix1_alt/alt_inst/usr/local/chksys
Removing cache file system /aix1_alt/alt_inst/var
Removing cache file system /aix1_alt/alt_inst/var/log
Removing cache file system /aix1_alt/alt_inst/var/log/audit

+----------------------------------------------------------------------+
Executing nimadm phase 11.
+----------------------------------------------------------------------+
Cloning altinst_rootvg on client, Phase 3.
Client alt_disk_install command: alt_disk_copy -j -i /ALT_MIG_IMD -M 6.1 -P3 -d "hdisk1"
## Phase 3 ###################
Verifying altinst_rootvg...
Modifying ODM on cloned disk.
forced unmount of /alt_inst/var/log/audit
forced unmount of /alt_inst/var/log
forced unmount of /alt_inst/var
forced unmount of /alt_inst/usr/local/chksys
forced unmount of /alt_inst/usr/local
forced unmount of /alt_inst/usr
forced unmount of /alt_inst/tmp
forced unmount of /alt_inst/opt
forced unmount of /alt_inst/nsr
forced unmount of /alt_inst/home/nmon
forced unmount of /alt_inst/home
forced unmount of /alt_inst/admin
forced unmount of /alt_inst
Changing logical volume names in volume group descriptor area.
Fixing LV control blocks...
Fixing file system superblocks...
Bootlist is set to the boot disk: hdisk1 blv=hd5

+----------------------------------------------------------------------+
Executing nimadm phase 12.
+----------------------------------------------------------------------+
Cleaning up alt_disk_migration on the NIM master.
Cleaning up alt_disk_migration on client aix1.

迁移完成后,我确认引导列表已设置为nst_rootvg磁盘。

# lspv | grep rootvg
	hdisk0 0000273ac30fdcfc rootvg          active
	hdisk1 000273ac30fdd6e  altinst_rootvg  active

	
	# bootlist -m normal -o
	hdisk1 blv=hd5

在约定的时间,我重新引导LPAR并确认系统现在正在运行AIX 6.1。

# shutdown –Fr
	
	; system reboots here…
	
	# oslevel –s
	6100-03-01-0921
	
	
	# instfix -i | grep AIX
	    All filesets for 6.1.0.0_AIX_ML were found.
	    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.

在这一点上,我将执行一些常规的AIX系统运行状况检查,以确保系统按预期配置和运行。 您还可以运行一个post_migration脚本来验证迁移。 迁移后,您可以在/ usr / lpp / bos中找到此脚本。

您可能需要在此阶段考虑升级其他软件,例如openssl,openssh,lsof等。

现在可以在迁移之后禁用rsh守护程序。

# chsubserver -d -v shell -p tcp6 -r inetd 
	# refresh –s inetd
	# cd /
	# rm .rhosts
	# ln -s /dev/null .rhosts

迁移完成后,将启动应用程序,并且应用程序支持团队将验证所有功能均按预期运行。 迁移后,我还将使用mksysb并记录系统配置。

一旦我们对迁移成功完成感到满意,便可以将rootvg返回到镜像磁盘配置。

# lspv | grep old_rootvg
	hdisk0  000071da26fe3bd0      old_rootvg
	# alt_rootvg_op -X old_rootvg
	# extendvg –f rootvg hdisk0
	# mirrorvg rootvg hdisk0
	# bosboot -a -d /dev/hdisk0
	# bosboot -a -d /dev/hdisk1
	# bootlist -m normal hdisk0 hdisk1
	# bootlist -m normal -o 
	hdisk0 blv=hd5
	hdisk1 blv=hd5

如果迁移存在问题,我可以轻松地回溯到以前的AIX版本。 代替重新镜像rootvg(上面),我们将更改引导列表以指向先前的rootvg磁盘(old_rootvg)并重新引导LPAR。

# lspv | grep old_rootvg
	hdisk0  000071da26fe3bd0      old_rootvg
	# bootlist -m normal hdisk0
	# bootlist -m normal –o
	hdisk0 blv=hd5
	# shutdown –Fr

这比通过常规迁移方法还原mksysb映像(通过NIM,磁带或DVD)要简单得多,而且速度也快得多。

结论

通过使用nimadm ,我们能够减少将系统迁移到AIX 6.1时所需的总停机时间。 如果有必要,我们还提供了一种方便的方法来回退迁移。 我希望这能为您提供一些有关如何在时机成熟时将系统最佳地迁移到AIX 6.1的想法。


翻译自: https://www.ibm.com/developerworks/aix/library/au-migrate_nimadm/index.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值