Operating System - HP-UX
1834814 Members
2304 Online
110070 Solutions
New Discussion

Re: Can I avoid filling /var when doing swcopy?

 
Ian Vaughan
Honored Contributor

Can I avoid filling /var when doing swcopy?

Howdy,
I need to convert a sw depot so that I can do remote swinstalls. It's a patch bundle that thinks it's on a tape so will only allow local install.
when I run a swcopy -s /xyz/blah.depot \* @ /xyz/banana.depot it complains that I don't have enough space in /var.
Are there any trick options that will get me around my lack of space in /var ??
Many thanks
Ian
Hope that helps - please click "Thumbs up" for Kudos if it does
## ---------------------------------------------------------------------------##
Which is the only cheese that is made backwards?
Edam!
Tweets: @2techie4me
5 REPLIES 5
Rick Garland
Honored Contributor

Re: Can I avoid filling /var when doing swcopy?

Typically there are some cleanup options in /var. Check the /var/adm to see if you have any crash files out there. If so you may want to get rid of some.

Does /var/adm/sysadm have any log files that you can truncate or null out? How is the syslog.log? The mail.log?

Have you done the cleanup command?

These are just some examples.

Issue the following commands;
# cd /var
# du . -ka | sort -nr | more

The output will tell you in ascending order what the biggest files are. From there you can develop a game plan.

Henk Geurts
Esteemed Contributor

Re: Can I avoid filling /var when doing swcopy?

hi Ian
a similar thread with good solutions :
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=220649

regards
Henk

Mel Burslan
Honored Contributor

Re: Can I avoid filling /var when doing swcopy?

if you have some unused disk space, create a new filesystem. Mount it. Copy the contents of /var/adm/sw into this new filesystem. Kill swagentd. Create a symbollic link from /var/adm/sw to this new filesystem mountpoint. restart swagentd.

Provided your new filesystem is big enough to handle all the new patch information and increase in the log file sizes, you should not get anymore complaints.

Hope this helps
________________________________
UNIX because I majored in cryptology...
Ian Vaughan
Honored Contributor

Re: Can I avoid filling /var when doing swcopy?

Sorry folks,
I should check my workings - I missed the "@" out of my swcopy so the target was the default under /var
Doh!

ttfn
Ian
Hope that helps - please click "Thumbs up" for Kudos if it does
## ---------------------------------------------------------------------------##
Which is the only cheese that is made backwards?
Edam!
Tweets: @2techie4me
Ian Vaughan
Honored Contributor

Re: Can I avoid filling /var when doing swcopy?

see above
Hope that helps - please click "Thumbs up" for Kudos if it does
## ---------------------------------------------------------------------------##
Which is the only cheese that is made backwards?
Edam!
Tweets: @2techie4me