- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: /var with 97%
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
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
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
тАО06-05-2000 11:14 PM
тАО06-05-2000 11:14 PM
/var with 97%
I'm facing some problems with /var directory. it's 97% and I have trimmed all log files under /var/adm/syslog directory but still 97%.
what have I to do to decrease it?
regards,
a cossa
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-05-2000 11:22 PM
тАО06-05-2000 11:22 PM
Re: /var with 97%
check if you have dumps under /var/adm/crash if they are old, get ride of them. if they are new, move them away and call your local responce center.
Any file called 'core' under /var? (find /var -name core)
Are there any huge log files from STM? (/var/stm/logs/os) if the are old, delete them but keep the one with the ending .cur
If they are all new, call your Hardware support
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-06-2000 12:02 AM
тАО06-06-2000 12:02 AM
Re: /var with 97%
Some other filesystems you would like to check:
1) /var/mail
2) /var/spool/lp/request
3) /var/adm/cron/
Combine the "find" command with the -mtime command to check for latest added files or -size option for searching files in /var greater than a specific size. A cruder and less effective method would be to use ls -laRt to sort the files by most recently added first.
If possible, for dynamic directories residing in /var, split them away from /var as separate filesystems eg. /var/spool/lp/request.
Regards.
Steven Sim.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-06-2000 12:07 AM
тАО06-06-2000 12:07 AM
Re: /var with 97%
cd /var
du | sort -nr | more
and decide if you need the big ones...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-06-2000 12:12 AM
тАО06-06-2000 12:12 AM
Re: /var with 97%
if you are running HP-UX 10.20 you can reduce
the patch database (superseded patches) by using the command:
cleanup
If you not have the command install patch
PHCO_12140
Regards
Andrew
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-06-2000 12:25 AM
тАО06-06-2000 12:25 AM
Re: /var with 97%
# /dev/null > /var/adm/wmtp.
Check your /var/preserve file to delete the EX*** files.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-06-2000 12:28 AM
тАО06-06-2000 12:28 AM
Re: /var with 97%
You should try and modify the software product, and clear the old ones.
use the command :
swmodify -x patch_commit=true PH*.*
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-06-2000 03:17 AM
тАО06-06-2000 03:17 AM
Re: /var with 97%
We have some log files in /var and we can trim it to 0 with the help of >
try to trim the log files
>/var/adm/wtmp
>/var/adm/syslog/syslog.log
>/var/adm/sulog
>/var/adm/btmp
>/var/tmp(delete complte dir)
also try to find out which files is taking max size anmd we can check it with.
du -sk /var |sort -n -r |more
with the above mentioned command you can fidn out who is occupying max.
also see if >/var/adm/crash
hope this will give you space upto 30 %
try this
thanks
regards
NIkhil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-06-2000 02:53 PM
тАО06-06-2000 02:53 PM
Re: /var with 97%
mv sw sw1.
mkdir sw
lvcreate /var/adm/sw
then mv sw1 back to sw.
check /var/tmp for a large files
if you what to make /var bigger use ignite to redo the it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-07-2000 11:38 AM
тАО06-07-2000 11:38 AM
Re: /var with 97%
extendfs completes it, then reboot.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-08-2000 04:20 AM
тАО06-08-2000 04:20 AM
Re: /var with 97%
Also user's mailboxes are now in /var/mail.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-08-2000 09:18 AM
тАО06-08-2000 09:18 AM
Re: /var with 97%
cd /var/opt/perf/datafiles
files=log*
for i in $files
do ls -la $i
done
if [ $n "$1" ]
then for i in $files
do echo "cleaning up " $i;
cat /dev/null > $i
ls -la $i
done
fi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-09-2000 01:45 AM
тАО06-09-2000 01:45 AM
Re: /var with 97%
After checking log files, mailboxes and mailqueues (is your mail server dead?), printer queues (is a printer dead with a huge print job in the queue? I've seen once a 8 GIGABYTES job!), system core dumps...
The culprit could be just the patches! They are under /var/adm/sw, as other products, but here you'll get a patch subdirectory (or save in 11.x) that contains, for each installed patch, the old version of the files. If installed a couple of patch bundles, this could grow just huge. (check with du -sk /var/adm/sw/patch)
In version 10, use the cleanup command (no parameters) to remove all unnecessary files (those related to superseeded patches).
In version 11, you'll have to use the -x patch-commit=true option of swmodify (not completely sure - I donnot have 11 by hand).
Last hint: cleanup your SD-UX logs (/var/adm/sw/*.log) too...
Have fun! Emmanuel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-09-2000 10:16 AM
тАО06-09-2000 10:16 AM
Re: /var with 97%
Many times, it is some huge log file which swallows the entire filesystem. Try this command to take a list of all files which are more than 1 mb in size and delete the unwanted files.
# find /var -size +1000000c -print -exec ls -al {} ;
Regards,
S.Karunanidhi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-09-2000 10:57 AM
тАО06-09-2000 10:57 AM
Re: /var with 97%
Such as (as root):
find /var/adm/sw/save -atime +365 -type d -exec /bin/rm -r {} ;