Blog

Using alt_disk_copy

Oct 24, 2011 | 9 minutes read
Share this:

Tags: Patch, Upgrade


xlsmp.aix52.rte 1.7.0.0 USR APPLY SUCCESS […] bos.sysmgt.trace 5.3.7.0 ROOT APPLY SUCCESS installp: * * * A T T E N T I O N ! ! ! Software changes processed during this session require any diskless/dataless clients to which this SPOT is currently allocated to be rebooted. install_all_updates: Log file is /var/adm/ras/install_all_updates.log install_all_updates: Result = SUCCESS Modifying ODM on cloned disk. Building boot image on cloned disk. forced unmount of /alt_inst/var forced unmount of /alt_inst/usr forced unmount of /alt_inst/tools/list/tivoli forced unmount of /alt_inst/tools/list/sysload forced unmount of /alt_inst/tools/list/sinagios forced unmount of /alt_inst/tools/list/sam forced unmount of /alt_inst/tools/list/cdc forced unmount of /alt_inst/tmp forced unmount of /alt_inst/opt forced unmount of /alt_inst/home forced unmount of /alt_inst/apps/controlm/ctmsv640 forced unmount of /alt_inst/apps/controlm/ctmem640 forced unmount of /alt_inst/apps/controlm forced unmount of /alt_inst 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 # lspv hdisk0 00ce4b7ac3e70e6e rootvg active hdisk1 00ce4b7ac3e71355 altinst_rootvg # bootlist -m normal -o hdisk1 blv=hd5 hdisk1 blv=hd5 # alt_rootvg_op -W -d hdisk1 Waking up altinst_rootvg volume group …

lspv hdisk0 00ce4b7ac3e70e6e rootvg active hdisk1 00ce4b7ac3e71355

2007 XL C++ Runtime for AIX IZ02378 Symptom Text: —————————- Fileset xlC.aix50.rte:9.0.0.1 is applied on the system. Fileset xlC.msg.Ja_JP.rte is not applied on the system. Fileset xlC.msg.en_US.rte is not applied on the system. Fileset xlC.msg.ja_JP.rte is not applied on the system. Fileset xlC.rte:9.0.0.1 is applied on the system. All filesets for IZ02378 were found. # lspv hdisk0 00ce4b7ac3e70e6e old_rootvg hdisk1 00ce4b7ac3e71355 rootvg active #################################################################################### #################################################################################### ####################################################################################

alt_rootvg_op -X old_rootvg # lspv hdisk0 00ce4b7ac3e70e6e None hdisk1

00ce4b7ac3e71355 rootvg active # extendvg -f rootvg hdisk0 # mirrorvg -m rootvg hdisk0 0516-1804 chvg: The quorum change takes effect immediately. 0516-1126 mirrorvg: rootvg successfully mirrored, user should perform bosboot of system to initialize boot records. Then, user must modify bootlist to include: hdisk0 hdisk1. # bosboot -a bosboot: Boot image is 43349 512 byte blocks. # bootlist -m normal -o hdisk0 hdisk1 hdisk0 blv=hd5 hdisk0 blv=hd5 hdisk1 blv=hd5 hdisk1 blv=hd5 # lspv hdisk0 00ce4b7ac3e70e6e rootvg active hdisk1 00ce4b7ac3e71355 rootvg active # lsvg -p rootvg rootvg: PV_NAME PV STATE TOTAL PPs FREE PPs FREE DISTRIBUTION hdisk1 active 511 26 22..04..00..00..00 hdisk0 active 511 26 22..04..00..00..00 # lsvg -l rootvg rootvg: LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT hd5 boot 1 2 2 closed/syncd N/A hd6 paging 64 128 2 open/syncd N/A hd8 jfs2log 1 2 2 open/syncd N/A hd4 jfs2 1 2 2 open/syncd / hd2 jfs2 32 64 2 open/syncd /usr hd9var jfs2 12 24 2 open/syncd /var hd3 jfs2 16 32 2 open/syncd /tmp hd1 jfs2 16 32 2 open/syncd /home hd10opt jfs2 16 32 2 open/syncd /opt cdc jfs2 2 4 2 open/syncd /tools/list/cdc tivoli jfs2 2 4 2 open/syncd /tools/list/tivoli lvcontrolm jfs2 80 160 2 open/syncd /apps/controlm lvsysload jfs2 8 16 2 open/syncd /tools/list/sysload sinagioslv jfs2 2 4 2 open/syncd /tools/list/sinagios ctmem640lv jfs2 128 256 2 open/syncd /apps/controlm/ctmem640 ctmsv640lv jfs2 96 192 2 open/syncd /apps/controlm/ctmsv640 samlv jfs2 8 16 2 open/syncd /tools/list/sam

PI, voici le mode opératoire qui a été utilisé pour cette montée de TL et installation des packages pré-requis entièrement réalisé sur l'alternate rootvg afin de ne pas rencontrer le souci de "l'œuf et de la poule", et de garder un retour arrière simplifié. Dans ce modop, on peut soit utiliser un troisième disque disponible, soit casser temporairement le miroir système en place si jamais--ce qui a été fait ici. Peut-être peut-on tenter une manipulation similaire afin de monter la version d'HDLM qui nous embête tant en ce moment ?... A tester :) Note : Une autre possibilité est le recours au multibos plutôt qu'au alt_disk_copy (non-détaillé ici, mais je peux produire un modop "similaire" si besoin). /* * ************************************************************************** * Prereqs for Contol-M Server and EM 6.4.0: * xlC.aix50.rte of version >= 9.0.0.3 * bos.adt.prof of version > 5.3.0.62 * bos.rte.libc of version > 5.3.0.63 * ************************************************************************** */ # mount surville:/applis/list/nim/MKSYSB /mnt # mksysb -i /mnt/`uname -n`/`uname -n`.`oslevel -s`.mksysb Creating information file (/image.data) for rootvg. Creating list of files to back up .. Backing up 78532 files.............................. 23817 of 78532 files backed up (30%)......................…. 78532 of 78532 files backed up (100%) 0512-038 mksysb: Backup Completed Successfully. # umount /mnt # lslpp -cl *.alt_disk_install.* | nawk -F\: '$2 ~ /alt_disk_install/ {print $2}' bos.alt_disk_install.boot_images bos.alt_disk_install.rte # lslpp -l xlC.aix50.rte bos.adt.prof bos.rte.libc Fileset Level State Description Pre-installation Verification... Summaries: Pre-installation Verification... pre-installation verification and will be installed. Selected Filesets BUILDDATE Verification ... Installing Software... Summaries: Pre-installation Verification... Summaries: Failure/Warning Path: /usr/lib/objrepos bos.adt.prof 5.3.7.1 COMMITTED Base Profiling Support bos.rte.libc 5.3.7.1 COMMITTED libc Library xlC.aix50.rte 9.0.0.10 COMMITTED XL C/C++ Runtime for AIX 5.2 # instfix -ik IZ02378 -va IZ02378 Abstract: August