Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"Insufficient space in /var/sadm/pkg to save old files" Solaris9 2

Status
Not open for further replies.

jhahs

Technical User
Oct 19, 2004
29
US
While installing patches on our Solaris 9 box, I get the following:
Insufficient space in /var/sadm/pkg to save old files
Is there a way to clear out the /var/sadm/pkg directory?
Do you just delete the entries?
If not, maybe redirect where the old packages are kept.
I would like to just keep the last two patch levels and delete the rest.
 
jhahs;

Never seen that error before.

I would think(this gets me into trouble sometimes) your problem is probably that your /var filesystem is filling up. what does df -h show for space available for var?

Do you have old messages or core dumps that can be removed.

Post your df -h output.

Thanks

CA
 
When you install patches it saves the old files under /var/sadm/pkg/pkgname/save/patchid. If you are running short of space on /var and can't identify any files that need cleaning up, you can remove some of the older saved directories if you are sure you do not wish to back out the corresponding patches, which is unlikely if they have been installed for some time.

To remove the ones that are more than a year old, for example, you could use (at your own risk) something like:

[tt]find /var/sadm/pkg/*/save/??????-?? -type d -mtime +365 -prune | xargs rm -r[/tt]

Annihilannic.
 
Alternatively, just save the older files to tape so that you can restore them if need be. Verify your save and delete them to give you the space back.

Alan Bennett said:
I don't mind people who aren't what they seem. I just wish they'd make their mind up.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top