- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: File system is going to full :: /usr, /var and...
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
Discussions
Forums
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
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
тАО08-10-2010 07:53 PM
тАО08-10-2010 07:53 PM
Above mention file system is going to full and want to delete unused contents to reclaim some space.Following is snap of mention file system
/dev/vg00/lvol8 10256384 8375072 1867088 82% /var
/dev/vg00/lvol7 8192000 6319016 1858416 77% /usr
/dev/vg00/lvol4 5144576 3936160 1202408 77% /tmp
Thanks
Mehul
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-10-2010 10:12 PM
тАО08-10-2010 10:12 PM
Re: File system is going to full :: /usr, /var and /tmp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-10-2010 10:29 PM
тАО08-10-2010 10:29 PM
SolutionThe following advice should be applicable to both:
-----------
/dev/vg00/lvol8 10256384 8375072 1867088 82% /var
- In /var/tmp, anything older than the current system uptime can usually be safely deleted.
- Look into sub-directories of /var/spool/:
-- if there are many files in /var/spool/mqueue, your system has/had a problem in sending email messages to other systems, *and* you probably don't have a sendmail daemon running.
If you have disabled the sendmail daemon but are using cron or other system features that might send email, make a cron job that runs "sendmail -q" every 30 minutes or so.
-- if there are many large files in printing system hierarchy (/var/spool/lp in HP-UX, usually /var/spool/cups in modern Linux), check your print queues. If you have print jobs in queues that no longer have a working printer attached, disable those queues and remove the jobs using the management commands of the printing system (cancel/lprm). Consider removing any old non-functional print queues.
-------------
/dev/vg00/lvol4 5144576 3936160 1202408 77% /tmp
- Anything in /tmp that is older than the current system uptime can be safely deleted.
(Unless you have people on your system that would store important documents in Recycle Bin if using Windows...)
--------------
/dev/vg00/lvol7 8192000 6319016 1858416 77% /usr
The data in the /usr filesystem should not grow at all unless you're installing some new software. If it's growing, some software has been configured to write into an inappropriate location. Find it and fix. Look for new or recently-modified files:
find /usr -mtime -10 -xdev
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2010 10:58 AM
тАО08-11-2010 10:58 AM
Re: File system is going to full :: /usr, /var and /tmp
find /var -size +8000000c this will search file above 8 or 8mb. similary you can use for rest of the file system.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2010 11:53 AM
тАО08-11-2010 11:53 AM
Re: File system is going to full :: /usr, /var and /tmp
Use cleanup(1m).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2010 05:48 PM
тАО08-11-2010 05:48 PM
Re: File system is going to full :: /usr, /var and /tmp
du -kx /var | sort -rn | head -30
Now look in the biggest directories and delete wisely. /tmp is less critical than /var but deleting things in /usr is not a good idea without careful consideration. Use the same command above for /usr.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2010 10:12 PM
тАО08-11-2010 10:12 PM
Re: File system is going to full :: /usr, /var and /tmp
(1) /tmp is is dumped with files. Please analyze and remove files/directories not required.
(2) Find if there are core dumps in the system. Usually core files are of huge size.
find . / -name core
Remove the core dumps if there are any in the system.
(3) Are you running any application that creates log files/data back up. If there is any such application running, remove the old backups and perform log file rollover.
HTH
Muru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-12-2010 05:14 AM
тАО08-12-2010 05:14 AM
Re: File system is going to full :: /usr, /var and /tmp
Before deleting anything make sure that the files aren't in use. For this, issue the fuser command. If you delete an in-use file, the space won't get freeed until the process terminates which used that inode.
Regards,
Viktor
Unix operates with beer.