- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- /var is 85%, need to bring it to 70%, please help ...
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
06-29-2012 10:06 PM
06-29-2012 10:06 PM
/var is 85%, need to bring it to 70%, please help me.
Hi,
/var is 85% reached and need to bring it to 70% to 75%.
Please help me.
Please help me.
Regards,
Aparna.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2012 11:49 PM - edited 06-30-2012 10:29 PM
06-29-2012 11:49 PM - edited 06-30-2012 10:29 PM
Re: /var is 85%, need to bring it to 70%
You need to find large directories under /var/.
Do you have anything in /var/adm/crash/?
You could clean up and commit old patches, with cleanup(1m).
These are in: /var/adm/sw/save/
You can also search the forum for similar requests about /var/ being full:
http://h30499.www3.hp.com/t5/System-Administration/var-Issue/m-p/5441675/
http://h30499.www3.hp.com/t5/System-Administration/VAR-mount-point-is-utilized-85/m-p/4824073/
http://h30499.www3.hp.com/t5/System-Administration/var-space-incress-steps/m-p/5289855/
http://h30499.www3.hp.com/t5/System-Administration/var-directory-is-full/m-p/5438015/
http://h30499.www3.hp.com/t5/General/var-grow-up-irregular/m-p/4058941/
Or consult the tag cloud:
http://h30499.www3.hp.com/t5/tag/cleanup/tg-p/category-id/itrc-117
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2012 12:31 AM
06-30-2012 12:31 AM
Re: /var is 85%, need to bring it to 70%, please help me.
I have to zip the log files and nullify the original file.
How to do this in HP-UX ?
What are the commands to use this in HP Unix ?
/var/adm/cron and /var/adm/syslog files need to be zipped and nullify the original one.
How to do this ?
Please help me with your comands.....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2012 04:02 PM
06-30-2012 04:02 PM
Re: /var is 85%, need to bring it to 70%, please help me.
>> /var/adm/cron and /var/adm/syslog files need to be zipped and nullify the original one.
/var/adm/cron and /var/adm/syslog are not files, they are directories.
In /var/adm/cron, there are log files that can be reduced, for example:
cd /var/adm/cron
cp log log.old
> log
gzip log.old
Similarly, for syslog:
cd /var/adm/syslog
cp syslog.old syslog.log.old
> syslog.log
gzip syslog.log.old
However, it is really important to look for big directories first, not big files. Use this command:
du -kx | sort -rn | head -20
Then post the result. You may have directories that have thousands of small files that need to be removed, so looking for large files will miss these directories.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2012 04:28 PM - edited 06-30-2012 10:28 PM
06-30-2012 04:28 PM - edited 06-30-2012 10:28 PM
Re: /var is 85%, need to bring it to 70%
>/var/adm/cron/ and /var/adm/syslog/ files need to be zipped and nullify the original one
Are these logs there really that large?
You're looking to remove ~700 Mb.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2012 09:27 PM
06-30-2012 09:27 PM
Re: /var is 85%, need to bring it to 70%, please help me.
Hi,
Thank you for your time and attention.
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol8 4718592 4001120 711928 85% /var
# du -akx /var | sort -nr | more
3987208 /var
2436008 /var/stm
2419056 /var/stm/logs
2418128 /var/stm/logs/os
1077600 /var/adm
985080 /var/adm/sw
823696 /var/adm/sw/save
333160 /var/opt
141480 /var/opt/OV
141168 /var/adm/sw/products
136560 /var/opt/OV/tmp
136512 /var/opt/OV/tmp/OpC
119200 /var/opt/OV/tmp/OpC/msgagtq
68024 /var/opt/wbem
67136 /var/tmp
66344 /var/adm/cron
63680 /var/adm/cron/log
58712 /var/adm/sw/save/PHCO_35291
58704 /var/adm/sw/save/PHSS_33944
57608 /var/adm/sw/save/PHCO_35291/VXVM-RUN
55976 /var/opt/sfmdb/pgsql
55976 /var/opt/sfmdb
55392 /var/opt/perf
53048 /var/opt/perf/datafiles
38040 /var/tmp/EMCPower.HPUX.5.1.0.GA.b160.tar
34208 /var/adm/sw/save/PHSS_32977
33592 /var/opt/wbem/repository
32768 /var/opt/sfmdb/pgsql/pg_xlog
32192 /var/adm/sw/save/PHSS_32976
31392 /var/adm/sw/save/PHSS_36004
30240 /var/adm/sw/save/PHSS_26946
29120 /var/mail
28464 /var/adm/sw/save/PHSS_28386
26184 /var/opt/wbem/repository/root#cimv2
25792 /var/adm/sw/save/PHCO_35291/VXVM-RUN/etc/vx
25792 /var/adm/sw/save/PHCO_35291/VXVM-RUN/etc
25616 /var/opt/wbem/repository/root#cimv2/classes
24456 /var/adm/sw/save/PHSS_32223
24384 /var/adm/sw/save/PHCO_35291/VXVM-RUN/usr
23896 /var/adm/sw/save/PHSS_27367
23816 /var/adm/sw/save/PHCO_35743
23800 /var/adm/sw/save/PHCO_29495
23480 /var/adm/sw/save/PHSS_33944/LANG-64ALIB/usr/lib/pa20_64
Could you please assisst me now, how to bring the /var % to 70 ?
The above directories used space is displayed .
Please help me with your answers.
Regards,
Aparna.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2012 10:28 PM
06-30-2012 10:28 PM
Re: /var is 85%, need to bring it to 70%
2418128 /var/stm/logs/os
You should clean the logs here.
> 823696 /var/adm/sw/save
You should use cleanup(1m) to get right of superseded patches.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2012 10:43 PM - edited 06-30-2012 10:48 PM
06-30-2012 10:43 PM - edited 06-30-2012 10:48 PM
Re: /var is 85%, need to bring it to 70%
Hi,
Can you please give me the commands to clean up this directory ?
Won't be any impact on the server if I clean up the logs in this directory /var/adm/sw/save ?
Please give me the commands,plz...so that in future if same situation occurs, it will be helpfull for me to apply same commands.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2012 10:57 PM
06-30-2012 10:57 PM
Re: /var is 85%, need to bring it to 70%
>Can you please give me the commands to clean up this directory?
For /var/stm/logs/os/, just remove all but the latest.
>Won't be any impact on the server if I clean up the logs in this directory /var/adm/sw/save?
There are no logs, just backup of superseded patches.
Have you looked at the links above about cleanup(1m) and the man page?
cleanup -c 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2012 02:54 AM
07-01-2012 02:54 AM
Re: /var is 85%, need to bring it to 70%
Hi,
These are the pacthes that are superseded .
# /var/adm/sw/save->cleanup -p -c 3
The following patches superseded at least 3 time(s) can be committed:
Superseded # Times Superseded Disk Space in /var/adm/sw/save Superseded By
========== ================== ============================== =============
PHCO_27018 3 188416 bytes PHCO_33142
PHCO_29029 3 23543808 bytes PHCO_29495
PHKL_29047 3 704512 bytes PHKL_32090
PHSS_29183 3 13189120 bytes PHSS_32976
Now,please assist me which patches to be removed and How?
Please help me with your commands.