LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-06-2008, 02:08 PM   #1
sneakyimp
Senior Member
 
Registered: Dec 2004
Posts: 1,005

Rep: Reputation: 67
Cannot login to CentOS system even as root...disk failure?


I am pretty desperate. My site went down with a critical error saying it cannot create any more sessions. When I try to login to the machine via SSH as root, I get this output:
Code:
login as: root
root@mydomain.com's password:
-bash: /etc/profile: Input/output error
-bash: /root/.bash_profile: Input/output error
It then fails to respond to any commands at all. Is this a disk failure? What is going on? How do I get my machine back online?
 
Old 04-06-2008, 02:56 PM   #2
DragonSlayer48DX
Registered User
 
Registered: Dec 2006
Posts: 1,454
Blog Entries: 1

Rep: Reputation: 74
I/O error typically means your cpu and hdd are no longer able to communicate with each other. Have you tried rebooting? That will tell a lot. If reboot fails, open the box and make sure all cables are still connected. If that's not the problem, you've most likely suffered a hdd crash. But sometimes rebooting solves the problem. Computers still suffer glitches.

Last edited by DragonSlayer48DX; 04-06-2008 at 02:59 PM.
 
Old 04-06-2008, 03:20 PM   #3
sneakyimp
Senior Member
 
Registered: Dec 2004
Posts: 1,005

Original Poster
Rep: Reputation: 67
THANKS for your response! This is totally ruining my Sunday. I have called the hosting provider and no one has gotten back to me. I think you are right. The system has 3 hard drives in it, however: backup, database, and system/php/apache/etc. I'm totally on pins and needles waiting on tech support.
 
Old 04-06-2008, 03:40 PM   #4
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 172Reputation: 172
You can also get screwy results if the drive that your logs are on gets full. It does not take long to fill up a drive if something goes a little wacko and you get a repeating log every few seconds. Ext3 normally reserves overhead just for this purpose but some vendors remove this to gain more space.
 
Old 04-06-2008, 03:55 PM   #5
DragonSlayer48DX
Registered User
 
Registered: Dec 2006
Posts: 1,454
Blog Entries: 1

Rep: Reputation: 74
Quote:
Originally Posted by sneakyimp View Post
The system has 3 hard drives in it, however: backup, database, and system/php/apache/etc.
Quote:
It then fails to respond to any commands at all.
From these two quotes, it seems your system/php/apache/etc drive is not communicating. Have you tried rebooting, yet? If it does reboot correctly, check the free space on each drive per lazlow's suggestion.
 
Old 04-06-2008, 03:56 PM   #6
sneakyimp
Senior Member
 
Registered: Dec 2004
Posts: 1,005

Original Poster
Rep: Reputation: 67
How does one solve the problem where the drive is full ?
 
Old 04-06-2008, 04:07 PM   #7
DragonSlayer48DX
Registered User
 
Registered: Dec 2006
Posts: 1,454
Blog Entries: 1

Rep: Reputation: 74
Start by deleting unnecessary log files. If something went awry to cause a runaway log to fill the drive, find and correct the error to prevent it from reoccurring. If everything is working properly, replace the drive with a larger one, or piggy-back another drive to the system.
 
Old 04-06-2008, 04:19 PM   #8
sneakyimp
Senior Member
 
Registered: Dec 2004
Posts: 1,005

Original Poster
Rep: Reputation: 67
That's pretty tough if I can't log in. Might I have to pull the drive and put it in another machine to gain access to it?
 
Old 04-06-2008, 04:23 PM   #9
DragonSlayer48DX
Registered User
 
Registered: Dec 2006
Posts: 1,454
Blog Entries: 1

Rep: Reputation: 74
No... You can boot from a live CD like Knoppix or Linux-Rescue, and use their tools.
 
Old 04-11-2008, 07:24 PM   #10
sneakyimp
Senior Member
 
Registered: Dec 2004
Posts: 1,005

Original Poster
Rep: Reputation: 67
Thanks so much for the help everyone! Apparently the box had a bad SATA cable. At least that's what the hosting company told me. We'll see I guess.
 
Old 04-11-2008, 11:34 PM   #11
Kahless
Member
 
Registered: Jul 2003
Location: Pennsylvainia
Distribution: Slackware / Debian / *Ubuntu / Opensuse / Solaris uname: Brian Cooney
Posts: 503

Rep: Reputation: 30
Not unlikley at all. Sata cables tend to frequently fit way too loosly sometimes, and the vibrations in the box could certainly take it down if its not snug.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
system said the our root password failure when I use ssh to connect Fedora8 vvcat Linux - Security 1 03-03-2008 12:21 PM
Boot Disk Failure, Insert System Disk and Press Enter!! novkhan Linux - Hardware 1 12-15-2005 07:39 PM
Slackware 10.1 Root Login Failure squiggerz Slackware 6 02-21-2005 01:41 PM
root login failure on samba-swat strimp099 Linux - Networking 4 05-27-2004 05:24 AM
root disk failure OSI-laya Slackware 0 06-05-2003 11:50 AM


All times are GMT -5. The time now is 07:04 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration