Operating System - HP-UX
1752537 Members
5061 Online
108788 Solutions
New Discussion

Re: how to use the clean up command

 
rajesh73
Super Advisor

how to use the clean up command

Hi,

 

i need to houskeep /var mount point production server due to less space in /var mount point

 

1.how to use the cleanup command.

 

2.please share the best way to housekeep --- /var/adm/sw/save/  directory

 

 

P.S. This thread has been moved from General to HP-UX > sysadmin. - Hp Forum Moderator

5 REPLIES 5
Bill Hassell
Honored Contributor

Re: how to use the clean up command

>> /var/adm/sw/save/

 

Whatever you do, do *NOT* remove any files or directories from these directories.  If you do, most of the install utilities will fail and you'll have to restore the directories from backup. The cleanup command will properly reduce the number of previous files. This directory structure will constantly grow as you install software and patches.



Bill Hassell, sysadmin
rajesh73
Super Advisor

Re: how to use the clean up command

So if I am using below command it will removed all the files under var
Cleanup -c 1
Patrick Wallek
Honored Contributor

Re: how to use the clean up command

>>So if I am using below command it will removed all the files under var
>>Cleanup -c 1

 

No, it will NOT remove all files under /var/adm/sw.  The command will commit (remove) all patches that have been superseded at least once.  That, however, should free up quite a bit of space if you have never used the cleanup command before.

Dennis Handly
Acclaimed Contributor

Re: how to use cleanup(1m)?

>removed all the files under var

 

The only way to remove more files under /var/adm/sw/save/ is if cleanup allowed for -c 0.

Since it doesn't, you would need to use swmodify directly to commit patches that you never want to remove.