From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 9644 invoked from network); 17 Nov 1998 03:56:41 -0000 Received: from mail.redhat.com (199.183.24.239) by mail2.redhat.com with SMTP; 17 Nov 1998 03:56:41 -0000 Received: from julia.creaholic.com (euclid.creaholic.com [194.209.56.210]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id WAA32533 for ; Mon, 16 Nov 1998 22:56:40 -0500 Received: from amazing.ch ([194.209.56.213]) by julia.creaholic.com (Post.Office MTA v3.1.2 release (PO205-101c) ID# 0-44790U100L100S0) with SMTP id AAA4812 for ; Tue, 17 Nov 1998 04:56:23 +0100 Received: by amazing.ch id <5upm@amazing.ch>; Tue, 17 Nov 1998 04:56:00 GMT To: axp-list@redhat.com In-Reply-To: <19981116221945.10248.rocketmail@send203.yahoomail.com> (from Jacek Perry ) (at Mon, 16 Nov 1998 14:19:45 -0800 (PST)) Organization: sometimes private, sometimes creaholic sa MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable From: axp@amazing.ch Subject: Re: Alpha Raid Tools Message-Id: <2744c303.u10t12e.2c120-dworz@amazing.ch> Date: Tue, 17 Nov 1998 04:56:00 GMT 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) { =09int result =3D ffz(~word); =09return 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 ". 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: -------------------------------------------------- =20CONFIG_BLK_DEV_MD=3Dy =20CONFIG_AUTODETECT_RAID=3Dy =20CONFIG_MD_LINEAR=3Dy =20CONFIG_MD_STRIPED=3Dy =20CONFIG_MD_MIRRORING=3Dy =20CONFIG_MD_RAID5=3Dy -------------------------------------------------- (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 =20 raid-level 0 =20 nr-raid-disks 3 =20 nr-spare-disks 0 =20 chunk-size 16 =20 persistent-superblock 1 =20 device /dev/sdc2 =20 raid-disk 0 =20 device /dev/sde2 =20 raid-disk 1 =20 device /dev/sdf2 =20 raid-disk 2 raiddev /dev/md1 =20 raid-level 0 =20 nr-raid-disks 2 =20 nr-spare-disks 0 =20 chunk-size 16 =20 persistent-superblock 1 =20 device /dev/sdd1 =20 raid-disk 0 =20 device /dev/sdf1 =20 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 =20dworz