Commit & Rejecting Software AIX

Commit & Rejecting Software AIX

Commit Software

En este caso lo que vamos a hacer es dejar de forma definitiva  un nivel de Tecnology Level que tengamos instalado. Esto es, lo que antes teníamos en estado Applied:

#  lslpp -l |grep -i APPLIED

dejarlo en estado Commited:

#  lslpp -l |grep -i COMMIT

Podemos tomar esta decisión (aplicar definitivamente el TL) cuando ya lo tenemos instalado y probado con las aplicaciones funcionando correctamente un buen tiempo. Esta operación nos da ganancia en disco, puesto que el costo de tener dos versiones del un fileset es espacio en disco.

En la LPAR que donde queramos confirma el nuevo TL, ejecutar como root:

# 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)     yes           +

  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]   +

+--------------------------------------------------------------------------+

|                              ARE YOU SURE?                               |

|                                                                          |

| Continuing may delete information you may want                           |

| to keep.  This is your last chance to stop                               |

| before continuing.                                                       |

|     Press Enter to continue.                                             |

|     Press Cancel to return to the application.                           |

|                                                                          |

| F1=Help                 F2=Refresh              F3=Cancel                |

| F8=Image                F10=Exit                Enter=Do                 |

+--------------------------------------------------------------------------+

Con la opción Preview nos dará la los datos sobre cuanto paquetes aplicara el commit. Luego cambiar la opción  PREVIEW only? a  no y realizara la operación.

En el caso que no tengamos software para aplicar el commit, recibimos un mensaje como el siguiente:

                  COMMAND STATUS

Command: OK            stdout: yes           stderr: no

Before command completion, additional instructions may appear below.

installp  -cgpX -J  -f File 2>&1

File:

    all

*******************************************************************************

installp PREVIEW:  commit operation will not actually occur.

*******************************************************************************

+-----------------------------------------------------------------------------+

                        Pre-commit 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.

  Nothing to Commit

  -----------------

  There is nothing in the APPLIED state that needs to be committed.

  << End of Warning Section >>

******************************************************************************

End of installp PREVIEW.  No commit operation has actually occurred.

******************************************************************************

Rejecting Software

Esta opción la usaremos en el caso que deseemos volver a atrás la aplicación de un software. Esto es, cuando instalamos una versión más nueva de un software de AIX y no funciona como esperábamos, utilizamos un reject para volver al esto anterior (versión anterior).

Importante: IBM no da como soportada esta opción para una vuelta atrás en el caso de aplicar un  nuevo  TL completo. recomienda otras opciones: mksysb - multibos - alt_root_vg

Listar el software que queremos volver atras, recordar que debe estar en estado Applied

# lslpp -l |grep -i commit | grep Java

  Java14_64.sdk            1.4.2.225  COMMITTED  Java SDK 64-bit

  Java5_64.sdk             5.0.0.160  COMMITTED  Java SDK 64-bit

  Java14_64.sdk            1.4.2.225  COMMITTED  Java SDK 64-bit

  Java5_64.sdk             5.0.0.160  COMMITTED  Java SDK 64-bit

# lslpp -l |grep -i applied | grep Java

  Java5.sdk                5.0.0.235  APPLIED    Java SDK 32-bit

  Java5.sdk                5.0.0.235  APPLIED    Java SDK 32-bit

Según el ejemplo anterior la versión que nos funciona correctamente de Java es la  5.0.0.160, para esto quitaremos la versión applied (la cual esta en uso por las aplicaciones que hagan uso de java) 5.0.0.235.

Ejecución del reject

# 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                                      [F4]                 +

  PREVIEW only? (reject operation will NOT occur)     yes                 +

  REJECT dependent software?                          no                  +

  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]          +

Luego del presionar F4 en Software name se nos despliega un la lista de paquetes en estado APPLIED, al software lo seleccionamos con F7.

 +-------------------------------------------------------------------------+

 |                              SOFTWARE name                               |

 |                                                                          |

 | Move cursor to desired item and press F7. Use arrow keys to scroll.      |

 |     ONE OR MORE items can be selected.                                   |

  | Press Enter AFTER making all selections.                                 |

  |                                                                          |

 | [TOP]                                                                    |

    |   # Name                                Level                            |  

 |   # -------------------------------------------------------------------- |

 |     ICU4C.rte                           6.1.4.1                          |

  |     Java5.sdk                           5.0.0.235                        |

  |     X11.adt.imake                       6.1.4.0                          |

  |     X11.adt.include                     6.1.4.0                          |

 |     X11.apps.aixterm                    6.1.4.0                          |

 |     X11.apps.clients                    6.1.4.0                          |

 |     X11.apps.config                     6.1.4.0                          |

 |     X11.apps.custom                     6.1.4.0                          |

 |     X11.apps.msmit                      6.1.4.0                          |

 |     X11.apps.rte                        6.1.4.0                          |

 | [MORE...309]                                                             |

 |                                                                          |

 | F1=Help                 F2=Refresh              F3=Cancel                |

  | F7=Select               F8=Image                F10=Exit                 |

  | Enter=Do                /=Find                  n=Find Next              |

 +--------------------------------------------------------------------------+

Por último corremos el comando sin la opción Prewiew en yes.

En el caso que que ninguno fileset este en estado APPLIED, esto es:

# lslpp -l | grep -i APPLIED

#

La salida de la ejecución del reject es:

+--------------------------------------------------------------------------+

|                              SOFTWARE name                               |

|                                                                          |

| Move cursor to desired item and press F7.                                |

|     ONE OR MORE items can be selected.                                   |

| Press Enter AFTER making all selections.                                 |

|                                                                          |

|   0503-459 installp:  No filesets were found in the Software             |

|           Vital Product Database in the APPLIED state.                   |

|                                                                          |

| F1=Help                 F2=Refresh              F3=Cancel                |

| F7=Select               F8=Image                F10=Exit                 |

| Enter=Do                /=Find                  n=Find Next              |

+--------------------------------------------------------------------------+

Para conocer más sobre estas operación visitar: http://publib.boulder.ibm.com/infocenter/aix/v6r1/index.jsp?topic=/com.ibm.aix.cmds/doc/aixcmds3/installp.htm