From: Sebastian Hegler <sebastian.hegler@tu-dresden.de>
To: James Bottomley <James.Bottomley@HansenPartnership.com>
Cc: linux-raid@vger.kernel.org, linux-scsi@vger.kernel.org
Subject: Re: RAID6: "Bad block number requested"
Date: Tue, 1 Oct 2019 11:12:13 +0200 [thread overview]
Message-ID: <8C7BD3C3-262C-4DB9-B8D0-423F4CAD7263@tu-dresden.de> (raw)
In-Reply-To: <506BB5FA-F184-4768-BC74-D9D499A20C70@tu-dresden.de>
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
parent reply other threads:[~2019-10-01 9:29 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <506BB5FA-F184-4768-BC74-D9D499A20C70@tu-dresden.de>]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8C7BD3C3-262C-4DB9-B8D0-423F4CAD7263@tu-dresden.de \
--to=sebastian.hegler@tu-dresden.de \
--cc=James.Bottomley@HansenPartnership.com \
--cc=linux-raid@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).