Re: change from raid 5 to raid 6 interrupted

Re: change from raid 5 to raid 6 interrupted

am 23.04.2011 00:06:13 von NeilBrown

On Fri, 22 Apr 2011 16:23:19 +0100 John Robinson
wrote:

> (Please always remember to cc the list when replying; cc readded)
>=20
> On 22/04/2011 16:09, Raphael Müller wrote:
> > Ok i forgot to say, that the backup file is also gone... (my mistak=
e)
> >
> > is this backup file the only option i got?
>=20
> Without the backup file you've almost certainly lost some data. I=20
> suspect there is a way of restarting the array and reshape without th=
e=20
> backup file, but I don't know what it is - you'll have to wait for a=20
> proper guru to get back to you with an answer.
>=20

With mdadm 3.2.1 there is a new flag "--invalid-backup". It tells mdad=
m that
you know that the backup file is invalid, but you want it to continue a=
nyway
(and risk having some corrupted data).

You still need to give a backup file, but it can be a newly created emp=
ty
file.

So:
# install mdadm 3.2.1
> /root/my-backup
mdadm -A /dev/mdthing --backup-file=3D/root/my-backup \
--invalid-backup /dev/device1 /dev/device2 ....

should get you going again.

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