linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* examining the layout of an existing raid device?
@ 2011-09-26 10:18 Christoph Hellwig
  2011-09-26 10:32 ` NeilBrown
  0 siblings, 1 reply; 3+ messages in thread
From: Christoph Hellwig @ 2011-09-26 10:18 UTC (permalink / raw)
  To: linux-raid

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.

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

* Re: examining the layout of an existing raid device?
  2011-09-26 10:18 examining the layout of an existing raid device? Christoph Hellwig
@ 2011-09-26 10:32 ` NeilBrown
  2011-09-26 10:45   ` Christoph Hellwig
  0 siblings, 1 reply; 3+ messages in thread
From: NeilBrown @ 2011-09-26 10:32 UTC (permalink / raw)
  To: Christoph Hellwig; +Cc: linux-raid

[-- Attachment #1: Type: text/plain, Size: 524 bytes --]

On Mon, 26 Sep 2011 06:18:24 -0400 Christoph Hellwig <hch@infradead.org>
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


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 190 bytes --]

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

* Re: examining the layout of an existing raid device?
  2011-09-26 10:32 ` NeilBrown
@ 2011-09-26 10:45   ` Christoph Hellwig
  0 siblings, 0 replies; 3+ messages in thread
From: Christoph Hellwig @ 2011-09-26 10:45 UTC (permalink / raw)
  To: NeilBrown; +Cc: Christoph Hellwig, linux-raid

On Mon, Sep 26, 2011 at 08:32:48PM +1000, NeilBrown wrote:
> On Mon, 26 Sep 2011 06:18:24 -0400 Christoph Hellwig <hch@infradead.org>
> 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.


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

end of thread, other threads:[~2011-09-26 10:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-26 10:18 examining the layout of an existing raid device? Christoph Hellwig
2011-09-26 10:32 ` NeilBrown
2011-09-26 10:45   ` Christoph Hellwig

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