On Wed, 3 Mar 1999 [EMAIL PROTECTED] wrote:

| On Wed, Mar 03, 1999 at 02:53:30AM -0500, Penio Penev wrote:
| > I've been trying to set up a linear raid for about three days now -- there
| > are no clear instructions as to what needs to be done.
| 
| Read   http://ostenfeld.dk/~jakob/Software-RAID.HOWTO/
| 
| The docs are not completed, but at least they are fairly up to date.
| 

This did seem quite more useful than the "official" HOWTO (modulo the fact
that It is not accessible from parts of the US right now).

Nevertheless, the stage I'm stuck at is described there as "get the latest
raidtools and kernel patches, apply them and compile them."  

Fair enough, but this is what I have bee trying to achieve the last four
days.

Quick question first:  I need linear to get the data off and old setup.
In that case, do I need to patch the kernel?  I.e., are there raidtools
that can use the kernel as is to get linear?

I would assume, yes; otherwise, why would anything be included in the
kernel to begin with.  

In that case, which raidtools (or mdtools, for that matter) should I use?  
I tried quite a few of the ones at pub/linux/daemon/raid , and none
compiled out of the box.  With some coaxing, some compiled, but they use a
special ioctl command for startraid that is not in the unpatched kernels.


Modulo unpatched kernels.,, here is my experience with patching:

On Wed, 3 Mar 1999, Penio Penev wrote:

| In addition to what is said below, I did some experiments with 
| kernel 2.2.1 + raid0145-19990128-2.2.0 , of which only the mmap.c patch
| failed, ignored as advertised here:
| 
| The kernel dies in IO_trace(0x17,0x300,0,0xC017EB5E,0) which is called
| from bread(0x300,0,0x400) which is called from msdos_partition from
| check_partition.  I don't have time to do more tracing today.

| On Mon, 1 Mar 1999, Perry Harrington wrote:
| 
| | > OK, I tried various patchings:
| | 
| | I used kernel 2.2.1 with the 2.2.0 patch.  The mm/mmap.c patch failure can
| | be ignored, as the patch in the raid patch is the same end result as the virgin
| | 2.2.1 (read, the raid patch included a patch that was already in 2.2.1).
| | 
| | Apply 2.2.0 raid patch to 2.2.1 and recompile, use the .9 raidtools from kernel.org
| | and you should be fine.
| 
| I did that.  Let me make sure that I'm doing it right:
| 
| bunzip2 -c dist/linux-kversion.tar.bz2 | tar xf - 
| cd linux 
| bunzip2 -c /path-to-raid-dist/raid0145-date-pversion.bz2 | patch -s -p1
| 
| Is this the procedure?  If this, I have to say that I am lost.
| 
| {kversion = 2.2.1 , date-pversion = 19990128-2.2.0} compiled but
| segfaulted on "partition check" when booted.
| 
| {kversion = 2.2.0 , date-pversion = 19990128-2.2.0} compiled but
| segfaulted on "partition check" when booted.
| 
| {kversion = 2.0.36 , date-pversion = 19990128-2.0.36} did not compile
| 
| ---
| gcc -D__KERNEL__ -I/mnt/p2/usr/src/linux/include -Wall -Wstrict-prototypes -O2 
|-fomit-frame-pointer -fno-strength-reduce -pipe -m486 -malign-loops=2 -malign-jumps=2 
|-malign-functions=2 -DCPU=586  -c -o setup.o setup.c
| setup.c: In function `setup_arch':
| setup.c:129: `empty_zero_page' undeclared (first use this function)
| setup.c:129: (Each undeclared identifier is reported only once
| setup.c:129: for each function it appears in.)
| setup.c:125: warning: `memory_end' might be used uninitialized in this function
| setup.c:127: warning: `memory_alt_end' might be used uninitialized in this function
| make[1]: *** [setup.o] Error 1
| make[1]: Leaving directory `/mnt/p2/usr/src/linux/arch/i386/kernel'
| make: *** [linuxsubdirs] Error 2
| ---

I did see some reference to the 2.0.36 patches earlier in the archives, I
will definitely try it, but I am not holding my breath at this point.

Is liear raid so complicated, or am I missing something obvious?


--
Penio Penev <[EMAIL PROTECTED]> 1-212-327-7423

Reply via email to