unixadmin.free.fr just another IBM blog and technotes backup

7fév/11

How to repair BROKEN AIX fileset

J'ai malencontreusement installé une version corrompue de Java5.sdk
Voici une procédure pour netoyer l'ODM puis réinstaller une nouvelle version du fileset.

# lppchk -vm3
lppchk:  The following filesets need to be installed or corrected to bring
         the system to a consistent state:

  Java5.sdk 5.0.0.305                     (BROKEN)


# installp -u Java5.sdk
+-----------------------------------------------------------------------------+
                    Pre-deinstall Verification...
+-----------------------------------------------------------------------------+
Verifying selections...done
Verifying requisites...done
Results...

FAILURES
--------
  Filesets listed in this section failed pre-deinstall verification
  and will not be removed.

  Dependency Failures
  (Deinstall Operation)
  ---------------------
  SELECTED FILESETS:  The following is a list of filesets that you asked to
  remove.  They cannot be removed until all of their dependent filesets
  are also removed.  See subsequent lists for details of dependents.

    Java5.sdk 5.0.0.175                       # Java SDK 32-bit

  INSTALLED DEPENDENTS:  The following filesets are dependents of one or more
  of the selected filesets listed above.  These must be removed before
  or with the filesets that you selected.  To remove these dependents with
  the selected filesets, specify the option to automatically remove dependent
  software (-g flag).

    bos.aixpert.websm 6.1.1.0                 # AIX Security Hardening WebSM
    bos.ecc_client.rte 6.1.2.1                # Electronic Customer Care Run...
    bos.esagent 6.6.2.2                       # Electronic Service Agent
    csm.gui.dcem 1.7.0.10                     # Distributed Command Executio...
    lum.base.gui 5.1.2.0                      # License Use Management Runti...
    lum.msg.en_US.base.gui 5.1.2.0            # LUM Gui Messages - U.S. English
    lwi.runtime 6.1.2.0                       # Lightweight Infrastructure R...
    sysmgt.help.en_US.websm 6.1.1.0           # WebSM Extended Helps - U.S. ...
    sysmgt.help.msg.en_US.websm 6.1.2.0       # WebSM Context Helps - U.S. E...
    sysmgt.msg.en_US.sguide.rte 6.1.0.0       # TaskGuide Viewer Messages - ...
    sysmgt.msg.en_US.websm.apps 6.1.0.0       # WebSM Client Apps. Messages ...
    sysmgt.pconsole.apps.pda 6.1.2.1          # System P Console - Problem D...
    sysmgt.pconsole.apps.wdcem 6.1.2.0        # System P Console - Web-Based...
    sysmgt.pconsole.apps.websm 6.1.2.0        # System P Console - Web-Based...
    sysmgt.pconsole.apps.wrbac 6.1.2.0        # System P Console - Web-Based...
    sysmgt.pconsole.apps.wsmit 6.1.2.2        # System P Console - Web-Based...
    sysmgt.pconsole.rte 6.1.2.0               # System P Console Runtime
    sysmgt.sguide.rte 6.1.0.0                 # TaskGuide Runtime Environment
    sysmgt.websm.apps 6.1.2.1                 # Web-based System Manager App...
    sysmgt.websm.diag 6.1.0.0                 # Web-based System Manager Dia...
    sysmgt.websm.framework 6.1.2.0            # Web-based System Manager Cli...
    sysmgt.websm.icons 6.1.2.0                # Web-based System Manager Icons
    sysmgt.websm.rte 6.1.2.1                  # Web-based System Manager Run...
    sysmgt.websm.webaccess 6.1.2.0            # WebSM Web Access Enablement
    sysmgtlib.framework.core 6.1.2.0          # System Management Service Li...
    sysmgtlib.libraries.apps 6.1.2.0          # System Management Service Li...

  << End of Failure Section >>

FILESET STATISTICS
------------------
    1  Selected to be deinstalled, of which:
        1  FAILED pre-deinstall verification
  ----
    0  Total to be deinstalled


Pre-installation Failure/Warning Summary
----------------------------------------
Name                      Level           Pre-installation Failure/Warning
-------------------------------------------------------------------------------
Java5.sdk                 5.0.0.175       Requisite failure

Je ne veux pas désinstaller toute les dépendances.

# lslpp -l Java5.sdk
  Fileset                      Level  State      Description
  ----------------------------------------------------------------------------
Path: /usr/lib/objrepos
  Java5.sdk                5.0.0.305  BROKEN     Java SDK 32-bit

Path: /etc/objrepos
  Java5.sdk                5.0.0.175  COMMITTED  Java SDK 32-bit

Exporter la variable ODMDIR sur /usr/lib/objrepos

# export ODMDIR=/usr/lib/objrepos

# odmget -q "name=Java5.sdk and state=7" product

product:
        lpp_name = "Java5.sdk"
        comp_id = "6205-00107"
        update = 1
        cp_flag = 291
        fesn = ""
        name = "Java5.sdk"
        state = 7
        ver = 5
        rel = 0
        mod = 0
        fix = 305
        ptf = ""
        media = 3
        sceded_by = ""
        fixinfo = ""
        prereq = ""
        description = "Java SDK 32-bit"
        supersedes = ""

# odmget -q "name=Java5.sdk and state=7" product > file

Modify
state=5 (commited)
fix=175 (show level of /etc/objrepos path)

# vi file

product:
        lpp_name = "Java5.sdk"
        comp_id = "6205-00107"
        update = 1
        cp_flag = 291
        fesn = ""
        name = "Java5.sdk"
        state = 5
        ver = 5
        rel = 0
        mod = 0
        fix = 175
        ptf = ""
        media = 3
        sceded_by = ""
        fixinfo = ""
        prereq = ""
        description = "Java SDK 32-bit"
        supersedes = ""

Remplacer les valeur du fichier dans l'ODM

#odmchange -o product -q "name=Java5.sdk and state=7" file

Vérifier l'état des filesets

# lslpp -l Java5.sdk
  Fileset                      Level  State      Description
  ----------------------------------------------------------------------------
Path: /usr/lib/objrepos
  Java5.sdk                5.0.0.175  COMMITTED  Java SDK 32-bit

Path: /etc/objrepos
  Java5.sdk                5.0.0.175  COMMITTED  Java SDK 32-bit

N'oubliez pas de ré-exporter la variable ODMDIR

# export ODMDIR=/etc/objrepos

Reinstall the Java5.sdk 5.0.0.305 with non corrupt update

Taggé comme: Laisser un commentaire
Commentaires () Trackbacks (0)

Aucun commentaire pour l'instant


Leave a comment

(required)

Aucun trackbacks pour l'instant