LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-22-2006, 07:09 AM   #1
dryhte
Member
 
Registered: May 2003
Location: Where the sun doeth not shine - Ghent, Belgium
Distribution: PC-BSD
Posts: 42

Rep: Reputation: 15
Question RH 7: scsi crc error on boot. need to rescue!


Hi guys... hope I can get some help with this...

I have an ancient (well, 2001) linux box here, running RH 7, that is as close to a production machine as it gets w/out actually being one (it runs a database and SAP on top of that, and reinstalling would take far too many man-days to be an option right now).

After it was once accidentally shut down while running (by using the off switch - grrr!), it now declines to reboot: I get the following SCSI CRC error messages:

Creating Root Device
mounting root filesystem
(scsi:0:0:0:0) CRC error during data-in phase
(scsi:0:0:0:0) CRC error in intermediate CRC packet
scsi: aborting command due to timeout: pid 0, scsi 0, channel 0, id 0, lun 0 read (10) ......

etc etc... different scsi errors keep scrolling for minutes (slowly), but the system doesn't seem to get past them.

BTW - the machine is running 3 20GB IBM scsi drives on an adaptec controller, and has 1gb of pc133 SDRAM.

Since I'm a linux rookie I assumed this must be a hardware problem, but memtest86 showed no problems with the memory, and neither the scsi controller's own device check, nor my device check with IBM's harddisk check program showed any problems.

I was able to boot the machine into LINUX on the same cd I did the hardware checks with (UBCD, includes INSERT toolkit), and there I could mount and access the different SCSI hd's without trouble. Alas, the INSERT toolkit is not really well equipped for recovery...

By now I guessed something very small must be wrong with the filesystem (Ext3 on the boot partitions), and maybe there exists a program that 'fixes' ext3 filesystems... or maybe it's possible to do that from GRUB or LILO (I don't really know with which bootloader the machine was installed, but it appears to be the default RH7 boot loader because it has a RH image)...

Does anyone have even the slightest idea how I can go about this, preferably _without_ reinstalling linux and trying to figure out how to get SAP to work on a newer version of windows?

Thanks...

d.


EDIT: is there something like a boot option that disables the CRC checks? that would help me get into linux, where I can do some further checks... maybe do a fsck or so... Or can I do a fsck from within a live CD? Which liveCD would you recommend for further troubleshooting?

Last edited by dryhte; 08-22-2006 at 08:23 AM.
 
Old 08-22-2006, 10:23 AM   #2
dryhte
Member
 
Registered: May 2003
Location: Where the sun doeth not shine - Ghent, Belgium
Distribution: PC-BSD
Posts: 42

Original Poster
Rep: Reputation: 15
Okay, small update:

e2fsck did not show errors on any of the scsi disks.
removing the scsi cable from the scsi controller and reseating it solved the crc problem.

_but_ now linux hangs after mounting the root filesystem with the following error:

...
Creating root device
Mounting root filesystem
kjounald starting. commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
Freeing unused kernel memory: 220k freed


-HANG-

So... what is INIT supposed to do after mounting the root filesystem? One thing I can think of is initialising a serial mouse (?) -> there used to be one connected to this machine, but I left it in its place when I took this machine home for troubleshooting. Could this hang be caused by the system not finding the serial mouse? Mind you, this is RedHat 7 (so a quite old version of linux)...

Thanks for any replies...

d.
 
Old 08-23-2006, 08:13 AM   #3
dryhte
Member
 
Registered: May 2003
Location: Where the sun doeth not shine - Ghent, Belgium
Distribution: PC-BSD
Posts: 42

Original Poster
Rep: Reputation: 15
Please...

Please...

nobody has an idea what might be going on here?

d.
 
Old 08-23-2006, 08:31 AM   #4
ramram29
Member
 
Registered: Jul 2003
Location: Miami, Florida, USA
Distribution: Debian
Posts: 848
Blog Entries: 1

Rep: Reputation: 47
Go for the simplest alternatives first. Get a can of air duster and remove all the dust. I've toubleshooted Unix systems that hang then refuse to restart simply because they where overloaded with dust. After more than a year of continuous use a system could get so much dust that the circuits in the motherboard overheated. Electricity attracts dust and then creates a layer of insulation over the circuits, causing overheating, hence errors.

I recommend booting from a recent install CD, Fedora 5, for example. I say recent because it contains the latest 2.6 kernel and the latest version of ext3 filesystem. Boot in rescue mode, mount the critical partitions and save them to another system in case it gets any worse. You can do that with a combination of dd, gzip and ssh.

Another think you can do is clone the disk to another unused disk and try diagnosing with that one. Anyhow, do a good backup. This is your time to think of several alternatives.

When it hangs see if you can press Alt-F2, Alt-F3 and Alt-F4 - these terminal sessions output the logs as the kernel starts.

Try booting in single user mode; at the boot: prompt type 'linux single'. See if you can boot like this. That way you can narrow down where the real problem is.
 
Old 08-23-2006, 08:45 AM   #5
dryhte
Member
 
Registered: May 2003
Location: Where the sun doeth not shine - Ghent, Belgium
Distribution: PC-BSD
Posts: 42

Original Poster
Rep: Reputation: 15
Thanks for your input...

I checked the insides of the pc, and there's hardly any dust there (quite contrary to my own hardware, but that's another story )

I tried to start single user, doesn't work, and alt-fX doesn't work either: the computer really hangs. Or not, 'cause ctrl-alt-del still restarts the pc.

Any other ideas?
 
Old 08-23-2006, 10:33 AM   #6
ramram29
Member
 
Registered: Jul 2003
Location: Miami, Florida, USA
Distribution: Debian
Posts: 848
Blog Entries: 1

Rep: Reputation: 47
Is there activity on the hard drive? Do you see the hard drive LED come on or flashing?

I'm thinking you may have a corrupt /boot filesystem or a corrupt initrd ramdisk file. Hopefully the rest may be OK. It says that it is mounting the root file system but probably it is not.

I would suggest to wait for a very long time, 1-2 hours and see if it comes up, especially if you see activity on the hard disks.

You may want to restore your /boot directory; you do have a backup right? If not then start it with a rescue CD, mount your critical data and backup ASAP.

Can you mount it with a rescue CD?
 
Old 08-24-2006, 02:12 AM   #7
dryhte
Member
 
Registered: May 2003
Location: Where the sun doeth not shine - Ghent, Belgium
Distribution: PC-BSD
Posts: 42

Original Poster
Rep: Reputation: 15
backup

I do have a backup, but only for the database and the SAP folders...

I'll take a look at the activity leds and post what I find.

thanks.

d.

EDIT: yes, I can mount everything with a rescue CD (I even e2fsck'ed all partitions), and I don't see any problems when using a rescue CD... but I gues I can't just copy any rescue CD's /boot folders over to my own, right...

Last edited by dryhte; 08-24-2006 at 02:18 AM.
 
Old 08-24-2006, 08:16 AM   #8
ramram29
Member
 
Registered: Jul 2003
Location: Miami, Florida, USA
Distribution: Debian
Posts: 848
Blog Entries: 1

Rep: Reputation: 47
You'll need to mount and copy using the rescue CD. After you mount your root partition then you can make it the root partition for the rest of the session.

Get a CD that is compatible with your relase, RH7.
At the boot prompt type: 'linux rescue'
Mount the root partition but first make the folder:

mkdir /mnt/root
mount /dev/hda1 /mnt/root

Mount the hard disk's root partition as the root.

chroot /mnt/root

Start your services manually.

If you need further detailed help let me know so we can talk. I'm cheap.

Ram
 
Old 07-20-2008, 03:00 AM   #9
maheedhar
LQ Newbie
 
Registered: Jul 2008
Posts: 1

Rep: Reputation: 0
Cool crc boot problem

hi to all, i too have the same problem while booting the fedora 7 linux.
If u have the dual boot (both the windows and linux),first try to boot with
windows and after booting windows,restart the system and now try booting
form linux.I hope it will boot without any problems now.

hey if u r using only the linux then u should restart the system at around
6 times sooo, then it is booting.


try this,it will work.

I think its a hardware problem.At first i use intel 845 motherboard,2.4 processor, with 256mb ram,80gb hard disk. i did'nt get any problem like this (crc error).

when i got new one with intel core-dual 2.6 processor,945 motherboard,1gb ram,80gb hard disk, i am getting this problem.

I think u people to using dual core board,right.

If any one knows how to correct this problem,please reply me.I hate to restart my system that many times.
 
  


Reply

Tags
crc, freeing, kernel, memory, rh, sap, scsi



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
Boot error with SCSI dwclarkNU Linux - General 0 01-09-2006 03:24 PM
CRC Error ghight Linux - Hardware 0 02-07-2005 08:13 AM
How, what, and/or why is a crc error ?? TheHushedCaskeT Linux - Software 1 02-02-2005 07:01 PM
CRC error on boot grahamfsw Slackware 1 09-08-2003 07:36 PM
crc error - wont boot from HD- help newbie ScreeminChikin Linux - General 51 09-08-2002 02:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:47 PM.

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