- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how to add space to /var directory - urgent
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
Forums
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
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
10-03-2001 11:22 AM
10-03-2001 11:22 AM
on of our file system directory on HP-UX 11.0 was full.
by 'bdf' command returns as follows
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol8 516096 516015 81 100% /var
how to increase the space for '/var'with out any disturbence.
note we can't get in 'SAM- file system'
thnx
vasu
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2001 11:28 AM
10-03-2001 11:28 AM
SolutionYou can do few things now to temporarly get rid of it.
Identify a file system that has free space and copy /var/adm/sw/save into it and link it from /var/adm/sw directory.
#mv /var/adm/sw/save /another_filesystem/varadmsave
#ln -s /another_filesystem/varadmsave /var/adm/sw/save
Check your /var/tmp and clean up the big files.
Check /var/mail directory and delete unnecessary mail files.
When you get a chance to reboot the system, get it into single user mode and increase the /var file system.
If you have onlineJFS, you can increase /var on the fly.
lvextend -L new_size /dev/vg00/lvol???
fsadm -b new_size_in_blocks /var
new_size_in_blocks=new_size*1024
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2001 11:35 AM
10-03-2001 11:35 AM
Re: how to add space to /var directory - urgent
Check big files in
/var/adm/sa
/var/mail
/var/tmp
/var/tombstones
/var/adm/crash
/var/preserve
If possible delete/move/zip them.
You can also use cleanup utility to commit some patches.
#cleanup -p -c 2 :- to list patches superseeded twice atleast.
#cleanup -c 2 :- to commit patches superseeded twice atleast. This will free up some sapce by deleting save file sets for those patches in /var/adm/sw dir.
Good luck
Prashant.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2001 11:37 AM
10-03-2001 11:37 AM
Re: how to add space to /var directory - urgent
In addition to the suggestions already made:
> Look for any 'core' files.
> Remove files in /var/preserve (old vi recovery files).
> Remove files in /var/tombstones (except 'ts99' which is the most *current*).
> run 'cleanup' [see the man pages *first*]
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2001 11:38 AM
10-03-2001 11:38 AM
Re: how to add space to /var directory - urgent
du -kx /var | sort -rn > /tmp/du.var
Now look at the top lines in /var..what are the biggest directories? Is it:
/var/mail -- (someone got a giant email)
/var/spool -- (someone is printing a massive file)
/var/adm -- (probably a big logfile)
/var/adm/syslog -- (definitely a big logfile)
/var/adm/sw -- (patches, but cleanup will require space in /var)
/var/tmp -- (someone has a bunch of big files in /var/tmp)
Make note of what happened as you will probably have to go back again (and again...) until you fix the problem. /var is the most critical directory in the system since if it gets full, almost everything stops running (mail, spooling, logging, etc)
DOn't increase /var until you put the brakes on unnecessary files (a cron job to remove or trim them)
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2001 11:53 AM
10-03-2001 11:53 AM
Re: how to add space to /var directory - urgent
to get large files by some number
find /var -size +10000c -exec ls -l{}/;
or you can try
du -kx |awk -F/ `NF==2` | sort -n
also trim syslog.log and mail.log file in /var/adm/syslog directory
Good luck
-USA..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2001 12:24 PM
10-03-2001 12:24 PM
Re: how to add space to /var directory - urgent
This works well with things like Measureware which writes its large datafiles to /var/opt/perf/datafiles.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2001 12:27 PM
10-03-2001 12:27 PM
Re: how to add space to /var directory - urgent
we solved the problem .
we get rid of some files from
/var/adm/crash directory. our system was crashed more than once recently , because of power failures, which creates big files in that directory.
thank you all for your reply.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2001 12:47 PM
10-03-2001 12:47 PM
Re: how to add space to /var directory - urgent
Depending on if you want to keep these crash files or not, you can prevent them from being created. The startup script is savecrash (I can't remember where the file is that you specify where to run it), but just change the value to 0 from 1 and it will stop making these every reboot. Of course, the danger is that you will not be able to use the crash file to determine why it crashed. You could also set up a cron job to clean these out monthly or whatever. It will help to prevent problems in the future.
Mark