AIX TL MIGRATIONS
OBJETIVO
Describir los pasos necesarios para aplicar un nuevo nivel de mantenimiento al Sistema Operativo AIX. El cambio involucra la actualización del Tecnology Level (TL) de AIX así como también la aplicación de un Service Pack (SP) dentro de ese TL.
Este instructivo tiene, también, como objetivo mostrar cómo volver al estado anterior previo a la instalación. Esto es útil en el momento que se detecta que la instalación quedó inconsistente o bien alguna de las aplicaciones que corren en el servidor no funcionan de forma adecuada.
INTRODUCCIÓN
Road map a diciembre 2011
Este instructivo está probado enuna instalación de AIX en POWER 6. Se puede tener como referencia una actualización y mantenimiento de infraestructura que IBM recomienda para su plataforma. En este portal encontrarás subsecciones que contemplan la migración y actualización de otros componentes.
Firmware de Sistemas Power
Versiones de Hardware Management Console
Sistema Virtual I/O Server
Sistemas Operativos AIX
Otros Sistemas
INSTALACIÓN:
Describe los pasos para instalar la nueva versión de AIX (Nuevo TL y SP)
VUELTA ATRÁS:
Describe los pasos para realizar la vuelta atrás en el caso que surjan inconvenientes post instalación. Se puede presentar por problemas en OS o bien en alguna Aplicación Cliente.
RECURSOS UTILIZADOS:
NIM SERVER
Filesets de Instalación AIX6.1 Tecnology Levels 4 Service Pack 4 (http://www-933.ibm.com/support/fixcentral/)
lpp_source (aix6-base-con-tl2sp2) que contiene los paquetes requeridos: bos.iocp.rte 6.1.0.0 - perl.libext 2.2.1.0 – etc.
lpp_source que contenga los Filesets TL4SP4 + los requeridos: ejemplo lpp_soruce 6100-04-00-and-06-1034 se pude descargar también de fixcentral.
LPAR a aplicar los cambios (UPDATE)
PASOS PRE INSTALACIÓN
NOTA I: Es recomendable asegurarse antes de comenzar a instalar que en el filesystem /usr contenga al menos 1 GB de espacio disponible. Esto se debe a que por el tipo de actualización que vamos a llevar a cabo, mantiene una copia de los archivos en estados commit (mecanismo empelado para una posible vuelta atrás).
NOTA II: Antes de ejecutar los pasos de actualización en obligatorio realizar un Commit Applied Software Updates (Remove Saved Files) en la LPAR. La versión de AIX ya instalada está probada y se conoce la estabilidad inclusive con las aplicaciones que están corriendo (Oracle, SAP, etc.) por lo que se hace el commit sin verificación alguna.
Ejecutar:
# smitty commit
Commit Applied Software Updates (Remove Saved Files)
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
[Entry Fields]
* SOFTWARE name [all]
PREVIEW only? (commit operation will NOT occur) no
COMMIT requisites? yes
EXTEND file systems if space needed? yes
DETAILED output? no
WPAR Management
Perform Operation in Global Environment yes Perform Operation on Detached WPARs no Detached WPAR Names [_all_wpars]
Enter
Enter para confirmar
PASOS DE INSTALACIÓN:
1- En la partición a migrar verificamos el nivel actual:
# oslevel -s
6100-02-03-0909
# lslpp -L bos.rte
Fileset Level State Type Description (Uninstaller)
----------------------------------------------------------------------------
bos.rte 6.1.2.0 C F Base Operating System Runtime
Si no confiamos en nuestra memoria, nos anotamos estos datos.
2- Comienzo pasos de instalación, desde la LPAR en cuestión ejecutamos:
# smitty nim
Network Installation Management
Move cursor to desired item and press Enter.
Configure Network Installation Management Client Fileset
Install and Update Software
List Software on Media and Related Information
Manage Network Install Permissions
Manage Network Install Resource Allocation
Perform a NIM Client Operation
Configure Client Communication Services
Thin Server Maintenance
Configure Client as Master for Virtual I/O Server and Integrated Virtualization Manager Installation
Install and Update Software
Move cursor to desired item and press Enter.
Install Software
Update Installed Software to Latest Level (Update All)
Install Software Bundle
Update Software by Fix (APAR)
Install and Update from ALL Available Software
Reinstall the Base Operating System
┌──────────────────────────────────────────────────────────────────────────┐
│ Select the LPP_SOURCE containing the install images │
│ │
│ Move cursor to desired item and press Enter. │
│ │
│ lpp_aix6orig resources lpp_source │
│ lpp_exppack resources lpp_source │
│ lpp_aix6tl2-sp2-posta resources lpp_source │
│ lpp_hacmp541 resources lpp_source │
│ lpp_aix6tl2sp2 resources lpp_source │
│ aix6-base-con-tl2sp2 resources lpp_source │
│ sp3-aix61tl2 resources lpp_source │
│ aix6100-tl02-sp03 resources lpp_source │
│ lpp_aixtl2sp3 resources lpp_source │
│ lpps2dopenssl resources lpp_source │
│ lpp_6100-04-00-and-06-1034 resources lpp_source │
│ lpp_aix61tl05_and_sp03 resources lpp_source │
│ sudo_rpm_UPGRADE resources lpp_source │
│ lpp_aixt6100tl4sp02 resources lpp_source │
│ vios_migration_lpp resources lpp_source │
│ vios_migration_lpp_sp24 resources lpp_source │
│ aix61tl04sp06 resources lpp_source │
│ │
│ F1=Help F2=Refresh F3=Cancel │
│ F8=Image F10=Exit Enter=Do │
│ F8=Image F9=Shell F10=Exi │
└──────────────────────────────────────────────────────────────────────────┘
2.1- La pantalla siguiente solicita la información para instalación, en principio la vamos a ejecutar con las opciones:
PREVIEW only = Yes: Esto emulara la instalación y nos dará información que puede ser necesaria para resolver algún error previo a la instalación.
ACCEPT new license agreements = yes: Aceptar los acuerdos de nuevas licencias del nuevo/nuevos software.
COMMIT software updates= no: Permite que los nuevos filesets solamente se apliquen, pero que no queden “permanentemente” instalados. Esta es opción es de suma importancia puesto que si queda en yes no será posible ejecutar un reject software para volver al estado anterior del Sistema Operativo.
SAVE replaced files= yes: Como requerimiento del punto anterior tiene este campo que permite mantener una copia de los filesets que son remplazados a la hora de actualizar. Cuando elijo la opción COMMIT en yes no puedo elegir la opción SAVE en yes, y viceversa.
Continuemos con la ejecución del procedimiento.
Update Installed Software to Latest Level (Update All)
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
[Entry Fields]
* LPP_SOURCE lpp_6100-04-00-and-06-1034
Software to Install update_all
Customization SCRIPT to run after installation []
(not applicable to SPOTs)
installp Flags
PREVIEW only? [yes]
Preview new LICENSE agreements? [no]
ACCEPT new license agreements? [yes]
COMMIT software updates? [no]
SAVE replaced files? [yes]
AUTOMATICALLY install requisite software? [yes]
EXTEND filesystems if space needed? [yes]
OVERWRITE same or newer versions? [no]
VERIFY install and check file sizes? [no]
Damos Enter y esperamos unos 5 min. a que nos mande la salida del comando:
COMMAND STATUS
Command: OK stdout: yes stderr: no
Before command completion, additional instructions may appear below.
[TOP]
*******************************************************************************
installp PREVIEW: installation will not actually occur.
*******************************************************************************
+-----------------------------------------------------------------------------+
Pre-installation Verification...
+-----------------------------------------------------------------------------+
Verifying selections...done
Verifying requisites...done
Results...
WARNINGS
--------
Problems described in this section are not likely to be the source of any
immediate or serious failures, but further actions may be necessary or
desired.
Superseded Fileset Updates
--------------------------
Fileset updates listed in this section will not be installed. Newer
updates which supersede (replace) these were selected instead (either by
you or automatically by the installation program). Make sure that the
superseding updates listed passed pre-installation verification.
bos.rte.install 6.1.4.1 (Superseded by 6.1.4.7)
<< End of Warning Section >>
SUCCESSES
---------
Filesets listed in this section passed pre-installation verification
and will be installed.
Mandatory Fileset Updates
-------------------------
(being installed automatically due to their importance)
bos.rte.install 6.1.4.7 # LPP Install Commands
<< End of Success Section >>
+-----------------------------------------------------------------------------+
BUILDDATE Verification ...
+-----------------------------------------------------------------------------+
Verifying build dates...done
FILESET STATISTICS
------------------
549 Selected to be installed, of which:
1 Passed pre-installation verification
1 Replaced by superseding updates
547 Deferred (see *NOTE below)
----
1 Total to be installed
*NOTE The deferred filesets mentioned above will be processed after the
installp update and its requisites are successfully installed.
RESOURCES
---------
Estimated system resource requirements for filesets being installed:
(All sizes are in 512-byte blocks)
Filesystem Needed Space Free Space
/usr 28240 734848
/tmp 456 4189872
----- -------- ------
TOTAL: 28696 4924720
NOTE: "Needed Space" values are calculated from data available prior
to installation. These are the estimated resources required for the
entire operation. Further resource checks will be made during
installation to verify that these initial estimates are sufficient.
ADDITIONAL INFORMATION
----------------------
A previous install operation has resulted in a pending bosboot.
The bosboot command will rebuild the boot image. As a result it may
be necessary to reboot your system for the changes to take effect.
******************************************************************************
End of installp PREVIEW. No apply operation has actually occurred.
******************************************************************************
Se resaltan con amarillo algunos datos de la preinstalación a tener en cuenta.
Presionar F3 para volver el menú de instalación.
2.1- Como la verificación de instalación salió con OK, continuamos la instalación, pero con la opción PREVIEW only=no
Update Installed Software to Latest Level (Update All)
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
[Entry Fields]
* LPP_SOURCE lpp_6100-04-00-and-06-1034
Software to Install update_all
Función de AIX de actualización.
Customization SCRIPT to run after installation []
(not applicable to SPOTs)
installp Flags
PREVIEW only? [no]
Preview new LICENSE agreements? [no]
ACCEPT new license agreements? [yes]
COMMIT software updates? [no]
SAVE replaced files? [yes]
AUTOMATICALLY install requisite software? [yes]
EXTEND filesystems if space needed? [yes]
OVERWRITE same or newer versions? [no]
VERIFY install and check file sizes? [no]
Comienza la instalación de los nuevo filesets (demora unos 30 min.):
COMMAND STATUS
Command: running stdout: yes stderr: no
Before command completion, additional instructions may appear below.
[MORE...38]
SUCCESSES
---------
Filesets listed in this section passed pre-installation verification
and will be installed.
Mandatory Fileset Updates
-------------------------
(being installed automatically due to their importance)
bos.rte.install 6.1.4.7 # LPP Install Commands
<< End of Success Section >>
… … … …
2.2- La instalación debería salir con comando OK.
Algunos detalles a tener en cuenta de la salida del comando (queda guardada en archivo /smit.log):
2.2.1- Estadística de la instalación (Filesets):
FILESET STATISTICS
------------------
547 Selected to be installed, of which:
394 Passed pre-installation verification
152 Replaced by superseding updates
1 Already installed (directly or via superseding filesets)
4 Additional requisites to be automatically installed
----
398 Total to be installed
Filesystem size changed to 7700480
Filesystem size changed to 1081344
installp: bosboot verification starting...
installp: bosboot verification completed.
2.2.2- Recomendación de reboot de la LPAR:
bosboot: Boot image is 39638 512 byte blocks.
0503-292 This update will not fully take effect until after a
system reboot.
* * * A T T E N T I O N * * *
System boot image has been updated. You should reboot the
system as soon as possible to properly integrate the changes
and to avoid disruption of current functionality.
2.2.2- Resumen de instalación paquete a paquete (verificar estado SUCCESS):
Installation Summary
--------------------
Name Level Part Event Result
-------------------------------------------------------------------------------
bos.rte.install 6.1.4.7 USR APPLY SUCCESS
bos.rte.install 6.1.4.7 ROOT APPLY SUCCESS
bos.iocp.rte 6.1.0.0 USR APPLY SUCCESS
bos.iocp.rte 6.1.0.0 ROOT APPLY SUCCESS
bos.perf.perfstat 6.1.4.2 USR APPLY SUCCESS
bos.pmapi.pmsvcs 6.1.4.3 USR APPLY SUCCESS
bos.pmapi.events 6.1.4.2 USR APPLY SUCCESS
bos.pmapi.lib 6.1.4.3 USR APPLY SUCCESS
bos.pmapi.tools 6.1.4.1 USR APPLY SUCCESS
bos.pmapi.tools 6.1.4.1 ROOT APPLY SUCCESS
devices.ide.cdrom.rte 6.1.4.1 USR APPLY SUCCESS
devices.ide.cdrom.rte 6.1.4.1 ROOT APPLY SUCCESS
devices.sas.rte 6.1.4.1 USR APPLY SUCCESS
bos.rte.libpthreads 6.1.4.3 USR APPLY SUCCESS
bos.rte.libpthreads 6.1.4.3 ROOT APPLY SUCCESS
bos.rte.commands 6.1.4.3 USR APPLY SUCCESS
bos.rte.commands 6.1.4.3 ROOT APPLY SUCCESS
bos.iconv.com 6.1.4.2 USR APPLY SUCCESS
bos.diag.util 6.1.4.4 USR APPLY SUCCESS
bos.diag.util 6.1.4.4 ROOT APPLY SUCCESS
bos.aixpert.websm 6.1.4.1 USR APPLY SUCCESS
bos.alt_disk_install.boot_i 6.1.4.1 USR APPLY SUCCESS
devices.vdevice.hvterm1.rte 6.1.4.1 USR APPLY SUCCESS
devices.ide.cdrom.diag 6.1.4.2 USR APPLY SUCCESS
devices.sata.diag 6.1.4.1 USR APPLY SUCCESS
…………………… …….………. ………… …………… …………………
3- Reiniciar la LPAR, desde el prompt ejecutar:
# reboot
3.1- Verificamos instalación:
# oslevel -s
6100-04-06-1034
# lslpp -L bos.rte
Fileset Level State Type Description (Uninstaller)
----------------------------------------------------------------------------
bos.rte 6.1.4.0 A F Base Operating System Runtime
NOTA III: El estado de los paquetes es A (Aplicados) los que nos permite realizar una vuelta atrás mediante reject tal como se muestra en el siguiente apartado.
4- Informar y documentar el cambio.
Enviar correo al administrador responsable de las aplicaciones notificando lo hecho y el estado en que se devuelve el servicio.
Completar la planilla de control de versiones destinada a documentar el versionado de: OS AIX – VIOS – FW – HMC (\\w2k3-ose1\Archivos\TI - Administración UNIX\UPGrade VIOS & AIX OS\ Control de Versiones Sistemas OSE 2010.xls.
VUELTA ATRÁS
1- Verifico en qué nivel estoy parador y lo comparo con el dato del punto uno de la instalación:
Ahora:
# oslevel -s
6100-04-06-1034
Antes:
# oslevel -s
6100-02-03-0909
2- Comienzo a ejecutar los pasos de vuelta atrás.
# smitty reject
Reject Applied Software Updates (Use Previous Version)
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
[Entry Fields]
* SOFTWARE name [ALL]
PREVIEW only? (reject operation will NOT occur) no
REJECT dependent software? yes
EXTEND file systems if space needed? yes
DETAILED output? no
WPAR Management
Perform Operation in Global Environment yes
Perform Operation on Detached WPARs no
Detached WPAR Names [_all_wpars]
Demora unos 15 min aproximadamente.
Es probable que el comando tenga salida failed por la siguiente razón:
FAILURES
--------
Filesets listed in this section failed pre-reject verification
and will not be rejected.
Dependency Failures
(Reject Operation)
-------------------
SELECTED FILESETS: The following is a list of filesets that you asked to
reject. They cannot be rejected until all of their dependent filesets
are also rejected. See subsequent lists for details of dependents.
X11.base.lib 6.1.2.1 # AIXwindows Runtime Libraries
X11.base.lib 6.1.4.0 # AIXwindows Runtime Libraries
X11.compat.lib.X11R6 6.1.4.0 # AIXwindows X11R6 Compatibili...
bos.64bit 6.1.2.2 # Base Operating System 64 bit...
bos.64bit 6.1.2.3 # Base Operating System 64 bit...
bos.64bit 6.1.4.4 # Base Operating System 64 bit...
bos.acct 6.1.2.2 # Accounting Services
bos.acct 6.1.4.4 # Accounting Services
bos.adt.base 6.1.2.1 # Base Application Development...
bos.adt.base 6.1.4.1 # Base Application Development...
bos.adt.include 6.1.2.2 # Base Application Development...
bos.adt.include 6.1.2.3 # Base Application Development...
bos.adt.include 6.1.4.6 # Base Application Development...
bos.diag.com 6.1.4.2 # Common Hardware Diagnostics
……………………………………………………… # ………………………………………………………………………
En este caso sale con failed puesto que la lista anterior de filesets dependen de otros fileset a los cuales NO se les puede aplicar reject.
Por el contrario, la lista de software que no tenían dependencia salen con OK:
SUCCESSES
---------
Filesets listed in this section passed pre-reject verification
and will be rejected.
Selected Filesets
-----------------
ICU4C.rte 6.1.4.1 # International Components for...
Java5.sdk 5.0.0.235 # Java SDK 32-bit
X11.adt.imake 6.1.4.0 # AIXwindows Application Devel...
X11.adt.include 6.1.4.0 # AIXwindows Application Devel...
X11.apps.aixterm 6.1.4.0 # AIXwindows aixterm Application
X11.apps.clients 6.1.4.0 # AIXwindows Client Applications
X11.apps.config 6.1.4.0 # AIXwindows Configuration App...
X11.apps.custom 6.1.4.0 # AIXwindows Customizing Tool
X11.apps.msmit 6.1.4.0 # AIXwindows msmit Application
X11.apps.rte 6.1.4.0 # AIXwindows Runtime Configura...
X11.apps.xdm 6.1.4.1 # AIXwindows xdm Application
X11.apps.xterm 6.1.4.1 # AIXwindows xterm Application
X11.base.rte 6.1.2.1 # AIXwindows Runtime Environment
X11.base.rte 6.1.4.2 # AIXwindows Runtime Environment
X11.base.smt 6.1.4.0 # AIXwindows Runtime Shared Me...
X11.compat.lib.X11R6_motif 6.1.2.1 # AIXwindows X11R6 Motif 1.2 &...
X11.compat.lib.X11R6_motif 6.1.4.1 # AIXwindows X11R6 Motif 1.2 &...
X11.motif.lib 6.1.2.1 # AIXwindows Motif Libraries
X11.motif.lib 6.1.4.1 # AIXwindows Motif Libraries
……………………………………………………… # ………………………………………………………………………
Otro punto a tener en cuenta es la lista de paquetes en los cuales logro realizar la tarea:
Installation Summary
--------------------
Name Level Part Event Result
-------------------------------------------------------------------------------
ICU4C.rte 6.1.4.1 USR REJECT SUCCESS
Java5.sdk 5.0.0.235 ROOT REJECT SUCCESS
Java5.sdk 5.0.0.235 USR REJECT SUCCESS
X11.adt.imake 6.1.4.0 USR REJECT SUCCESS
X11.adt.include 6.1.4.0 USR REJECT SUCCESS X11.apps.aixterm 6.1.4.0 USR REJECT SUCCESS
X11.apps.clients 6.1.4.0 USR REJECT SUCCESS
X11.apps.config 6.1.4.0 USR REJECT SUCCESS
X11.apps.custom 6.1.4.0 USR REJECT SUCCESS
X11.apps.msmit 6.1.4.0 USR REJECT SUCCESS
X11.apps.rte 6.1.4.0 ROOT REJECT SUCCESS
X11.apps.rte 6.1.4.0 USR REJECT SUCCESS
X11.apps.xdm 6.1.4.1 USR REJECT SUCCESS
X11.apps.xterm 6.1.4.1 USR REJECT SUCCESS
X11.base.rte 6.1.4.2 ROOT REJECT SUCCESS
X11.base.rte 6.1.4.2 USR REJECT SUCCESS
X11.base.smt 6.1.4.0 USR REJECT SUCCESS
X11.compat.lib.X11R6_motif 6.1.4.1 USR REJECT SUCCESS
X11.motif.lib 6.1.4.1 USR REJECT SUCCESS
X11.motif.mwm 6.1.4.0 USR REJECT SUCCESS
X11.samples.apps.clients 6.1.4.1 USR REJECT SUCCESS
X11.vsm.lib 6.1.4.0 USR REJECT SUCCESS
bos.aixpert.cmds 6.1.4.4 ROOT REJECT SUCCESS
bos.aixpert.cmds 6.1.4.4 USR REJECT SUCCESS
bos.aixpert.websm 6.1.4.1 USR REJECT SUCCESS
bos.alt_disk_install.boot_i 6.1.4.1 USR REJECT SUCCESS
…………………………………………………………………… ………………… ……… ……………… …………………
3- Comparar la información obtenida en el paso 1 de este apartado.
# oslevel –s VS # oslevel -s
6100-02-01-0847 6100-02-03-0909
Esto suele pasar cuando algunos de filesets queda con un nivel más abajo al que estábamos antes de la actualización.
Para soluciona esto hay que identificar qué paquete nuevo nos solicitaba como requerimiento, por ejemplo el paquete bos.iocp.rte.
Por último actualizo este el/los paquetes que tengo identificados, con la versión del TL en que estábamos. Para esto usamos un lpp_source de NIM que sepamos que lo tiene (o bien buscamos dentro del recurso NIM).
Desde la LPAR ejecutar:
# smitty nim
Install and Update Software
Install Software
Lpp_source
EJEMPLO, bos.iocp
Esteban Díaz
Setiembre 2010