Operating System - HP-UX
1834657 Members
2058 Online
110069 Solutions
New Discussion

Can we rewmove /var/adm/sw/save/PHXXXX?

 
SOLVED
Go to solution
siva0123
Trusted Contributor

Can we rewmove /var/adm/sw/save/PHXXXX?

Hi,

My /var is full and du -kx /var shows /var/adm/sw/save is occupying much of the space .

But if i remember correctly removing these patch copies will not allow me to uninstall those patches in future.

All i want to know is does that mean that i may not be able to install a latest patch in future which supersedes the older one (The one which i'm planning to remove from /var/adm/sw..


Thanks,
Siva
8 REPLIES 8
DCE
Honored Contributor
Solution

Re: Can we rewmove /var/adm/sw/save/PHXXXX?


Do NOT manually remove these files. Ue the cleanup program to remove them properly. Failure to remove them the "proper" way will probably compromise your ability to patch the system in the future.
Paul Haygarth
Advisor

Re: Can we rewmove /var/adm/sw/save/PHXXXX?

Alternatively you could move the save directory to another (big) filesystem, and create a link. We have done this on many older systems.
James R. Ferguson
Acclaimed Contributor

Re: Can we rewmove /var/adm/sw/save/PHXXXX?

Hi Siva:

Never manage the '/var/adm/sw' directory manually. You run the risk of corrupting your Installed Product directory and therefore not being able to patch your system.

Instead, to regain space in '/var', use the 'cleanup' command. This will safely remove superseded patches and their backup copies. See the manpages for 'cleanup' for more information.

Regards!

...JRF...

siva0123
Trusted Contributor

Re: Can we rewmove /var/adm/sw/save/PHXXXX?

Hi,
Thanks for your prompt reply .

Ok i'll do that using cleanup utility.

But again my question is will that affect my future patching or upgrading that patch .

I've have got this doubt just becuase in itrc patch site , in the installation instructions it is mentioned that if we dont maintain a copy of the patch software in /var/adm/sw/save.. we may not be able to deinstall it in future.

Thanks,
Siva
Simon Hargrave
Honored Contributor

Re: Can we rewmove /var/adm/sw/save/PHXXXX?

These are the saved patches for rollback. To properly remove them,

cleanup -c1

This will remove all patches that have been superceded at least once. You will still have some there, but you retain the ability to rollback your current patches if required.

This does not stop you installing patches in the future.
siva0123
Trusted Contributor

Re: Can we rewmove /var/adm/sw/save/PHXXXX?

Hi All,

Thanks all for your valuable suggestions.

That has cleared my doubt.

Thanks again,
Siva
DCE
Honored Contributor

Re: Can we rewmove /var/adm/sw/save/PHXXXX?



All the cleanup command does is remove the ability to rool back the installed patch. It does not affect your ability to install succeeding patches. In fact it keeps track of what patches are installed, so succesive patches are installed correctly.
James R. Ferguson
Acclaimed Contributor

Re: Can we rewmove /var/adm/sw/save/PHXXXX?

Hi Siva:

Anytime you do ave space by installing a patch with '-x 'patch_save_files=false'
you prevent that patch from potentially being backed out should you find a problem with it later.

You should always have ample room in '/var' for patching and for the retention of previous patch information at least until you are satisfied that you will not have to rollback a patch. Disk is cheap!

Regards!

...JRF...