1827293 Members
2176 Online
109717 Solutions
New Discussion

QUICK QUESTION

 
SOLVED
Go to solution
Nobody's Hero
Valued Contributor

QUICK QUESTION

When can you assume that it is safe to delete
files in the /var/adm/sw/save and /var/adm/sw/product directories? They are getting stuffed and I need to recover some space.

Thanks as always.
UNIX IS GOOD
11 REPLIES 11
Sanjay_6
Honored Contributor

Re: QUICK QUESTION

Hi Robert,

I don't think it is safe to delete any of those files manually. You can use the cleanup command to clean out the old patches.

Use "man cleanup" for more info.

Hope this helps.

Regds
John Bolene
Honored Contributor

Re: QUICK QUESTION

Do a man cleanup and see if that is what you want.

You DO NOT want to delete ALL the files in those places. This is the place that a lot of software gets normally installed to.
It is always a good day when you are launching rockets! http://tripolioklahoma.org, Mostly Missiles http://mostlymissiles.com
Tom Geudens
Honored Contributor

Re: QUICK QUESTION

Hi,
Quick answer ...
You might want to take a look at
#man cleanup
before doing something you might not want to ...

Hope this helps,
Tom Geudens
A life ? Cool ! Where can I download one of those from ?
Ian Dennison_1
Honored Contributor

Re: QUICK QUESTION

Delete using rm? Thats a negative!

Do a man on 'cleanup'. By performing a 'cleanup -c [n]' where n is the number of times a file is saved. YOu can use the '-p' option to preview, to see what space you will save.

Share and Enjoy! Ian
Building a dumber user
Jeff Machols
Esteemed Contributor

Re: QUICK QUESTION

It depends how you patch. We always keep the last two patches. As long as you are comfortable with the patches or software installed go ahead. YOu could always tar and compress the files in there to get some space back, that way you could keep stuff around a little longer
Craig Rants
Honored Contributor

Re: QUICK QUESTION

Quick answer, NO! Use the cleanup utility. If you don't have it you can download the patch.

MC,
C
"In theory, there is no difference between theory and practice. But, in practice, there is. " Jan L.A. van de Snepscheut
Craig Rants
Honored Contributor

Re: QUICK QUESTION

I have it down as PHCO_22044 could be superceeded by now.

MC,
C
"In theory, there is no difference between theory and practice. But, in practice, there is. " Jan L.A. van de Snepscheut
Frederic Sevestre
Honored Contributor

Re: QUICK QUESTION

Hi,

Have a look there :
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x5b24cbaac6dcd5118ff40090279cd0f9,00.html

Fr??d??ric
Crime doesn't pay...does that mean that my job is a crime ?
Wodisch
Honored Contributor

Re: QUICK QUESTION

Hello,

NEVER EVER delete something under "/var/adm/sw/products/" as this is your "IPD" (Installed Products Database) - where do think the information for "swlist" does come from?
Delete it and you are LOST!

Merry X-mas, anyway,
Wodisch
Deshpande Prashant
Honored Contributor
Solution

Re: QUICK QUESTION

HI
Instead of deleting files in /var/adm/sw/..
Use cleanup command to recover space used by patches.
#cleanup -p -c 2 will list all patches and space used by then that are super seeded twice.

#cleanup -c 2 will commit all patches superseeded twice and recover space in /var.

You also can use
#swmodify -x patch_commit=true to commit individual patch to recover space in /var/adm/sw/save dir.

Thanks.

Prashant.
Take it as it comes.
John Bolene
Honored Contributor

Re: QUICK QUESTION

Question police to action...........

This member has assigned points to 13 of 95 responses to his/her questions.

ALL Answers deserve points.

It is always a good day when you are launching rockets! http://tripolioklahoma.org, Mostly Missiles http://mostlymissiles.com