All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Janos Haar" <janos.haar@netcenter.hu>
To: David Greaves <david@dgreaves.com>
Cc: linux-raid@vger.kernel.org
Subject: Re: questions about softraid limitations
Date: Sun, 18 May 2008 23:51:40 +0200	[thread overview]
Message-ID: <092d01c8b935$180cdac0$9300a8c0@dcccs> (raw)
In-Reply-To: 48302861.3010607@dgreaves.com


----- Original Message ----- 
From: "David Greaves" <david@dgreaves.com>
To: "Janos Haar" <janos.haar@netcenter.hu>
Cc: <linux-raid@vger.kernel.org>
Sent: Sunday, May 18, 2008 3:00 PM
Subject: Re: questions about softraid limitations


> Janos Haar wrote:
>> The actually best way is this:
>>
>> blockdev --setro /dev/SOURCE
>> blockdev --setra  0 /dev/SOURCE
>> ddrescue -v -b 4096 -B 1024 -e 1 -y 0 /dev/SOURCE /dev/TARGET (if you
>> dont use a real clean disk with full of zeros, you need the -A option 
>> too)
>>
>> + need some kernel patch to disable all retry on the source disk.
> Is that something you could share?

Aaa, i made it myself about 1 year before on 2.6.18, but unfortunately at 
the moment the source is already deleted, and i dont save the diff. :-(
I am not a good C programmer, but takes about 1 hour. ;-)

>
> It sounds like something that would be worth including in the libata error
> handling to be controlled by something like 
> /sys/block/sdX/device/ioerr_retry_count

This is a great idea! :)
But not just for the ide drives!
I think this is good for all block device!
(usb, scsi, ide, sata...)

Oops.
And an old problem comes again:
On IDE drives with read errors, sometimes drop the DMA.
My script can be re-enable it sometimes, but not the real good solution....
If this can be fixed too, this will be great! :-)

>
> I'd be interested in playing with it and sending to Tejun Heo if you don't 
> have
> time.
>
>> The best recovery history is in 3 steps:
>>
> [snip]
>>
>> There is no easy solution. :-(
>
> OK - I'll put this up on the wiki sometime.
>
>>> Hmm - I wonder if things like ddrescue could work with the md bitmaps
>>> to improve
>>> this situation?
>>> Is this related to David Lethe's recent request?
>>
>> I think ddrescue is for copy/rescue the data, not for processing it.
>> But can log the errors... ;-)
> Yes - I meant to take the ddrescue output and manipulate the bitmap on the
> copied drive to mark certain parts as 'bad'.
> Ideally this could be done in the event of a dual-failure so that you 
> could
> re-add 2 failed drives and the bitmaps could indicate.
>
> This may requires something closer to a bytemap but...

This is good in this way. :-)

Cheers,

Janos

>
>
> David 


  reply	other threads:[~2008-05-18 21:51 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-14  0:34 questions about softraid limitations Janos Haar
2008-05-14 10:45 ` David Greaves
2008-05-14 23:29   ` Janos Haar
2008-05-16  1:39     ` Neil Brown
2008-05-16  6:05       ` [OT] " Peter Rabbitson
2008-05-18 23:52         ` Neil Brown
2008-05-16 10:00       ` Janos Haar
2008-05-16  8:36     ` David Greaves
2008-05-16  9:18       ` David Greaves
2008-05-16  9:28       ` Janos Haar
2008-05-18  9:11         ` David Greaves
2008-05-18 11:11           ` Janos Haar
2008-05-18 13:00             ` David Greaves
2008-05-18 21:51               ` Janos Haar [this message]
2008-05-18 19:36           ` David Lethe
2008-05-18 22:23             ` David Greaves
2008-05-18 22:38               ` Janos Haar
  -- strict thread matches above, loose matches on Subject: below --
2008-05-18 23:18 David Lethe

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='092d01c8b935$180cdac0$9300a8c0@dcccs' \
    --to=janos.haar@netcenter.hu \
    --cc=david@dgreaves.com \
    --cc=linux-raid@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.