Operating System - HP-UX
1832627 Members
2638 Online
110043 Solutions
New Discussion

Patches rollback Save Directory

 
ajay shikhare
Occasional Advisor

Patches rollback Save Directory

HI All

I am having a problem that my HP-UX box 11.11 is not understanding the patch database which i was removed earlier.

But now when i have moved the files to a proper location from where i had made a tar.System still does not understands it.

a snippet of my swlist command is belows.

bash-2.04# swlist -l patch
# Initializing...
# Contacting target "mercury"...
#
# Target: mercury:/
#

# gcc 4.1.1 gcc
# gcc.gcc-INC
# gcc.gcc-MAN
# gcc.gcc-RUN
# gettext 0.16 gettext
# gettext.gettext-MAN
# gettext.gettext-RUN
# gettext.gettext-SHLIBS
# libgcc 4.1.1 libgcc
# libgcc.libgcc-RUN
# libiconv 1.11 libiconv
# libiconv.libiconv-RUN
# make 3.81 make
# make.make-RUN

See here none of patch is hsowing.

Thanks in advance.
Ajay Shikhare
9 REPLIES 9
Robert-Jan Goossens
Honored Contributor

Re: Patches rollback Save Directory

Hi Ajay,

What exactly did you remove?

It could be you have a corrupt IPD (index file). Try this to resolve it.

# cd /var/adm/sw/products
# mv INDEX INDEX.bad
# cd /tmp
# vi void.psf
product
tag void
fileset
tag void
:wq!
# swpackage -s /tmp/void.psf
# swinstall void
# swremove void
# rm void.psf
# swremove -d void

Regards,
Robert-Jan
SANTOSH S. MHASKAR
Trusted Contributor

Re: Patches rollback Save Directory

Hi Ajay,

U r talking about which patch database ?
Is it /var/adm/sw ?

If yes then why u have deleted the patch database?

If u want to reclaim some space in /var filesystem then u have to use patch cleanup utility, see

# man cleanup

This will cleanup the comitted patch and u can gain some space.

if u r not getting proper o/p of

# swlist -l patch

then /var/adm/sw may be corrupted.
ajay shikhare
Occasional Advisor

Re: Patches rollback Save Directory

Let me put it in other word.

See i tarred save folder and kept it under root. to save my server from space crunch.

Now i need to put some patches. Is there any way i can build the repository again.

May be i am new to HP-UX.

But you help would definetaly help.

Thanks in advance.
Ajay
ajay shikhare
Occasional Advisor

Re: Patches rollback Save Directory

Sorry for my English.

But even if i have put the files back in the place.its not working.

I guess its not recognising the files present in the folder or something sort of that.

Another thing is it works like a INDEX file in the saved file folder. and so if i can create a INDEX file fron that.

Regards
Ajay
ajay shikhare
Occasional Advisor

Re: Patches rollback Save Directory

Hey Guys.

Am I messed my HP-UX box big time.

Please help.

Thanks in advance.
SANTOSH S. MHASKAR
Trusted Contributor

Re: Patches rollback Save Directory

Hi Ajay,

Don't get upset.

Just give following info.

Which files/dir u have backed up / copied?

What is utility used for backup/copy ?

How and where have u restored?
SANTOSH S. MHASKAR
Trusted Contributor

Re: Patches rollback Save Directory

Hi,

Do u have Ignite Backup of ur system? If yes then try to restore from it .

ajay shikhare
Occasional Advisor

Re: Patches rollback Save Directory

Ok.

I first did tar of /var/adm/sw/save directory to / since root had more free space. Then I straight away deleted the files present in save directory.

I knew the fact that that files need to be there so os understands about the installed patches and same can be revert back.

Now since I have untarred the file in right directory. I am not able to see the patch database of my box.

Changed the permission too, tried many things but no help.

Thanks in advance.
Ajay
Bob E Campbell
Honored Contributor

Re: Patches rollback Save Directory

Editing the IPD can often lead to a bad day. The files under /var/adm/sw/save (and save_custom) are only there to support patch removal. Nothing you did to that directory should have been able to pose a problem.

The real issue is that your swlist does not see some very important products. I would like you to run the command:

swlist -l fileset OS-Core

If this command fails, then more is missing than just the rollback files. The only simple answer at that point would be to backup data and reinstall (I am assuming that no IUX recovery image exists).

My assumption is that all of /var/adm/sw was removed at one point as only contributed software is being listed.