Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Alpha Raid Tools
@ 1998-11-16 22:19 Jacek Perry
       [not found] ` <chrobry@yahoo.com>
  0 siblings, 1 reply; 3+ messages in thread
From: Jacek Perry @ 1998-11-16 22:19 UTC (permalink / raw)
  To: Alpha Linux

Hello all

I have just downloaded raidtools.  I understand that I have to patch
the kernel (which I have done so), since I run basic redhat 5.1 kernel
(2.0.34).  Then I tried to read the installation notes (i.e. README,
Install) and run the programs there.  Everything seemed to run fine,
but no md tools were added.  Then I run make install (just because
most programs seem to like that command, and I was running out of
ideas) that seemed to compile the tools.  I now have mdadd,mdstart etc
tools in my /sbin directory.  However when I did run make install I
got bunch of errors (mknod not enough arguments).  

Now my question is how do I compile the raid tool, and do I have to
get specific ones for alpha (I am running LX164)?

Thank you
Jacek Perry




_________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Alpha Raid Tools
       [not found] ` <chrobry@yahoo.com>
@ 1998-11-17  4:56   ` axp
  0 siblings, 0 replies; 3+ messages in thread
From: axp @ 1998-11-17  4:56 UTC (permalink / raw)
  To: axp-list

On Nov 16 Jacek Perry (chrobry@yahoo.com) wrote:

> Now my question is how do I compile the raid tool, and do I have to
> get specific ones for alpha (I am running LX164)?

About a month ago I wrote to this list (does the listarchive
at Redhat work now?):

Hi

Yesterday I added one more disk to my Alpha and
I used the opportunity to create some raid-arrays.

As I had some troubles to get it working, I thought,
I'd share my findings with you:


I got "raidtools-0_51beta9" and "raid0145-19980913-2_0_35"
from ftp.kernel.org/pub/linux/kernel/deamons (or
something very similar).

I have RH5.1, Kernel 2.0.35 from RH (without any
patches), egcs1.1a on a PC164.


The Raid-patches for the Kernel applied cleanly
(beside one patch to asm-i386/irq.h (I think)).


To compile the Tools I needed to make the
following changes:

In "/usr/src/linux/include/asm-alpha/bitops.h" I added
--------------------------------------------------
extern inline int ffs(int word)
{
	int result = ffz(~word);
	return word ? result+1 : 0;
}
--------------------------------------------------
right after the definition of ffz (took that one from
a 2.1.xxx Kernel)


"/usr/src/linux/include/linux/raid/md.h" was missing
a "#include <asm/segment.h>".

I think, that was all I changed.



As the doc is a bit unclear (no comment), here a
short rundown on hot to use it:

1. make a new kernel with:
--------------------------------------------------
 CONFIG_BLK_DEV_MD=y
 CONFIG_AUTODETECT_RAID=y
 CONFIG_MD_LINEAR=y
 CONFIG_MD_STRIPED=y
 CONFIG_MD_MIRRORING=y
 CONFIG_MD_RAID5=y
--------------------------------------------------
(you don't need all raid-levels if you don't want
to...)


2. compile and install the tools:
"cd raidtools;./configure;make;make install"


3. create "/etc/raidtab". mine looks like this:
--------------------------------------------------
raiddev /dev/md0
    raid-level                0
    nr-raid-disks             3
    nr-spare-disks            0
    chunk-size                16
    persistent-superblock     1

    device                    /dev/sdc2
    raid-disk                 0
    device                    /dev/sde2
    raid-disk                 1
    device                    /dev/sdf2
    raid-disk                 2

raiddev /dev/md1
    raid-level                0
    nr-raid-disks             2
    nr-spare-disks            0
    chunk-size                16
    persistent-superblock     1

    device                    /dev/sdd1
    raid-disk                 0
    device                    /dev/sdf1
    raid-disk                 1
--------------------------------------------------
(The persistent-superblock isn't documented anywhere,
but it's needed for normal operation. also the
chunk-size entry is mandatory).


4. use "fdisk" to set the partitiontype to "86" for all
the future raid-partitions (needed for autodetection
on the next reboot (you can even put the root on a
raid-partition, but of course you need to keep the
kernel on a non-raid-partition).


5. "mkraid -a"


6. "mke2fs /dev/md0" and "mke2fs /dev/md1"


7. make entries in your "/etc/fstab".


8. mount them and use them :)


Hope I didn't forget anything. It works for me (so
far). No warranty....


Bye
 dworz


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Alpha Raid Tools
@ 1998-11-17 18:46 Jacek Perry
  0 siblings, 0 replies; 3+ messages in thread
From: Jacek Perry @ 1998-11-17 18:46 UTC (permalink / raw)
  To: Alpha Linux


Thank you

However my problem might be a bit differant.  The patches I applied
(the kernel is configured and recompiled), I build the raid, however I
can't mount it that is becuase no /dev/md exist.  The reason for that
is because when I install the raid tools with
make and then make install

the make install fails.  It says that mtab has invalid number of
argument, and it exits with an error.  I believe that everything else
is installed (things such as mdadd/mdstart etc... all but the /dev/md
how can you run make install correctly? is there any hacks that I have
to do to the make file?

Thank you
Jacek Perry



_________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1998-11-17 18:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-11-17 18:46 Alpha Raid Tools Jacek Perry
  -- strict thread matches above, loose matches on Subject: below --
1998-11-16 22:19 Jacek Perry
     [not found] ` <chrobry@yahoo.com>
1998-11-17  4:56   ` axp

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox