LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (http://www.linuxquestions.org/questions/red-hat-31/)
-   -   var filesystem 100% can't login, need help (http://www.linuxquestions.org/questions/red-hat-31/var-filesystem-100-cant-login-need-help-705369/)

acascianelli 02-17-2009 09:28 AM

var filesystem 100% can't login, need help
 
I have a Linux server with a var filesystem at 100% usage. I cannot get logged in to this machine to clear out files. Does anybody have any ideas short of a reboot to get logged into this system?

datopdog 02-17-2009 09:49 AM

You should still be able to login even if the partition is full.

acascianelli 02-17-2009 09:52 AM

Quote:

Originally Posted by datopdog (Post 3447004)
You should still be able to login even if the partition is full.

Nope, console just hangs.

datopdog 02-17-2009 09:56 AM

something else should be wrong, u could try running commands (delete old logs or useless files) via ssh without logging in

Code:

ssh hostname 'rm -rf /var/log/messages.{2,3,4,5}'

druidmatrix 02-17-2009 07:54 PM

I have a feeling some sort of blocking write may be preventing you from logging in. What I'd advice is to boot into rescue mode, mount the disk, and clear up space on /var and whatever else may be full.

anomie 02-17-2009 07:58 PM

Quote:

Originally Posted by druidmatrix
What I'd advice is to boot into rescue mode, mount the disk, and clear up space on /var and whatever else may be full.

That's what I would do as well. (Except replace "rescue mode" with "single-user mode"; either is fine. It may be that the rescue cd provides a more robust working environment.)

syg00 02-17-2009 08:47 PM

Quote:

Originally Posted by acascianelli (Post 3447009)
Nope, console just hangs.

If it's ext[234], login as root. Unless you changed the default at mkfs, the reserved space should allow root login.


All times are GMT -5. The time now is 01:07 AM.