LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 04-03-2008, 07:37 AM   #1
Danesh
LQ Newbie
 
Registered: Jul 2006
Location: London
Posts: 3

Rep: Reputation: 0
/dev/sda: read failed after 0 of 4096 at 0: Input/output error


I have installed RHEL AS 4 update 5 on a HP DL740 server and presented 1024MB from the SAN (EVA3000) to the server.

The server has two Qlogic HBA cards installed with

# less /proc/scsi/qla2xxx/0
QLogic PCI to Fibre Channel Host Adapter for QLA2340:
Firmware version 3.03.19 IPX, Driver version 8.01.07.25
BIOS version 1.45

I am seeing a lot of device I/O errors for sda. See below.

How do I fix these errors?


[root@megaclite osinst]# pvscan
/dev/sda: read failed after 0 of 4096 at 0: Input/output error
/dev/sda: read failed after 0 of 4096 at 1099511562240: Input/output error
/dev/sda: read failed after 0 of 4096 at 0: Input/output error
/dev/sdd: read failed after 0 of 4096 at 0: Input/output error
/dev/sdd: read failed after 0 of 4096 at 1099511562240: Input/output error
/dev/sdd: read failed after 0 of 4096 at 0: Input/output error
PV /dev/cciss/c0d0p2 VG vg_os lvm2 [67.72 GB / 29.72 GB free]
Total: 1 [67.72 GB] / in use: 1 [67.72 GB] / in no VG: 0 [0 ]
[root@megaclite osinst]#



cat: /dev/sda: Input/output error
[root@megaclite osinst]#
[root@megaclite osinst]# tail /var/log/messages
Apr 3 12:10:13 megaclite kernel: Buffer I/O error on device sda, logical block 9
Apr 3 12:10:13 megaclite kernel: Buffer I/O error on device sda, logical block 10
Apr 3 12:10:13 megaclite kernel: Buffer I/O error on device sda, logical block 11
Apr 3 12:10:13 megaclite kernel: Buffer I/O error on device sda, logical block 12
Apr 3 12:10:13 megaclite kernel: Buffer I/O error on device sda, logical block 13
Apr 3 12:10:13 megaclite kernel: Buffer I/O error on device sda, logical block 14
Apr 3 12:10:13 megaclite kernel: Buffer I/O error on device sda, logical block 15
Apr 3 12:10:13 megaclite kernel: Device sda not ready.
Apr 3 12:10:13 megaclite kernel: end_request: I/O error, dev sda, sector 0
Apr 3 12:10:13 megaclite kernel: Buffer I/O error on device sda, logical block 0
 
Old 04-03-2008, 09:48 AM   #2
kuri0s
LQ Newbie
 
Registered: Mar 2008
Posts: 18

Rep: Reputation: 0
Sounds like problems with driver or loss of connectivity. I would check the following:

SAN fiber cables and Qlogic ports are online (lights from the card are OK)
Multipath output could help you to identify possible faults. Check the login state of the SAN for that host.

Download the ql-dynamic-tgt-lun-disc-2.2.tgz script from the qlogic website and rescan. Do you still see the devices in /proc/scsi/qla?

Download scli-1.7.0-14.i386.rpm.gz from qlogic website for further diagnostics.

Try the latest driver from qlogic if everything else fails.
 
Old 04-03-2008, 12:42 PM   #3
Danesh
LQ Newbie
 
Registered: Jul 2006
Location: London
Posts: 3

Original Poster
Rep: Reputation: 0
I've downloaded & installed the latest Qlogic driver recommended by HP. See firmware and driver version below.

[root]# pwd
/proc/scsi/qla2xxx
[root]#
[root]# ls -l
total 0
-rw-r--r-- 1 root root 0 Apr 3 18:39 0
-rw-r--r-- 1 root root 0 Apr 3 18:39 1
[root@]#

[root]# more /proc/scsi/qla2xxx/0
QLogic PCI to Fibre Channel Host Adapter for QLA2340:
Firmware version 3.03.19 IPX, Driver version 8.01.07.25
BIOS version 1.45

[root]# more /proc/scsi/qla2xxx/1
QLogic PCI to Fibre Channel Host Adapter for QLA2340:
Firmware version 3.03.19 IPX, Driver version 8.01.07.25
BIOS version 1.45


The SAN fibre cables and Qlogic HBA cards are all showing green lights as are the two 16 port SAN switches also showing green lights on ports which have fibre channel connection to the server.

From the SAN EVA3000 end the login state seems fine as there are no errors being reported.

[root]# pwd
/proc/scsi/qla2xxx
[root]#
[root]# ls -l
total 0
-rw-r--r-- 1 root root 0 Apr 3 18:39 0
-rw-r--r-- 1 root root 0 Apr 3 18:39 1
[root@]#

I've even tried reinstalling the Qlogic firmware driver from HP but still keep getting errors.
 
Old 04-08-2008, 06:31 AM   #4
kuri0s
LQ Newbie
 
Registered: Mar 2008
Posts: 18

Rep: Reputation: 0
Sorry for the wait. I've been busy, even on weekend :P

What says fdisk -l?
And the full /proc/scsi/qla2300/?
Have you installed your server over the san or have internal mirror/raid?

Normally I first load the internal raid module before the qlogic one, so in my servers sda is allways the internal drive. Is that your case? Sounds stupid but maybe the errors are on your SCSI drives.

Fibre looks fine, unloading the module an reloading should give no IO errors _and_ detect all your targets and disks without rebooting. If you run out of ideas, try loading default settings on the qlogic BIOS, and tuning after as needed for your SAN specific capabilitys. Normally defaults work, and is recommended after a Firmware/BIOS upgrade.

Last edited by kuri0s; 04-08-2008 at 10:39 AM.
 
  


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
/dev/sda: read failed after 0 of 4096 at 0: Input/output error Danesh Linux - Newbie 1 04-03-2008 06:59 AM
/dev/sda Input/Output Error sidra Red Hat 4 08-30-2007 12:45 PM
Input/Output error during read on /dev/hdb yibble Fedora - Installation 4 05-25-2004 03:57 AM
unpacking of archive failed: cpio: read failed-input/output error rafc Linux - Newbie 0 04-21-2004 09:03 AM
input/output error during read on /dev/hda bm1 Linux - Hardware 36 11-28-2002 11:26 AM

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

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