Skip to contentSkip to conversation

examining the layout of an existing raid device?

DISCUSSION Christoph Hellwig 2 participants 3 messages Sep 26, 2011 MD RAID

lore
Share & tools
lore
#0 lore raw

Maybe I'm just stupid, but is there a way to figure out the exact geometry (e.g. pretty print of the superblock) for an existing array somehow? I couldn't find anything in the mdadm man page for it.

#1 lore raw
Quoted 3 lines · On Mon, 26 Sep 2011 06:18:24 -0400 Christoph Hellwig <[email protected]> wrote:

Maybe I'm just stupid, but is there a way to figure out the exact geometry (e.g. pretty print of the superblock) for an existing array somehow? I couldn't find anything in the mdadm man page for it.

mdadm -E /dev/sda

will print the metadata on device /dev/sda which describes the array that it is a member of.

mdadm -D /dev/md0

will print the geometry of the array /dev/md0

Is that what you wanted?

NeilBeown

#2 lore raw
Quoted 11 lines · NeilBrown
Quoted 3 lines · On Mon, 26 Sep 2011 06:18:24 -0400 Christoph Hellwig <[email protected]> wrote:

Maybe I'm just stupid, but is there a way to figure out the exact geometry (e.g. pretty print of the superblock) for an existing array somehow? I couldn't find anything in the mdadm man page for it.

mdadm -E /dev/sda

will print the metadata on device /dev/sda which describes the array that it is a member of.

Ok, that includes the information I was looking for, including the chunk size, and layout.