What is the sector size in /sys/block/md*/md items?
I am reading the kernel Documentation/md.txt.
It explains what md the items in sysfs mean. It refers a few times to "sectors".
- Are we talking 512 bytes or the underlying physical disk sector size?
- Do all disks in an array need to have the same sector size?
Seeing how md can be built over physical disks, partitions, loop mounts and more, I expect that 'sector' is short for '512 bytes' and real disk sector size is not relevant here.
Nevertheless, there is md*/queue/hw_sector_size which gives 512. So there are now a few sector sizes (the array and the underlying devices) and the text does not make it clear which is used where. I assume the array cluster size is the one referred to in this document.
TIA
--
Eyal Lebedinsky ([email protected])
Quoted 4 lines · On Sat, 22 Feb 2014 12:11:58 +1100 Eyal Lebedinsky <[email protected]> wrote:
I am reading the kernel
Documentation/md.txt.It explains what md the items in sysfs mean. It refers a few times to "sectors".
- Are we talking 512 bytes or the underlying physical disk sector size?
Always 512 bytes.
Quoted 1 line
- Do all disks in an array need to have the same sector size?
No.
Quoted 4 lines
Seeing how md can be built over physical disks, partitions, loop mounts and more, I expect that 'sector' is short for '512 bytes' and real disk sector size is not relevant here.
Correct.
Quoted 5 lines
Nevertheless, there is md*/queue/hw_sector_size which gives 512. So there are now a few sector sizes (the array and the underlying devices) and the text does not make it clear which is used where. I assume the array cluster size is the one referred to in this document.
I was never happy when 'queue' appeared under md*. It is almost entirely irrelevant.
Feel free to post a patch to clarify md.txt.
Thanks,
NeilBrown
Quoted 9 lines
TIA
--
Eyal Lebedinsky ([email protected])
--
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