Sponsored Content
Operating Systems HP-UX /var partition full need help Post 302601616 by vbe on Friday 24th of February 2012 05:03:32 AM
Old 02-24-2012
Not a good idea...Unless you like fighting with funky issues....

That said in there (/var/adm/sw) you will find all the patches installed (and obsoleted, and uninstalled etc...) You may gain space by intellingently doing some cleanup, beware of the risk of not being able to "rollback" removed patches afterward... but very first superseeded patchs are of little risk...
What about /var/adm/syslog? what size are the logs there?
I trim them regularly ( customized by me though - important info in beginning syslog (at boot time) is always kept till next reboot...)

...
There are logs in /var/stm you can clean also and save 10-400 MB...
I have an old 10.20 that makes me sweat regularly (vital old legacy stuff nobody wanted to port : forms 3 with oracle 7.2.3...)
Code:
civ:/var/stm/logs/sys $ ll
total 434840
-rw-r--r--   1 root       root       220525916 Feb 24 11:29 activity_log
-rw-rw-r--   1 root       sys            878 May  5  2010 config.stm
-rw-r--r--   1 root       root          4584 Feb  2 09:02 diaglogd_activity_log
-rw-r--r--   1 root       root          5480 Feb  2 09:02 memlogd_activity_log
-rw-r--r--   1 root       root          5872 Feb  2 09:02 scan_hw_log
civ:/var/stm/logs/sys $ bdf /var
Filesystem          kbytes    used   avail %used Mounted on
/dev/vg00/lvol8     921600  555664  344185   62% /var

I only have this unique volume group vg00 in mirror on old SCSI 9GB (all space saving is important...) with all on it.
When I forget to look (thanks for reminding me Hehe...) the system crashes... and this box is not on site but in the countryside (with snow lately and Im on motorcycle...)
I just zero activity_log periodically, So Do it today:
Code:
civ:/var/stm/logs/sys $ ll
total 434840
-rw-r--r--   1 root       root       220578080 Feb 24 11:37 activity_log
-rw-rw-r--   1 root       sys            878 May  5  2010 config.stm
-rw-r--r--   1 root       root          4584 Feb  2 09:02 diaglogd_activity_log
-rw-r--r--   1 root       root          5480 Feb  2 09:02 memlogd_activity_log
-rw-r--r--   1 root       root          5872 Feb  2 09:02 scan_hw_log
civ:/var/stm/logs/sys $ >activity_log
civ:/var/stm/logs/sys $ r bdf
bdf /var
Filesystem          kbytes    used   avail %used Mounted on
/dev/vg00/lvol8     921600  338265  547997   38% /var

Look at how fast its growing though:
Code:
-rw-r--r--   1 root       root       220525916 Feb 24 11:29 activity_log
-rw-r--r--   1 root       root       220578080 Feb 24 11:37 activity_log

approx 12k/min

Last edited by vbe; 02-24-2012 at 06:45 AM.. Reason: Addendum ...
 

10 More Discussions You Might Find Interesting

1. HP-UX

i-node full on /var

Can anyone tell me how would I troubleshoot when /var becomes full with inodes? This is on HP11.11 system. Where used is 92%, ifree is 1891 iuse is 88%. Thanks. (3 Replies)
Discussion started by: catwomen
3 Replies

2. UNIX for Dummies Questions & Answers

Full Partition?

Hi Everyone, I think I've filled up one of the partitions on my drive. I suspect that one of the applications I've been running has been spitting out junk files to this partition - most of which can be deleted. The problem is that I have no idea how to go look at what's on that partition and... (2 Replies)
Discussion started by: Choppy
2 Replies

3. AIX

/var 100% full

What to do if /var filesystem in Aix is completely full ? (2 Replies)
Discussion started by: kkhan
2 Replies

4. Filesystems, Disks and Memory

partition out /var

Hi If You were the systems administrator of a mail server that services approximately 3,000 users. 2,000 users access their email via a POP-3 service, while the remaining 1,000 users access their email via a Unix mail reader. Recently users have complained about speed of disk access, so a new 10... (1 Reply)
Discussion started by: semaphore
1 Replies

5. BSD

Moving /var partition to USB stick

I am currently running DesktopBSD as a live-CD and need to have a large /var partition because it is currently too small. I have a USB stick which is BSD formatted, and would like to have the /var partition moved over to it. How can this be done? Could I for instance use a symlink? (1 Reply)
Discussion started by: figaro
1 Replies

6. AIX

/var filesystem is full

Hi, Is there a way to clear the temp files from /var/tmp? Is root access required to delete the files? Thanks, Narayan (2 Replies)
Discussion started by: narayanv
2 Replies

7. AIX

/var/spool/squeue gets full frequently

hi, im new in aix administration.. months ago, I received mails, everytime a cron was executed. but now, I don't receive these mails.. and the /var/spool/squeue, gets full frequently. i'd like to know more information about this, what can i do?? sendmail is up, because, I executed ps -ef |grep... (5 Replies)
Discussion started by: fdeivis
5 Replies

8. Solaris

Install with /var in separate partition - Zfs / 10

This is my first time working with ZFS on Solaris 10. I am trying to set up /var in a separate partition from /. During the installation, I came across the ZFS settings where I selected disks 0 and 1 to be mirrored with ZFS. Next was the option to have /var and / on separate datasets. Is... (3 Replies)
Discussion started by: 6L71
3 Replies

9. UNIX for Dummies Questions & Answers

How can partition out /var with these two separate 10 gigabyte disks?

In my company ,there is a mail server that services approximately 3,000 users. 2,000 users access their email via a POP-3 service, while the remaining 1,000 users access their email via a Unix mail reader. Recently users have complained about speed of disk access, so a new 10 gigabyte disk has... (1 Reply)
Discussion started by: lemon_06
1 Replies

10. UNIX for Dummies Questions & Answers

/var/audit full

Hi, I have Solaris-10 (having multiple non global zones running on it). Its /var is getting full to 100% and I can see, there are files getting added to /var/audit. There are large in number, so even if I clearing them, it is filling /var. In past 24 hours, there are 53000 files are added. I am... (1 Reply)
Discussion started by: solaris_1977
1 Replies
FORCESALVAGE(5) 						AFS File Reference						   FORCESALVAGE(5)

NAME
FORCESALVAGE - Forces salvage of entire partition DESCRIPTION
The FORCESALVAGE file, if present on an AFS server partition (that is, in a /vicep directory), signals that the Salvager must salvage the entire partition. The AFS-modified version of the fsck program creates the empty (zero-length) file when it discovers corruption on the partition. The Salvager removes the file when it completes the salvage operation. When the File Server detects the presence of the file on a partition on which it is attaching volumes, it stops, detaches any volumes that are already attached, and exits after recording a message in the /var/log/openafs/FileLog file. The Bos Server then invokes the Salvager to salvage the partition. SEE ALSO
FileLog(5), bosserver(8), fileserver(8), salvager(8) COPYRIGHT
IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved. This documentation is covered by the IBM Public License Version 1.0. It was converted from HTML to POD by software written by Chas Williams and Russ Allbery, based on work by Alf Wachsmann and Elizabeth Cassell. OpenAFS 2012-03-26 FORCESALVAGE(5)
All times are GMT -4. The time now is 11:38 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy