Skip to contentSkip to conversation

mapping of md device blocks to component blocks? (and vice versa)

DISCUSSION Leon Woestenberg 2 participants 3 messages Dec 10, 2004 – Dec 20, 2004 MD RAID

lore
Share & tools
lore
#0 lore raw

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.

#1 lore raw

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.

Quoted 19 lines · Leon Woestenberg

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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#2 lore raw
Quoted 7 lines · On Monday December 20, [email protected] 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