All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mike Hardy <mhardy@h3c.com>
To: Martin Ritchie <ritchiem@mac.com>, linux-raid@vger.kernel.org
Subject: Re: Newbie questions: Max Active disks, RAID migration, Compiling mdadm 2.3
Date: Sat, 04 Feb 2006 18:13:02 -0800	[thread overview]
Message-ID: <43E55F2E.1060102@h3c.com> (raw)
In-Reply-To: <10AE6EFE-5542-4B43-8E19-87A66C4FFE6D@mac.com>


If you remove the '-Werror' it'll compile and work, but you still can't
convert a raid 0 to a raid 5. You're raid level understanding is off as
well, raid 5 is a parity block rotating around all drives, you were
thinking of raid 4 which has a single parity disk. Migrating raid 0 to
raid 4 (and vice versa) should be possible technically, but I don't
think it's implemented anywhere

You should be able to have more than 4 active drives though. I am at
this moment building an array with 6 components, I'm running a few with
more than that, and these are by no means the largest arrays that people
are running - just examples of it working.

-Mike

Martin Ritchie wrote:
> Sorry if these are total newbie questions.
> 
> Why can't I have more than 4 active drives in my md RAID?
> 
> Why can't I easily migrate a RAID 0 to RAID 5. As I see it RAID 0 is 
> just RAID 5 with a failed parity check drive?
> 
> Perhaps this is a limitation of the old v1.11 that FC4 updates to.
> 
> I tried to compile 2.3 but I get this error:
> 
> $make
> gcc -Wall -Werror -Wstrict-prototypes -DCONFFILE=\"/etc/mdadm.conf\" -
> ggdb -DSendmail=\""/usr/sbin/sendmail -t"\"   -c -o super0.o super0.c
> In file included from super0.c:31:
> /usr/include/asm/byteorder.h:6:2: error: #warning using private  kernel
> header; include <endian.h> instead!
> make: *** [super0.o] Error 1
> 
> I'm not too familiar with compiling this sort of thing. (I usually  live
> further away from the hardware and endian issues). I'm guessing  there
> is some sort of option i have to specify to say that this  should use
> the private kernel headers. Including endian.h instead  didn't help:
> 
> $make
> gcc -Wall -Werror -Wstrict-prototypes -DCONFFILE=\"/etc/mdadm.conf\" -
> ggdb -DSendmail=\""/usr/sbin/sendmail -t"\"   -c -o super0.o super0.c
> cc1: warnings being treated as errors
> super0.c: In function ‘add_internal_bitmap0’:
> super0.c:737: warning: implicit declaration of function ‘__cpu_to_le32’
> super0.c:742: warning: implicit declaration of function ‘__cpu_to_le64’
> make: *** [super0.o] Error 1
> 
> Oh just because I know it is going to be an issue I'm building on a 
> Athlon 64... my first 64bit linux box so I'm sure there are going to  be
> gotchas that I've not thought about.
> 
> Is there somewhere I over looked for finding this information.
> 
> TIA

-
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

  reply	other threads:[~2006-02-05  2:13 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-05  0:47 Newbie questions: Max Active disks, RAID migration, Compiling mdadm 2.3 Martin Ritchie
2006-02-05  2:13 ` Mike Hardy [this message]
2006-02-05 22:12 ` How do I find endian-conversion function on Redhar/Fedora Neil Brown
2006-02-05 23:12   ` Gil
2006-02-06  0:18     ` Neil Brown
     [not found] <Pine.LNX.4.44.0602051634590.14014-100000@coffee.psychology.mcmaster.ca>
2006-02-05 22:41 ` Newbie questions: Max Active disks, RAID migration, Compiling mdadm 2.3 Martin Ritchie
2006-02-05 22:49   ` Neil Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=43E55F2E.1060102@h3c.com \
    --to=mhardy@h3c.com \
    --cc=linux-raid@vger.kernel.org \
    --cc=ritchiem@mac.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.