From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 7269 invoked from network); 19 Aug 1999 14:34:07 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 19 Aug 1999 14:34:07 -0000 Received: from mail.op.net (d-bm4-2c.ppp.op.net [209.152.194.140]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id KAA30955 for ; Thu, 19 Aug 1999 10:34:04 -0400 Received: (from rbowles@localhost) by mail.op.net (8.9.3/8.9.3) id KAA05393 for axp-list@redhat.com; Thu, 19 Aug 1999 10:34:19 -0400 Date: Thu, 19 Aug 1999 10:34:19 -0400 From: Robert Bowles To: axp-list@redhat.com Subject: Re: Linux raid question Message-ID: <19990819103418.A5240@op.net> Reply-To: rbowles@infonautics.com References: <199908191113.OAA05253@ee.oulu.fi> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4us In-Reply-To: <199908191113.OAA05253@ee.oulu.fi>; from RaymondInFinland on Mon, Jul 19, 1999 at 02:19:04PM +0300 X-host-platform: Linux noname 2.2.11-rth1+nc n=15 Mon Aug 16 23:28:25 EDT 1999 alpha unknown See comments below... On Mon, Jul 19, 1999 at 02:19:04PM +0300, RaymondInFinland wrote: > > Hi, > > Another newbie (dumb?) question. > I've been playing around with the raid options in the linux kernel because I > want to combine to small disks to 1 big one with raid-0 (striping). > I compiled a new kernel with all the raid options on (to be sure) and download Be certain that you're using the same version of raid-tools as you have patched in your kernel. If you're using RH-kernel sources, I'll guess your packages came from ftp://updates.redhat.com/redhat-6.0/... > the raidtools from the redhat site (version 0.90). The kernel i'm using is > 2.2.5-22. Below is my raidtab: > > raiddev /dev/md0 > raid-level 0 You need a 'persistent-superblock 1' entry if you want to autostart. > nr-raid-disks 2 > nr-spare-disks 0 > chunk-size 1024 This is _huge_. 'chunk-size' is in kb, so you're specifying a 1mb chunk-size. I'd recommend 4, 8, 16 or (at most) 32. > device /dev/sda5 > raid-disk 0 > device /dev/sdd1 > raid-disk 1 > > I initialize the disks with mkraid /dev/md0 which works. Do a startraid -a and The latest verion of mkraid starts the MD automatically. Doesn't the version that ships with redhat do the same? I seem to remember some old version of raidtools that would allow you to add the same partition multiple times, always with bad effect. > mke2fs /dev/md0. Now i have a working raidpartition which i can use. > The problem is that when i reboot the machine and want to mount the > raidpartition again i get the following errors: > > during kernel boot i get: > > >(read) sda5's sb offset: 511872 [events: a149000047e0040c] > >md: invalid raid superblock magic on sda5 > >md: sda5 has invalid sb, not importing! > >could not import sda5! > >autostart sda5 failed! > >huh12? > >(read) s > > raidstart -a yields: > /dev/md0: Invalid argument > > The strange thing is that when i do a mkraid again i'm able to use the > raidpartition again. (but as soon as i do a reboot, it seems to have > disappeared again) > > Any clues, hints, tips or pointers anyone? > > Raymond > > > "...whatever the cost may be, we shall fight on the beaches, we shall fight > on the landing grounds, we shall fight in the fields and in the streets, we > shall fight in the hills; we shall never surrender..." > - Winston Churchill, on Linux. > > -- > To unsubscribe: send e-mail to axp-list-request@redhat.com with > 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com > > -- void rbowles(int sig) { signal(sig, rbowles); raise(sig); }