- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: how to use the clean up command
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-01-2015 07:12 AM - last edited on 01-01-2015 05:08 PM by Maiko-I
01-01-2015 07:12 AM - last edited on 01-01-2015 05:08 PM by Maiko-I
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
- Tags:
- cleanup
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-01-2015 01:59 PM
01-01-2015 01:59 PM
Re: how to use cleanup(1m)?
>1. how to use the cleanup command.
See these other topics:
http://h30499.www3.hp.com/t5/Patches/help-on-var-adm-sw-save/m-p/6381919
http://h30499.www3.hp.com/t5/Patches/Patch-Commit-and-the-Cleanup-command/m-p/5044350
http://h30499.www3.hp.com/t5/Patches/Cleanup-Utility/m-p/2562507
http://h30499.www3.hp.com/t5/Patches/Running-cleanup-dangers/m-p/5071312
http://h30499.www3.hp.com/t5/Patches/removing-patches-in-the-save-custom-directory/m-p/5265720
http://h30499.www3.hp.com/t5/Patches/Patch-cleanup-all/m-p/4825119
http://h30499.www3.hp.com/t5/tag/cleanup/tg-p/category-id/itrc-117
>2. the best way to housekeep /var/adm/sw/save/ directory
The only supported way is to use cleanup(1m). Unless you want to save off the files and put them back later.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-01-2015 06:29 PM - edited 01-01-2015 06:35 PM
01-01-2015 06:29 PM - edited 01-01-2015 06:35 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2015 10:47 AM
01-02-2015 10:47 AM
Re: how to use the clean up command
Cleanup -c 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2015 12:35 PM
01-02-2015 12:35 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2015 03:40 PM - edited 02-22-2015 08:20 PM
01-02-2015 03:40 PM - edited 02-22-2015 08:20 PM
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.