[SOLVED] CentOS 4.3 not booting

General support questions including new installations
Post Reply
enoch
Posts: 9
Joined: 2011/06/05 01:31:50

[SOLVED] CentOS 4.3 not booting

Post by enoch » 2011/06/05 01:46:15

Last night mySQL failed on our webserver went down, so I remoted in to see what was happening. Tried to look at the my.cnf file to see what was going on, but kept getting read only notices. Tried to check some other files, kept getting the same notice. Did some Googling, found some threads that said my disk is probably going bad. So I decided to restart the server. ( I figured when it doubt, restart)

Well that was a bad move, because I can't get the server to boot up now. I get the attached error.

I tried Googling this problem, but I have not been able to find any solutions that would help me.

For example, I tried running fsck -fp /dev/sda2. But just got some superblock errors.

I have hit a roadblock here, so I am hoping that someone here can help me.

[img align=left]http://www.orbitmicro.com/Desktop.jpg[/img]

foxb
Posts: 1924
Joined: 2006/04/20 19:03:33
Location: Montreal/QC

Re: CentOS 4.3 not booting

Post by foxb » 2011/06/06 12:58:14

You need to run fsck as requested

If you disk went bad I doubt someone could help (except specialized HDD recover companies).

Try first to run check on your HDD with manufacturer utility to confirm that this is the problem.

enoch
Posts: 9
Joined: 2011/06/05 01:31:50

Re: CentOS 4.3 not booting

Post by enoch » 2011/06/06 19:37:17

We imaged the "bad" hard drive onto a new hard drive. So the issue of the disk bad should be alleviated.

But we are still getting the same errors when we boot up.

I ran fdisk -fp /dev/hdc, but then I got some super-block errors. I am not really sure where to go from here.

[img align=left]http://www.orbitmicro.com/desktop1.jpg[/img][/quote]

User avatar
WhatsHisName
Posts: 1544
Joined: 2005/12/19 20:21:43
Location: /earth/usa/nj

[SOLVED] CentOS 4.3 not booting

Post by WhatsHisName » 2011/06/06 19:46:38

[quote]enoch wrote:

...I ran fdisk -fp /dev/hdc, but then I got some super-block errors. I am not really sure where to go from here...[/quote]
Not surprising. You ran fsck (now you've got me doing it (fsck, not fdisk)) against the entire drive that also contained an LVM Physical Volume.

Look at your original posting. The screenshot told you exactly what to run fsck on.

Also, the same screenshot specifically instructed you NOT to use -p (preen).

[code]# fsck.ext3 -f /dev/VolGroup00/LogVol00[/code]

enoch
Posts: 9
Joined: 2011/06/05 01:31:50

Re: CentOS 4.3 not booting

Post by enoch » 2011/06/06 21:57:41

Thanks WhatsHisName

Goes to show how much I know. I kept googling this problem and I found that command during my search and kept running it.

I thought the device was going to look something like, sda, sda1, hba, hdc, etc. Didn't realize it was staring me in the face.

I was able to run the following command and it worked!
fsck -f /dev/VolGroup00/LogVol00

Now my server is back up and running. Thanks again WhatsHisName!

User avatar
WhatsHisName
Posts: 1544
Joined: 2005/12/19 20:21:43
Location: /earth/usa/nj

Re: CentOS 4.3 not booting

Post by WhatsHisName » 2011/06/06 22:03:42

You are welcome.

Guess what?

We have all tried to fsck a partition instead of the Logical Volume at some point in time. :-D

User avatar
AlanBartlett
Forum Moderator
Posts: 9323
Joined: 2007/10/22 11:30:09
Location: ~/Earth/UK/England/Suffolk
Contact:

Re: [SOLVED] CentOS 4.3 not booting

Post by AlanBartlett » 2011/06/07 00:30:41

For posterity this thread is now marked [SOLVED].

Post Reply

Return to “CentOS 4 - General Support”