Operating System - HP-UX
1821804 Members
3851 Online
109637 Solutions
New Discussion юеВ

/var/adm/sw/save - Can I delete?

 
Roland Rebstock_1
Frequent Advisor

/var/adm/sw/save - Can I delete?

Im about to install QPK11.00 March 2003 and need more room in /var, what happends If I delete /var/adm/sw/save?

Roland.Rebstock@usi.net
8 REPLIES 8
Joaquin Gil de Vergara
Respected Contributor

Re: /var/adm/sw/save - Can I delete?

here are stored rollback files for patch deinstallation

if you want to delete it use swmodify. dont delete directly


To commit (make permanent) a patch, use the swmodify command's
patch_commit option to remove the files saved for patch rollback, or
use the swinstall command's save_patch_files option to not save them
initially. See swmodify(1M) and swinstall(1M) for more information.

regards!
Teach is the best way to learn
Umapathy S
Honored Contributor

Re: /var/adm/sw/save - Can I delete?

Roland,
This is used to revert back the patches if there is a need. You can remove those by committing the patches using swmodify command with patch_commit option. Dont directly delete those files.

check man swinstall for more.

HTH,
Umapathy

Arise Awake and Stop NOT till the goal is Reached!
doug mielke
Respected Contributor

Re: /var/adm/sw/save - Can I delete?

Best 1st option might be to run the
cleanup
command first to get rid of to really useless patch history.
James R. Ferguson
Acclaimed Contributor

Re: /var/adm/sw/save - Can I delete?

Hi Roland:

The *only* correct/safe way to recover space in '/var/adm/sw' is to use the 'cleanup' command. The 'save' direcotory contains superseded patches that you may want to recover. Use:

# cleanup -c 1

...to remove superseded patches back to one-level. This will usually recover quite a bit of space but leave one previous copy of software to which you can rollback to a prior state.

A good practice is to run 'cleanup' before you apply a large patch bundle.

Regards!

...JRF...
Helen French
Honored Contributor

Re: /var/adm/sw/save - Can I delete?

DONOT delete any files under /var/adm/sw manually! That will give you serious problems with your SD-UX setup. You will have two options:

1) Cleanup space on /var file system. Run "cleanup -c 1" to remove old patch filesets to 1 level back. Remove files from /var/adm/crash (if you don't need it), Trim log files - syslog.log, wtmp, btmp, stm logs, spooler logs etc.

2) Add new disk to VG and extend the LV.
Life is a promise, fulfill it!
Elena Leontieva
Esteemed Contributor

Re: /var/adm/sw/save - Can I delete?

Roland,

You do NOT want to do that.

Just run:
cleanup -p -c 2
and see how much space you will reclaim by commiting patches superseded twice.

Then actually reclaim it:
cleanup -c 2

You can also do "-c 1" to reclaim more space.

Remember that you would NOT be able to deinstall the commited patches.

Also, you can extend /var if you have free extents on the drive.

Elena.
Uday_S_Ankolekar
Honored Contributor

Re: /var/adm/sw/save - Can I delete?

I will use cleanup command instead.
#man cleanup for more..

You can remove files from other directories like /var/tmp and also look for any core files in /var.

-USA..
Good Luck..
GK_5
Regular Advisor

Re: /var/adm/sw/save - Can I delete?

Run cleanup command. Cleanup command removes previous version of patches.
Also trim log files.
IT is great!