John Pearson said on Thu, Mar 15, 2007 at 08:59:20AM +1030: > Ran 'ps fx' on another tty, which showed commands like > grep " /proc/mdstatraid1" > /dev/null 2>/dev/null > It looks like this should be > grep "raid1" "/proc/mdstat" ....
Oh yes. I fixed that in the stable SVN branch since, but I didn't for the future 2.2.2. Thanks for reporting that. I've now committed it as rev 1253 of SVN - http://trac.mondorescue.org/changeset/1253 Could you try to add the patch to your tree: --- mondo/src/common/libmondo-raid.c (révision 1247) +++ mondo/src/common/libmondo-raid.c (copie de travail) @@ -80,13 +80,13 @@ int res; command = malloc(MAX_STR_LEN * 2); - strcpy(command, "grep \" /proc/mdstat"); + strcpy(command, "grep \""); if (raidno == -1) { strcat(command, "linear"); } else { sprintf(command + strlen(command), "raid%d", raidno); } - strcat(command, "\" > /dev/null 2> /dev/null"); + strcat(command, "\" /proc/mdstat > /dev/null 2> /dev/null"); log_it("Is raid %d registered? Command = '%s'", raidno, command); res = system(command); paranoid_free(command); -- Linux Profession Lead EMEA / Open Source Evangelist \ HP C&I EMEA IET http://www.mondorescue.org / HP/Intel Solution Center \ http://hpintelco.net Des infos sur Linux? http://www.HyPer-Linux.org http://www.hp.com/linux La musique ancienne? http://www.musique-ancienne.org http://www.medieval.org