Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
badblocks and hotswap
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
aiki2
n00b
n00b


Joined: 24 Nov 2004
Posts: 41
Location: Patagonia - Argentina

PostPosted: Fri Aug 24, 2007 12:25 pm    Post subject: badblocks and hotswap Reply with quote

Hi all, I have a new intel server with a hotswap kit for 3 sata disk. I have never worked with hotswap before. So, if I run badblocks on the disks with the hotswap kit I have errors BUT running the same test outside the kit, this is connecting the SATA disks directly to the motherboard, I have no errors. :?
I'm running badblocks with a gentoo 2007.0 live cd.

Any ideas?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 55015
Location: 56N 3W

PostPosted: Fri Aug 24, 2007 2:03 pm    Post subject: Reply with quote

aiki2,

Its unlikely you have real bad blocks as the drives internal logic maps bad blocks to spare space. Normally when an imminent read failure is predected, so you don't lose any data. This way, the disk always shows the operating system that it has no bad blocks, until the spares are all used, at which time the drive is end of life.

You problems probably lie in the SATA wiring.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
aiki2
n00b
n00b


Joined: 24 Nov 2004
Posts: 41
Location: Patagonia - Argentina

PostPosted: Fri Aug 24, 2007 6:46 pm    Post subject: Reply with quote

thx NeddySeagoon for your answer, I'm sorry but I don't fully understand it. I run the badblocks command with the -w option so I have a read/write test.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 55015
Location: 56N 3W

PostPosted: Fri Aug 24, 2007 8:00 pm    Post subject: Reply with quote

aiki2,

The errors do not occur within the drive. When the drive is made some cylinders and some sectors are allocated as spare.
They are not counted in the capacity of the drive, nor are they available to you directly. The firmware on the drive tracks performance of reads and when it predicts a block is about to go bad, it maps one of the spares in place of that failing sector and rewrites you data there. You cannot see this process happening but you can use smartmontools to see how many spare sectors are used.
When all the spares are used the drive cannot hide bad blocks any more and you see genuine bad blocks appear.
When this happens the drive is worthless and should be thrown away.

When you run run badblocks -w, to do a read / write test, you do know that the system receives different data in the read to the write.
Before this bad block remapping was in place (any drive over 4Gb) in the drive, it did indicate real bad blocks.
With modern drives we can be fairly sure that the issue is elsewhere, as the drive hides bad blocks.
This is reinforced by the different outputs depending on where the drive is connected.

In short, you drives are OK and the problem is elsewhere.

I suspect that you get different bad block lists from ever run of badblocks. That too points to something other than the drive.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
aiki2
n00b
n00b


Joined: 24 Nov 2004
Posts: 41
Location: Patagonia - Argentina

PostPosted: Fri Aug 24, 2007 9:59 pm    Post subject: Reply with quote

well... now I get it! :wink:
thanks a lot for this explanation. :lol:
Hope find the reason for this behavior. :?
Back to top
View user's profile Send private message
aiki2
n00b
n00b


Joined: 24 Nov 2004
Posts: 41
Location: Patagonia - Argentina

PostPosted: Fri Sep 28, 2007 6:38 pm    Post subject: badblocks and hotswap [solved] Reply with quote

well, figured out why, the disks are not compatible with the motherborad (intel s5000psl). So, this strange behavior. I've run some test with disks supported by intel and everything works ok. :wink:
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