* raidstart program device detect problem
@ 2004-12-01 11:10 Kenji Miyake
2004-12-01 17:23 ` Guy
0 siblings, 1 reply; 3+ messages in thread
From: Kenji Miyake @ 2004-12-01 11:10 UTC (permalink / raw)
To: linux-raid
Hi,
I found some problem in raidtools2.
raiddevice md1 cannot start if raiddevice md10 was setup and running.
raidstart program check running device partially.
--- 1/raidtools2-0.90.20010914/raid_io.c Wed Dec 1 19:30:26 2004
+++ raidtools2-0.90.20010914/raid_io.c Wed Nov 24 19:41:42 2004
@@ -528,12 +528,14 @@
if ((ch = strstr(p->md_name, "/md")) == NULL)
return 0;
strcpy(buffer, ch+1);
+ strcat(buffer, " : active");
if ((fp = fopen("/proc/mdstat", "r")) == NULL)
return 0;
while (1) {
if ((fgets(line, MAX_LINE_LENGTH, fp)) == NULL)
break;
- if (strstr(line, buffer) && !strstr(line, "inactive")) {
+ if (strstr(line, buffer))
+ {
fprintf(stderr, "%s: active -- run raidstop\n", p->md_name);
fclose(fp);
return 1;
^ permalink raw reply [flat|nested] 3+ messages in thread* RE: raidstart program device detect problem
2004-12-01 11:10 raidstart program device detect problem Kenji Miyake
@ 2004-12-01 17:23 ` Guy
2004-12-01 17:31 ` Gordon Henderson
0 siblings, 1 reply; 3+ messages in thread
From: Guy @ 2004-12-01 17:23 UTC (permalink / raw)
To: 'Kenji Miyake', linux-raid
As far as I know raidtools is not supported anymore.
But raidtools2 is new to me. So, not sure.
mdadm is the preferred tool.
Guy
-----Original Message-----
From: linux-raid-owner@vger.kernel.org
[mailto:linux-raid-owner@vger.kernel.org] On Behalf Of Kenji Miyake
Sent: Wednesday, December 01, 2004 6:10 AM
To: linux-raid@vger.kernel.org
Subject: raidstart program device detect problem
Hi,
I found some problem in raidtools2.
raiddevice md1 cannot start if raiddevice md10 was setup and running.
raidstart program check running device partially.
--- 1/raidtools2-0.90.20010914/raid_io.c Wed Dec 1 19:30:26 2004
+++ raidtools2-0.90.20010914/raid_io.c Wed Nov 24 19:41:42 2004
@@ -528,12 +528,14 @@
if ((ch = strstr(p->md_name, "/md")) == NULL)
return 0;
strcpy(buffer, ch+1);
+ strcat(buffer, " : active");
if ((fp = fopen("/proc/mdstat", "r")) == NULL)
return 0;
while (1) {
if ((fgets(line, MAX_LINE_LENGTH, fp)) == NULL)
break;
- if (strstr(line, buffer) && !strstr(line, "inactive")) {
+ if (strstr(line, buffer))
+ {
fprintf(stderr, "%s: active -- run raidstop\n",
p->md_name);
fclose(fp);
return 1;
-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 3+ messages in thread* RE: raidstart program device detect problem
2004-12-01 17:23 ` Guy
@ 2004-12-01 17:31 ` Gordon Henderson
0 siblings, 0 replies; 3+ messages in thread
From: Gordon Henderson @ 2004-12-01 17:31 UTC (permalink / raw)
To: Guy; +Cc: 'Kenji Miyake', linux-raid
On Wed, 1 Dec 2004, Guy wrote:
> As far as I know raidtools is not supported anymore.
> But raidtools2 is new to me. So, not sure.
raidtools2 is what Debian calls the current 'raidtools' programs.
> mdadm is the preferred tool.
Debian (woody) has mdadm too:
mdadm - v0.7.2 - 21 March 2002
Gordon
>
> Guy
>
> -----Original Message-----
> From: linux-raid-owner@vger.kernel.org
> [mailto:linux-raid-owner@vger.kernel.org] On Behalf Of Kenji Miyake
> Sent: Wednesday, December 01, 2004 6:10 AM
> To: linux-raid@vger.kernel.org
> Subject: raidstart program device detect problem
>
> Hi,
> I found some problem in raidtools2.
>
> raiddevice md1 cannot start if raiddevice md10 was setup and running.
>
> raidstart program check running device partially.
>
> --- 1/raidtools2-0.90.20010914/raid_io.c Wed Dec 1 19:30:26 2004
> +++ raidtools2-0.90.20010914/raid_io.c Wed Nov 24 19:41:42 2004
> @@ -528,12 +528,14 @@
> if ((ch = strstr(p->md_name, "/md")) == NULL)
> return 0;
> strcpy(buffer, ch+1);
> + strcat(buffer, " : active");
> if ((fp = fopen("/proc/mdstat", "r")) == NULL)
> return 0;
> while (1) {
> if ((fgets(line, MAX_LINE_LENGTH, fp)) == NULL)
> break;
> - if (strstr(line, buffer) && !strstr(line, "inactive")) {
> + if (strstr(line, buffer))
> + {
> fprintf(stderr, "%s: active -- run raidstop\n",
> p->md_name);
> fclose(fp);
> return 1;
> -
> To unsubscribe from this list: send the line "unsubscribe linux-raid" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-raid" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-12-01 17:31 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-01 11:10 raidstart program device detect problem Kenji Miyake
2004-12-01 17:23 ` Guy
2004-12-01 17:31 ` Gordon Henderson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).