LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 02-17-2009, 09:28 AM   #1
acascianelli
Member
 
Registered: Oct 2002
Location: Michigan
Posts: 71

Rep: Reputation: 15
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?
 
Old 02-17-2009, 09:49 AM   #2
datopdog
Member
 
Registered: Feb 2008
Location: JHB South Africa
Distribution: Centos, Kubuntu, Cross LFS, OpenSolaris
Posts: 806

Rep: Reputation: 41
You should still be able to login even if the partition is full.
 
Old 02-17-2009, 09:52 AM   #3
acascianelli
Member
 
Registered: Oct 2002
Location: Michigan
Posts: 71

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by datopdog View Post
You should still be able to login even if the partition is full.
Nope, console just hangs.
 
Old 02-17-2009, 09:56 AM   #4
datopdog
Member
 
Registered: Feb 2008
Location: JHB South Africa
Distribution: Centos, Kubuntu, Cross LFS, OpenSolaris
Posts: 806

Rep: Reputation: 41
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}'
 
Old 02-17-2009, 07:54 PM   #5
druidmatrix
LQ Newbie
 
Registered: Feb 2009
Posts: 13

Rep: Reputation: 0
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.
 
Old 02-17-2009, 07:58 PM   #6
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
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.)
 
Old 02-17-2009, 08:47 PM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Quote:
Originally Posted by acascianelli View Post
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.
 
Old 05-08-2019, 09:02 AM   #8
prakashmudalagiri
LQ Newbie
 
Registered: May 2019
Posts: 1

Rep: Reputation: Disabled
Quote:
Originally Posted by acascianelli View Post
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?

You can login from any other machine with ssh enabled(passwordless) user and clear the logs.
 
Old 05-08-2019, 05:38 PM   #9
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
The last post was over 10 years ago - the original poster obviously no longer has an issue. Please don't revive long-dead threads for no useful purpose.
 
1 members found this post helpful.
Old 05-19-2019, 10:34 AM   #10
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by prakashmudalagiri View Post
You can login from any other machine with ssh enabled(passwordless) user and clear the logs.
And to add to what syg00 said, this is also bad/incorrect. If you can't get logged in locally, what on earth makes you think you can log in over the network? It starts a shell, same as if you logged in locally. It's still going to try to access /var, and can't. Plain bad advice.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
can i umount var filesystem?? raklo Linux - Kernel 14 06-19-2007 08:44 AM
/var is at 100% usage, even after deleting files WindowBreaker Slackware 6 09-10-2006 08:17 AM
not able to clear the var folder show 100% usage help me? oldnavyboy06 Linux - Networking 1 07-11-2006 05:04 AM
Solaris 9 /var directory is at 100% rust8y Solaris / OpenSolaris 4 05-05-2006 05:54 PM
login screen font size over 100 - can't login xzy2435 Linux - Newbie 1 11-20-2003 11:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 12:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration