* Re: RAID6: "Bad block number requested"
[not found] ` <506BB5FA-F184-4768-BC74-D9D499A20C70@tu-dresden.de>
@ 2019-10-01 9:12 ` Sebastian Hegler
0 siblings, 0 replies; only message in thread
From: Sebastian Hegler @ 2019-10-01 9:12 UTC (permalink / raw)
To: James Bottomley; +Cc: linux-raid, linux-scsi
Dear James, dear all,
this is to let you know that I'll not pursue this issue further. I spent some days building a test system, but I could not reproduce the error.
There's a tool named HUGO by HGST/Western Digital to re-configure the HDD's firmware to use 512byte blocks, which solved the problem for me.
Sorry about the bad news.
Yours,
Sebastian
Am 14.06.2018 um 14:11 schrieb Sebastian Hegler <sebastian.hegler@tu-dresden.de>:
> Dear James, dear all!
>
> Am 11.06.2018 um 17:06 schrieb James Bottomley <James.Bottomley@HansenPartnership.com>:
>> This means that somehow, something sent a non 4k aligned 4k sized
>> request. SCSI here is just the messenger. However, if you apply this
>> patch, it will capture the stack trace of what above it triggered this,
>> which may help us in debugging. It could be we may also want to see
>> what the values of block and blk_rq_sectors(rq) actually are, but lets
>> begin with the stack trace.
>> ---
>>
>> diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c
>> index 9421d9877730..ac865e048533 100644
>> --- a/drivers/scsi/sd.c
>> +++ b/drivers/scsi/sd.c
>> @@ -1109,6 +1109,7 @@ static int sd_setup_read_write_cmnd(struct scsi_cmnd *SCpnt)
>> if ((block & 7) || (blk_rq_sectors(rq) & 7)) {
>> scmd_printk(KERN_ERR, SCpnt,
>> "Bad block number requested\n");
>> + WARN_ON_ONCE(1);
>> goto out;
>> } else {
>> block = block >> 3;
> I'll give that a try. But don't expect to hear from me soon, I'll need to build a test system for that. The error occurred in a production system, which I am very hesitant to re-boot, let alone insert drives that cause error messages.
>
> Yours sincerely,
> Sebastian
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-10-01 9:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <165E54F8-0494-4430-B8A5-0C7DCDF1D91C@tu-dresden.de>
[not found] ` <1528729598.4000.2.camel@HansenPartnership.com>
[not found] ` <506BB5FA-F184-4768-BC74-D9D499A20C70@tu-dresden.de>
2019-10-01 9:12 ` RAID6: "Bad block number requested" Sebastian Hegler
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).