Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Robert Bowles <rbowles@op.net>
To: axp-list@redhat.com
Subject: Re: Linux raid question
Date: Thu, 19 Aug 1999 10:34:19 -0400	[thread overview]
Message-ID: <19990819103418.A5240@op.net> (raw)
In-Reply-To: <199908191113.OAA05253@ee.oulu.fi>; from RaymondInFinland on Mon, Jul 19, 1999 at 02:19:04PM +0300

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);
}


      reply	other threads:[~1999-08-19 14:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-07-19 11:19 Linux raid question RaymondInFinland
1999-08-19 14:34 ` Robert Bowles [this message]
read-only archive

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