1837650 Members
2685 Online
110117 Solutions
New Discussion

Re: I/O error

 
weller
Advisor

I/O error

Hello,
with the access to a file, I got an error message:
CAN NOT stat: (I/O error).
On what can it interpret, is soon broken the HD?
Thanks
6 REPLIES 6
Carsten Krege
Honored Contributor

Re: I/O error

It is one possibility that the disk is broken or you experience some other type of h/w prob?lem. You can try the following:

# dd if=/dev/rdsk/cXtYdZ of=/dev/null bs=256k

dd(1m) will return an error if it cannot read a block, otherwise it will read the complete disk.

Best regards,

Carsten
-------------------------------------------------------------------------------------------------
In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move. -- HhGttG
Rainer von Bongartz
Honored Contributor

Re: I/O error

Could be a corrupt file system or even defect HW.

Try reading your entire disk with
dd if=/dev/dsk/cxdytz of=/dev/null bs=4k

you should get a result

xyz blocks in
xyz blocks out,

otherwise an error messages which could indicate a defect disk
He's a real UNIX Man, sitting in his UNIX LAN making all his UNIX plans for nobody ...
Magdi KAMAL
Respected Contributor

Re: I/O error

Hi Michael,

1. If the light on disk is continously, that's means disk problem ( Replace it, hope mirrored or backed-up !).

2. Execute dd command ( as mentioned in previous response), if it did not terminates then it could be one of two cases :

2.1. Disk problem ( check also with "lvdisplay -v /dev/vgxx/lvol* ? more" and check for "stale", if so it's a disk problem ).

2.2. Check with ioscan ( it could be a controller problem ).

Magdi
Volker Borowski
Honored Contributor

Re: I/O error

Michael,

the "dd" approach is good, but not sufficiant.
I had a case, where I was able to READ an entire disk, but is was defective and no WRITES where possible.
Contact HP-support to get a password for the diagnostics and read out the errorlogs of the disks in question (or let them do it iof they are able to dial in).

Volker
weller
Advisor

Re: I/O error

Thank you for your responses, unfortunately are not so simply, to the computer are attached a RAID5, which administers this defective disk. With ioscan I see only 2 rdsk DEVICES, although I know that the RAID has several disks. On the RAID CONSOLE is not to be seen an error message. The Man from the HP support me suggested to exchange immediately, but I believe that he does not have notion :-((
I white also in which direction I do not move should
Carsten Krege
Honored Contributor

Re: I/O error

Now that you have HP involved, they should really check with the OnlineDiag like Volker already suggested. If it is an HP device, they can see statistics of successful/unsuccessful reads/writes and can also do stress tests.

When configured in Raid5, it should normally require more than one disk to fail, before you get an I/O error... The array's logs should help here again.

Carsten
-------------------------------------------------------------------------------------------------
In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move. -- HhGttG