System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

/var 100% Full ...unable to delete any of the files.

kumar_unix
Occasional Contributor

/var 100% Full ...unable to delete any of the files.

/dev/vg00/lvol7 3080192 3080192 0 100% /var
/dev/vg00/lvol8 2981888 500226 2326622 18% /var/adm/crash
/dev/vg00/lvol6 1032192 709310 302736 70% /users
/dev/vg00/lvol5 2048000 1362452 655783 68% /tmp

bash-2.04$ sudo rm /var/log/ser_mon/ser_mon.Jan
sudo: uid 264485 does not exist in the passwd file!
Sep 28 10:20:14 sudo: 264485 : uid 264485 does not exist in the passwd file! ; TTY=console ; PWD=unknown ; USER=root ; COMMAND=rm
bash-2.04$ Out of disk space for temp file



bash-2.04$ sudo find /var -name core -exec ls {}\;
sudo: uid 264485 does not exist in the passwd file!
Sep 28 10:34:16 sudo: 264485 : uid 264485 does not exist in the passwd file! ; TTY=console ; PWD=unknown ; USER=root ; COMMAND=find
bash-2.04$ Out of disk space for temp file


Unable to delete any of the file under the /var .

Please suggest me on this

Thank u
Kumar
5 REPLIES
Steven E. Protter
Exalted Contributor

Re: /var 100% Full ...unable to delete any of the files.

Shalom Kumar,

1. You are using the bash shell to administrer the system. That is not a good idea. Your bash shell is hopelessly out of date.

I recommend logging on the system as root, using the standard shell, which is posix. If you changed the root shell you are really in deep dudu.

You may in fact need to boot the system into single user mode to resolve this problem if the earlier steps do not work.

Your technique to find core files requires space on the /var file system which does not exist.

Try clearing some space with the rm command before trying to collect a list of core files.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Pete Randall
Outstanding Contributor

Re: /var 100% Full ...unable to delete any of the files.

It would appear that sudo needs space in /var to create a temp file. Unless you can find some way to change sudo's location for that temp file (perhaps some sort of variable, like $SUDO_TMP or something), you will need to log in as root to do your work. And - as Steven pointed out, you definitely do not want to use the Bash shell for root.


Pete

Pete
kumar_unix
Occasional Contributor

Re: /var 100% Full ...unable to delete any of the files.

I got the solution . Logged thru the console as root and cleared up some var files .

after that tried to do ssh to the host name , but i got the below is error message

[xyz@el ~]$ ssh db2
xyz@db2's password:
Connection to xyz closed by remote host.
Connection to xyz closed.



Then ran the pwconv command thru the console to sync up passwd file !! worked fine ..

Thank you all for your suggestion .

Kumar

Hakki Aydin Ucar
Honored Contributor

Re: /var 100% Full ...unable to delete any of the files.

Hi,
Another alternative way to solve this issue, try lsof ot see if there is a process got stuck and eats /var ;

# lssof /var

if yes , kill it.
singh sanjeev
Trusted Contributor

Re: /var 100% Full ...unable to delete any of the files.

try to remove the old subset of patches via

cleanup -c 1
Sanjeev Singh