- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - HP-UX
- >
- System Administration
- >
- how to use the clean up command
-
-
Categories
- Topics
- Hybrid IT with Cloud
- Mobile & IoT
- IT for Data & Analytics
- Transformation
- Strategy and Technology
- Products
- Cloud
- Integrated Systems
- Networking
- Servers and Operating Systems
- Services
- Storage
- Company
- Events
- Partner Solutions and Certifications
- Welcome
- Welcome
- Announcements
- Tips and Tricks
- Feedback
-
Blogs
- Alliances
- Around the Storage Block
- Behind the scenes @ Labs
- Converged Data Center Infrastructure
- Digital Transformation
- Grounded in the Cloud
- HPE Careers
- HPE Storage Tech Insiders
- Infrastructure Insights
- Inspiring Progress
- Internet of Things (IoT)
- My Learning Certification
- Networking
- OEM Solutions
- Servers: The Right Compute
- Telecom IQ
- Transforming IT
-
Quick Links
- Community
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Contact
- Email us
- Tell us what you think
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Enterprise.nxt
- Marketplace
- Aruba Airheads Community
-
Categories
-
Forums
-
Blogs
-
InformationEnglish
how to use the clean up command
- 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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- 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
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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
01-01-2015 01:59 PM
01-01-2015 01:59 PM
Re: how to use cleanup(1m)?
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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- 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
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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
01-02-2015 10:47 AM
01-02-2015 10:47 AM
Re: how to use the clean up command
Re: how to use the clean up command
Cleanup -c 1
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
01-02-2015 12:35 PM
01-02-2015 12:35 PM
Re: how to use the clean up command
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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- 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)?
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.
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2018 Hewlett Packard Enterprise Development LP