Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
I/O error when accessing disk in standby
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Nikmind
n00b
n00b


Joined: 26 Jun 2002
Posts: 18

PostPosted: Wed Nov 04, 2015 12:34 pm    Post subject: I/O error when accessing disk in standby Reply with quote

I started noticing odd I/O errors on my disk.

Example:

[398374.597662] sd 0:0:4:0: [sde] UNKNOWN(0x2003) Result: hostbyte=0x00 driverbyte=0x00
[398374.597665] sd 0:0:4:0: [sde] CDB: opcode=0x88 88 00 00 00 00 00 c0 52 c3 90 00 00 00 08 00 00
[398374.597667] blk_update_request: I/O error, dev sde, sector 3226649488

It happened to all my disks. This is on a new motherboard with a LSI 2308 SAS controller. No such problems before migrating to this motherboard. Which makes me think it has something to do with the SAS controller. I can't seem to notice any problems due to this, but something does not seem right about getting this error. I also checked the offending sectors and it's no problem reading them.

So i started to investigate this problem and soon found that the problem occurs when the disk is in standby mode. Ie. when I try to access the disk when it is in standby mode. Somehow the system tries to access the disk without spinning it up first, and hence getting this error.

I'm running the 4.0.9-gentoo kernel source (had the same problem with 4.0.5-gentoo also).

Anyone had any such problems? What can I do to get rid of these errors?
_________________
/Mikael Grahn - Mindkiller Systems -
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3806
Location: Austro Bavaria

PostPosted: Wed Nov 04, 2015 1:22 pm    Post subject: Reply with quote

check your cables, or unplug and replug them.

Quote:
I'm running the 4.0.9-gentoo kernel source (had the same problem with 4.0.5-gentoo also).


basically the same source.

real differnce would be some antique 3.x.x kernel (not something in 3.15 or newer)

you may check some livecd if thats an option, like sysrescue cd ... and check if it happens there, if it is a kernel related issue. or setting ...

check smart values with smartmontools

seems to be a problematic chipset

https://communities.intel.com/message/194730
http://lists.freebsd.org/pipermail/freebsd-scsi/2013-February/005778.html
---

when you find one, there will be many such cases which are hidden. for any OS
Back to top
View user's profile Send private message
Nikmind
n00b
n00b


Joined: 26 Jun 2002
Posts: 18

PostPosted: Wed Nov 04, 2015 1:55 pm    Post subject: Reply with quote

I've tried changing cables, but since it's every disk and only when the disk is in standby I don't think it's the problem.

It feel's like the driver does not honor the standy state for some reason. If i do a hdparm -C i see the disk is in standby, but as soon as try to do anything against the disk it gives me this error. Nothing happens but this error message, it does not really trouble me to much.

Wonder if I should try and kernel mailinglist and see what kind of response i get.
_________________
/Mikael Grahn - Mindkiller Systems -
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7071

PostPosted: Wed Nov 04, 2015 2:18 pm    Post subject: Reply with quote

when you try use the disk, it is its controller that wakeup the disk.
you have the kernel message that it has try to wakeup the disk, and fail.

if it has fail, it's because the controller didn't wakeup the disk.
- are you sure your sas driver have pm functions handling? you can check the kernel documentation in your sources on your driver, not all drivers are finish.
- did you check the controller bios to see its pm functionalities state?
Back to top
View user's profile Send private message
Nikmind
n00b
n00b


Joined: 26 Jun 2002
Posts: 18

PostPosted: Thu Nov 12, 2015 7:04 am    Post subject: Reply with quote

There is no PM specific settings in the SAS controller (as far as I can tell).

As for the kernel driver, the mpt2sas driver seems to have power management when I look into the code (can't find any documentation for this driver).

Power management seem to work as far as doing a "hdparm -y" to the disk to put it in standby. But it will give me this error as soon as I try to access the disk again when it has been put into standby.
_________________
/Mikael Grahn - Mindkiller Systems -
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum