Ticket #148 (assigned defect)

Opened 3 years ago

Last modified 10 months ago

parity issue with mdadm in mondorestore

Reported by: bruno Assigned to: bruno (accepted)
Priority: normal Milestone: 3.0.2
Component: mondo Version: 2.2.1
Severity: normal Keywords:
Cc: rbondoin@free.fr

Description

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

Change History

03/20/07 08:46:55 changed by bruno

  • cc set to rbondoin@free.fr.
  • status changed from new to assigned.

09/26/09 17:35:27 changed by bruno

  • milestone set to 3.0.2.