/dev/sda: read failed after 0 of 4096 at 0: Input/output error
Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
/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]#
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.
[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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.