examining the layout of an existing raid device?

examining the layout of an existing raid device?

am 26.09.2011 12:18:24 von Christoph Hellwig

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.
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: examining the layout of an existing raid device?

am 26.09.2011 12:32:48 von NeilBrown

--Sig_/8rQUbjefB0mwvxJHG2lVHV2
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

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


--Sig_/8rQUbjefB0mwvxJHG2lVHV2
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (GNU/Linux)

iD8DBQFOgFTQG5fc6gV+Wb0RAu20AJ9RYNW64HF7i2NidaosE+sadllmsgCg zQAY
qcnlDAJzmHg1GRykAkQETKM=
=3fZD
-----END PGP SIGNATURE-----

--Sig_/8rQUbjefB0mwvxJHG2lVHV2--
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: examining the layout of an existing raid device?

am 26.09.2011 12:45:59 von Christoph Hellwig

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

--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html