linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* mapping of md device blocks to component blocks? (and vice versa)
@ 2004-12-10 14:45 Leon Woestenberg
  2004-12-20 18:51 ` Leon Woestenberg
  0 siblings, 1 reply; 3+ messages in thread
From: Leon Woestenberg @ 2004-12-10 14:45 UTC (permalink / raw)
  To: Linux RAID Mailing List

Hello,

given the LBA (bad) block of a disk drive, or the block number of
a partition, how can I tell which block on the /dev/md? device
corresponds with it?

Also, vice versa, given a block number on the /dev/md device, how
can I tell to which blocks it maps on the components?

Regards,

Leon.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: mapping of md device blocks to component blocks? (and vice versa)
  2004-12-10 14:45 mapping of md device blocks to component blocks? (and vice versa) Leon Woestenberg
@ 2004-12-20 18:51 ` Leon Woestenberg
  2004-12-20 22:24   ` Neil Brown
  0 siblings, 1 reply; 3+ messages in thread
From: Leon Woestenberg @ 2004-12-20 18:51 UTC (permalink / raw)
  To: Linux RAID Mailing List

Hello,

I would like to re-issue my earlier question:

Given the LBA (bad) block number of a disk drive, or the block number
of a partition, how can I tell which block on the /dev/mdX device
corresponds with it?

Or should I ask this elsewhere?

Regards,

Leon.


Leon Woestenberg wrote:

>Hello,
>
>given the LBA (bad) block of a disk drive, or the block number of
>a partition, how can I tell which block on the /dev/md? device
>corresponds with it?
>
>Also, vice versa, given a block number on the /dev/md device, how
>can I tell to which blocks it maps on the components?
>
>Regards,
>
>Leon.
>
>-
>To unsubscribe from this list: send the line "unsubscribe linux-raid" in
>the body of a message to majordomo@vger.kernel.org
>More majordomo info at  http://vger.kernel.org/majordomo-info.html
>  
>


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: mapping of md device blocks to component blocks? (and vice versa)
  2004-12-20 18:51 ` Leon Woestenberg
@ 2004-12-20 22:24   ` Neil Brown
  0 siblings, 0 replies; 3+ messages in thread
From: Neil Brown @ 2004-12-20 22:24 UTC (permalink / raw)
  To: Leon Woestenberg; +Cc: Linux RAID Mailing List

On Monday December 20, leonw@mailcan.com wrote:
> Hello,
> 
> I would like to re-issue my earlier question:
> 
> Given the LBA (bad) block number of a disk drive, or the block number
> of a partition, how can I tell which block on the /dev/mdX device
> corresponds with it?

There is no easy answer.
You need to understand the layout of the array, and do some
arithmetic.

NeilBrown

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-12-20 22:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-10 14:45 mapping of md device blocks to component blocks? (and vice versa) Leon Woestenberg
2004-12-20 18:51 ` Leon Woestenberg
2004-12-20 22:24   ` Neil Brown

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).