Operating System - HP-UX
1833771 Members
1862 Online
110063 Solutions
New Discussion

cleanup - the age old question with a difference

 
SOLVED
Go to solution
Tony Walker_2
Frequent Advisor

cleanup - the age old question with a difference

Hi Guys,

Right, the /var cleanup time has come round again and now having done 2 and 3 I'm considering running cleanup -c1. My question is, if in the worst case someone should suddenly want a patch rolled that far back - can I restore the contents of /var/adm/sw/save? I'm doubting its that easy but thought I'd ask the question..

Thanks,

Tony
6 REPLIES 6
James R. Ferguson
Acclaimed Contributor
Solution

Re: cleanup - the age old question with a difference

Hi Tony:

'cleanup -c1' leaves one level for "recovery" so should you need to rollback a patch you should be able to do so.

BTW, patch rollback is not to be taken lightly. The Patch Management guide discusses this as I recall, in more detail:

http://docs.hp.com/en/5991-1163/index.html

Regards!

...JRF...
Pete Randall
Outstanding Contributor

Re: cleanup - the age old question with a difference

Tony,

I think I would take an Ignite backup beforehand. That would cover your entire root VG and you should be safe in restoring it should the need arise.


Pete

Pete
Tony Walker_2
Frequent Advisor

Re: cleanup - the age old question with a difference

Thanks for the updates guys. We periodically take ignites so should be safe but can you confirm whether a simple restore of /var/adm/sw would acomplish the same?

Thanks,

Tony
Pete Randall
Outstanding Contributor

Re: cleanup - the age old question with a difference

Tony,

I would fear that that would put the patch database out of sync with the binaries that are actually running.


Pete

Pete
RAC_1
Honored Contributor

Re: cleanup - the age old question with a difference

How about moving /var/adm/sw to seperate file system??
There is no substitute to HARDWORK
Tony Walker_2
Frequent Advisor

Re: cleanup - the age old question with a difference

Pete,

I don't think it will be that easier either but just hoping to find a definitive answer. Since reading the link above I've been commiting a few really old patches individually using swmodify rather than cleanup which has resolved the issue for now. Ulimatley would love /var/adm/sw as a separate but these are legacy systems owned by people stuck in their ways with no budget....

Cheers,

Tony