Manually Removing ODM entries on AIX 5L
 Technote (troubleshooting)
 
Problem(Abstract)
Sometimes IBM® HTTP Server file sets will remain in the ODM of an AIX® system even after running the uninstaller. The uninstall can complete successfully, but the file sets will still show up as an error when the "lppchk -v" command is run.

For example, something similar to the following output:


# lppchk -v
lppchk: The following file sets need to be installed or corrected to bring
the system to a consistent state:

IHS6 6.0.2.0 (COMMITTED)
IHS6.base 6.0.2.0 (COMMITTED)
IHS6.base.application_files.afpa 6.0.2.0 (COMMITTED)
IHS6.base.application_files.progexe 6.0.2.0 (COMMITTED)
IHS6.base.doc.man 6.0.2.0 (COMMITTED)
IHS6.base_ext.security 6.0.2.0 (COMMITTED)
IHS6.ssl 6.0.2.0 (COMMITTED)

 
Resolving the problem
To correct this problem the ODM will need to be cleaned out manually using the following steps. For the purpose of the steps below the IHS.base file set will be used.. This will need to be substituted with the actual file set names that are in the output from the "lppchk -v" command:

1. It will need to be determined which part of the ODM is holding the residual entries. This can be obtained by running the following command:

# lslpp -l IHS6.base
Fileset Level State Description
----------------------------------------------------------------------------
Path: /etc/objrepos
IHS6.base 6.0.2.0 COMMITTED IHS Base Server



In this output the path is set to "/etc/objrepos".

2. The next step is to change the ODMDIR variable to the path that is listed in the output of the previous step but first the original value will need to be noted so that it can be changed back after the cleanup.


# echo $ODMDIR
/etc/objrepos


Based on the above output the variable is already set correctly. However, if it were set to any other value, then it would need to be set by using the following:


# export ODMDIR=/etc/objrepos


3. Before doing any editing of the ODM, it will need to be backed up so that we have a good restore point in case there is a problem during the ODM cleanup.


# tar -cvf /tmp/odm.tar /etc/objrepos /usr/lib/objrepos /usr/share/lib/objrepos


The above command will backup all 3 parts of the ODM into the /tmp directory to a file called "odm.tar"

4. The next step is to get the "lpp_id" of the file set that will need to be removed as some parts of the ODM will need this as a parameter instead of the file set name.
To obtain this run the following:


# odmget -q name="IHS6.base" lpp

lpp:
name = "IHS6.base"
size = 0
state = 5
cp_flag = 131345
group = ""
magic_letter = ""
ver = 6
rel = 0
mod = 2
fix = 0
description = "IHS Base Server"
lpp_id = 536


In the above example the "lpp_id = 536" so this is the value that will need to be noted.

5. To remove the file set from the ODM run the following commands:


# odmdelete -q name="IHS6.base" -o lpp
# odmdelete -q lpp_name="IHS6.base" -o product
# odmdelete -q lpp_id=536 -o history
# odmdelete -q lpp_id=536 -o inventory


These steps should remove the file set from the ODM and should no longer show up in the output of the "lppchk -v" command.

6. For each file set that appears in the "lppchk -v" output steps 4-5 will need to be run each time as the "lpp_id" value will be different for each file set.

7. Once the above steps are completed the ODMDIR variable will need to be set back to it's original value.


# export ODMDIR=(original value)


 
 
 


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > IBM HTTP Server > Uninstall
Operating system(s): AIX
Software version: 6.0.2
Software edition:
Reference #: 1238067
IBM Group: Software Group
Modified date: Apr 24, 2007