1835147 Members
2329 Online
110077 Solutions
New Discussion

remove files /var

 
SOLVED
Go to solution
Miguel Carabano_1
Regular Advisor

remove files /var

Hi team,

I need release space, in fs /var

I can remove files on /var/adm/sw/patch

???

Thanks
7 REPLIES 7
Court Campbell
Honored Contributor

Re: remove files /var

from http://www.hpworks.org.uk/newsletter/articles/sd/

It is not safe to remove these entries in /var/adm/sw/patch unless you have run cleanup. Removing a directory in this location, could prevent you from backing out a patch that is currently loaded on the system.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
Robert-Jan Goossens_1
Honored Contributor

Re: remove files /var

Hi Miguel,

You can use the cleanup utility.

below command will commit any patches superseded once. They will no longer be removeable.

preview
# cleanup -p -c 1

# cleanup -c 1

Regards,
Robert-Jan
Court Campbell
Honored Contributor
Solution

Re: remove files /var

also look at:

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=81631
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
James R. Ferguson
Acclaimed Contributor

Re: remove files /var

Hi:

Absolutely do *not* manually remove or manipulate files in '/var/adm/sw'. This directory's contents represent the Installed Product Database in which the software distributer tools ('swinstall', etc.) operate.

If you corrupt or remove files in this directory, you can end up with a system that can never be patched again!

To regain space in '/var' use the 'cleanup' command as noted. See its manpages for more information.

Regards!

...JRF...
Bob E Campbell
Honored Contributor

Re: remove files /var

The patch directory is used only for HP-UX 10.X releases. The best option in 10.X systems is the cleanup script which is found within PHCO_20824.

This directory holds all of the files needed to restore the system when a patch is removed. When this backup data is deleted the patch is "committed" and cannot be removed. This will not harm the running system, but could cause great pain if a patch needs to be removed in the future.

If your system has been updated to 11.0 or later, this full directory is no longer of value. As of 11.0 the SD tools manage patches directly. Any manual changes to the save or save_custom directories on 11.X releases would be corrupting the IPD and could lead to a "bad day". In 10.X the patch directory (and patches in general) where a little trick we played on SD. Technically, the patch directory is near but outside of the IPD itself.
James George_1
Trusted Contributor

Re: remove files /var

Hi

You can do couple of things here ..

1. Trim your /var/adm/syslog/syslog.log file if its big.

2. trim /var/adm/syslog/mail.log file if its big .

3. If you /var/adm/crash is not a seperate File system , you can remove any crash files , if its there .

4. # cd /var
# du -sk * | sort -n and see what is taking more space and see if its something you can zip or remove.

5. Its beter not to remove anything from the /var/adm/sw !!

6. You can also remove the old files from /var/tombstones/tsXX files.


Rgds / James
forum is for techies .....heaven is for those who are born again !!
Miguel Carabano_1
Regular Advisor

Re: remove files /var

Thanks Team!