Upgrading from metadata 0.9

Is there a way to upgrade an existing raid array using metadata format
0.9 to a 1.x format without loosing data?
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo [at] vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Phillip Susi [ Do, 26 Mai 2011 21:23 ] [ ID #2060097 ]

Re: Upgrading from metadata 0.9

On Thu, 26 May 2011 15:23:23 -0400 Phillip Susi <psusi [at] cfl.rr.com> wrote:

> Is there a way to upgrade an existing raid array using metadata format
> 0.9 to a 1.x format without loosing data?

Not really. It is on my list of nice-to-have features for mdadm, but it is
not near the top.

As 1.x uses less space for metadata you could simply recreate the array as
--metadata=1.0
All the data would still be there.
You should be as explicit as possible in the --create command.

mdadm --create /dev/md0 --level=XX --raid-disks=YY --chunk=ZZ --size=QQ
--layout=LL --assume-clean --metadata=1.0

You can only convert to 1.0 metadata as 1.1 and 1.2 put the metadata on top
of where data currently is.


NeilBrown

--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo [at] vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
NeilBrown [ Fr, 27 Mai 2011 23:38 ] [ ID #2060135 ]
Linux » gmane.linux.raid » Upgrading from metadata 0.9

Vorheriges Thema: race condition in md creation?
Nächstes Thema: Mdadm re-add fails