Lofland bLOG

Running out of free space in /var on HPUX

Filed under Unix Notes on Monday, March 13th, 2006 @ 11:24am by Christen

cd /var
bdf .
= free space just here

cleanup -c 1 = clean up any patches that have been superceded at least ome time. May free up some space

check /var/tombstones
check /var/adm/wtmp = last user login info, type “last” to get the info, most systems zero this out daily

Use this to list how much space is used by each directory, starting with the biggest. Useful for spotting where the problem may be:
du -kxa . | sort -rn | more

remember:

> filename = zero a file out, used for open files! (same as cat /dev/null > filename)

/var/adm/wtmp holds the info that “last” shows It gets quite huge if noone cleans it out. Most boxes have a cron job to do this just:
> /var/adm/wtmp to empty it

last = last good login
lastb = last login failure

Remember to cp things out to another filesystem and gzip them before zeroing them out if you are unsure about whether they will be needed later or not.

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment

Powered by WordPress