Operating System - HP-UX
1752275 Members
5267 Online
108786 Solutions
New Discussion юеВ

Is it safe to remove patches in /var/adm/save, if is, how?

 
Hanry Zhou
Super Advisor

Is it safe to remove patches in /var/adm/save, if is, how?

I used cleanup -c 1, 2, and 3, but could not safely remove patches /under /var/adm/save.
thanks,
none
6 REPLIES 6
Steven E. Protter
Exalted Contributor

Re: Is it safe to remove patches in /var/adm/save, if is, how?

No, it is not save to manually delete patches from /var/adm/save

If the cleanup command can't do it, you may need to extend the /var filesystem.

That assumes the reason you are looking at this is disk space issues.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Sridhar Bhaskarla
Honored Contributor

Re: Is it safe to remove patches in /var/adm/save, if is, how?

Hi Hanry,

If you dont' get space with 'cleanup -c 1' option, then you have no choice except to clean other stuff in /var filesystem or increase it. Do not remove the files under that directory. If you need to backout any patches in future, you will not be able to do so if you remove them.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Sanjay_6
Honored Contributor

Re: Is it safe to remove patches in /var/adm/save, if is, how?

Hi Hanry,

"cleanup" command is the only way to reclaim the space under /var/adm/sw.

http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000065680035

The doc id is KBRC00002204.

Manually removing directories under /var/adm/sw/save would create a problem for you if you want to rollback.

how bid is your /var/adm/sw. is it under /var, if so how big is your /var. Maybe you can reclaim space elsewhere and leave /var/adm/sw as it is. Once /var/adm/sw is messed up, you'll have lot more trouble than it is worth.

Hope this helps.

Regds
Rick Garland
Honored Contributor

Re: Is it safe to remove patches in /var/adm/save, if is, how?

DO NOT manually remove patch files from the /var/adm/sw/save. You will cause yourself grief down the line. Use the cleanup command.

Other option - increasing /var is one. If unable to do that, you can take some stuff from /var and make it its own filesystem/mount point. Example, /var/adm/crash can be put into another VG and you can create a filesystem (LV) and create the mount point.

Check other files such as the syslog and maillog to see if they can be truncated.

To find the biggest space offender
du /var -x -ka | sort -nr | more
Provides a list of files in size ascending order.
Cheryl Griffin
Honored Contributor

Re: Is it safe to remove patches in /var/adm/save, if is, how?

Committing the patches will allow you to reclaim the space.

This guide may be old, but the explanation of how committing patches affects the system still holds true.
http://docs.hp.com/hpux/pdf/5967-3577.pdf
"Downtime is a Crime."
Geoff Wild
Honored Contributor

Re: Is it safe to remove patches in /var/adm/save, if is, how?

cleanup -c 2

cleanup - HP-UX 11.11 patch cleanup utility

SYNOPSIS
cleanup [-n|-p] -c
cleanup [-n|-p] -d [-o 10|11] [-e true|false]
cleanup [-n|-p] -i
cleanup [-n|-p] -s

DESCRIPTION
The cleanup command provides functions useful when dealing with HP-UX
patches on HP-UX 11.11.

The cleanup command logs all information to /var/adm/cleanup.log.

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.