mapping of md device blocks to component blocks? (and vice versa)
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.
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/mddevice, 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
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/mdXdevice corresponds with it?
There is no easy answer.
You need to understand the layout of the array, and do some arithmetic.
NeilBrown