LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-19-2006, 12:38 PM   #1
UltraSoul
Member
 
Registered: Dec 2004
Location: Japan
Distribution: REDHAT9.0, Mandrake10.1
Posts: 404

Rep: Reputation: 31
kernel I/O error


Hi, all

I got the following /var/messages, I wonder if it is a harmless messages. If it is harm to my system, how to troubleshoot the problem. The system info is as follows:




Jul 16 04:03:27 sys77 kernel: I/O error: dev 08:21, sector 517
Jul 16 04:03:28 sys77 kernel: Directory sread (sector 0x205) failed


I found the error messages always occur around 04:03 every day.

Last edited by UltraSoul; 07-27-2006 at 07:45 AM.
 
Old 07-19-2006, 01:16 PM   #2
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
Seems like your SCSI disk (sdb5 partition, maybe; 'ls -l /dev/sd* | grep 21' will help) is feeling bad. I'm afraid you have lost one of directories. Do you have backups of all the rest? After you do, try investigating fs integrity on disks with fsck, and maybe physical integrity of disk surface.
 
Old 07-22-2006, 07:21 AM   #3
UltraSoul
Member
 
Registered: Dec 2004
Location: Japan
Distribution: REDHAT9.0, Mandrake10.1
Posts: 404

Original Poster
Rep: Reputation: 31
I found an interesting thing.

Hi, raskin

The I/O errors seem to occur at 04:03 every day. I think if it is related to
cron job of every day.

Last edited by UltraSoul; 07-27-2006 at 07:45 AM.
 
Old 07-22-2006, 07:35 AM   #4
UltraSoul
Member
 
Registered: Dec 2004
Location: Japan
Distribution: REDHAT9.0, Mandrake10.1
Posts: 404

Original Poster
Rep: Reputation: 31
I found an interesting thing.

Hi, raskin

The I/O errors seem to occur at 04:03 every day. I think if it is related to
cron job of every day.

Last edited by UltraSoul; 07-27-2006 at 07:47 AM.
 
Old 07-22-2006, 03:11 PM   #5
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
That just means that some of your cron jobs references damaged directory. So you can even find it. Have you already backed up the data? Have you already checked the disk?
 
Old 07-25-2006, 03:01 AM   #6
UltraSoul
Member
 
Registered: Dec 2004
Location: Japan
Distribution: REDHAT9.0, Mandrake10.1
Posts: 404

Original Poster
Rep: Reputation: 31
#ls -l /dev/sd* | grep 21
brw-rw---- 1 root disk 8, 21 Jun 25 2004 /dev/sdb5
 
Old 07-25-2006, 04:08 AM   #7
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
Wow, I guessed. So, run 'cat /proc/mounts | grep sdb', backup data, then umount the partition on sdb5 and run fsck on it.
 
Old 07-25-2006, 08:34 AM   #8
UltraSoul
Member
 
Registered: Dec 2004
Location: Japan
Distribution: REDHAT9.0, Mandrake10.1
Posts: 404

Original Poster
Rep: Reputation: 31
Hi, raskin

I wonder what meaning about 21?
Run #ls -l /dev/sd* | grep 21
brw-rw---- 1 root disk 8, 21 Jun 25 2004 /dev/sdb5

The output above means the disk I/O error occured at root disk 8,21 with /dev/sdb5 mounted, is it right?

And cat /proc/mounts as follows:
#cat /proc/mounts
rootfs / rootfs rw 0 0
/dev/root / ext3 rw 0 0
/proc /proc proc rw 0 0
none /dev/pts devpts rw 0 0
usbdevfs /proc/bus/usb usbdevfs rw 0 0
/dev/sda1 /boot ext3 rw 0 0
none /dev/shm tmpfs rw 0 0
automount(pid3846) /d_map autofs rw 0 0
/
I can not grep sdb.

From the result above, I can not monitor the /dev/sda5 is mounted.

Last edited by UltraSoul; 07-27-2006 at 07:48 AM.
 
Old 07-25-2006, 08:41 AM   #9
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
Well, are you investigating from sys52?

21.. It is minor number. Every block device has major and minor number, which are like ip address, and /dev/sdb5 is like domain name. And then /dev/sdb5 can be mounted to become some directory.
 
Old 07-25-2006, 08:53 AM   #10
UltraSoul
Member
 
Registered: Dec 2004
Location: Japan
Distribution: REDHAT9.0, Mandrake10.1
Posts: 404

Original Poster
Rep: Reputation: 31
I have ran sysreport from sys50.
And How to decide the filesystem mounted on /dev/sda5.


Please teach me. Thank you very much.

Last edited by UltraSoul; 07-25-2006 at 10:14 AM.
 
Old 07-25-2006, 10:52 AM   #11
UltraSoul
Member
 
Registered: Dec 2004
Location: Japan
Distribution: REDHAT9.0, Mandrake10.1
Posts: 404

Original Poster
Rep: Reputation: 31
# more /proc/partitions
major minor #blocks name

8 0 8388608 sda
8 1 7711168 sda1
8 2 674730 sda2

I can not see the minor 21 0f sda5. i wonder if it means the /dev/sda5 has some problem and causes the system can not locate
the /dev/sda5
 
Old 07-25-2006, 01:49 PM   #12
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
You need sdb5. And you need to investigate what is /dev/sdb5 on sys52 - look at you log..
 
Old 07-25-2006, 07:53 PM   #13
UltraSoul
Member
 
Registered: Dec 2004
Location: Japan
Distribution: REDHAT9.0, Mandrake10.1
Posts: 404

Original Poster
Rep: Reputation: 31
# fdisk -l
<---- Disk: /dev/sda ---->

Disk /dev/sda: 73.4 GB, 73407865856 bytes
255 heads, 63 sectors/track, 8924 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 1058 8393962+ 82 Linux swap
/dev/sda3 1059 8924 63183645 83 Linux

<---- END ---->
<---- Disk: /dev/sdb ---->


<---- END ---->
<---- Disk: /dev/sdc ---->


<---- END ---->



I found the /dev/sdb and /dev/sdc have not been recognized the host.

Last edited by UltraSoul; 07-27-2006 at 07:48 AM.
 
Old 07-25-2006, 08:18 PM   #14
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 128Reputation: 128
After a fresh boot, what does 'dmesg | grep sd' show?
 
Old 07-25-2006, 11:14 PM   #15
UltraSoul
Member
 
Registered: Dec 2004
Location: Japan
Distribution: REDHAT9.0, Mandrake10.1
Posts: 404

Original Poster
Rep: Reputation: 31
I wonder if the /dev/sdb should be replaced.

Or I can run "#fsck -y /dev/sdb5" for trying to fix the I/O error.

Because the /dev/sdb5 is unmounted. I wonder if i can run the command when system running. Or it is the best way to go to single user mode to run the fsck.
 
  


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
Kernel Audit Support Unavaible error when booting after kernel upgrade abefroman Red Hat 2 03-21-2013 08:32 AM
Kernel compilation error: Error 15: File not found Niceman2005 Linux - General 9 10-04-2007 03:45 AM
kernel panic error after rebooting new kernel image fiero Linux - General 4 07-13-2005 08:32 AM
Kernel 2.6.7 install error, initrd-2.6.7.img error jjorloff1 Linux - General 3 09-15-2004 12:15 AM
Problem booting up new kernel. Kernel panic error... RHLinuxGUY Red Hat 2 04-11-2004 04:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:41 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