﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
148	parity issue with mdadm in mondorestore	Bruno Cornec	Bruno Cornec	"mondorestore is unable to re-create a SW Raid5 with mdadm on RHEL 4 due to the call to mdadm which contains the -p option. Even if that option is documented, there seems to be no way to make it accept the parity option, and thus mondorestore fails.
There is a need for a workaround in that case.

The one applied by the person reporting the bug to me was extreme, but kept for reference:
{{{
--- mondo-2.2.1/src/mondorestore/mondo-prep.c.ori       2006-08-05 12:00:51.000000000 +0200
+++ mondo-2.2.1/src/mondorestore/mondo-prep.c   2007-03-02 08:00:29.000000000 +0100
@@ -762,7 +762,8 @@
           ""mdadm --create --force --run --auto=yes %s --level=%s --raid-devices=%d"",
           raidlist->el[i].raid_device, level,
           raidlist->el[i].data_disks.entries);
-  if (raidlist->el[i].parity != -1) {
+/* RBN 02/03/2007 : bug parite / rhel4 => option mal interprete, suppression */
+/*  if (raidlist->el[i].parity != -1) {
     asprintf(&strtmp, ""%s"", program);
     paranoid_free(program);
     switch(raidlist->el[i].parity) {
@@ -783,7 +784,7 @@
       break;
     }
     paranoid_free(strtmp);
-  }
+  } */
   if (raidlist->el[i].chunk_size != -1) {
     asprintf(&strtmp, ""%s"", program);
     paranoid_free(program);

}}}"	defect	closed	normal	2.2.4	mondo	2.2.1	normal	fixed		rbondoin@…
