From: danci@agenda.si
To: Tim Harvey <tharvey@alumni.calpoly.edu>
Cc: linux-raid@vger.kernel.org
Subject: RE: Autodetection howto
Date: Tue, 29 Jun 2004 10:04:24 +0200 (CEST) [thread overview]
Message-ID: <Pine.LNX.4.58.0406290954440.8085@desktop.agenda.si> (raw)
In-Reply-To: <000001c453e8$7f3d2c10$7001a8c0@darwin>
> > 2. If you have raid compiled as modules, you need a proper initrd
> > which will load appropriate modules (raid5) and then re-autodetect
> > the arrays (SuSE uses 'raidautorun' for that) - all that before
> > your OS actually starts booting.
> I'm not exactly sure how to do this... could you give me an example?
> My existing initrd is /boot/initrd-2.4.22-1.2140.nptl_30.rhfc1.at.img so
> I'm attempting:
>
> # mkinitrd --preload raid5.o
> /boot/initrd-2.4.22-1.2140.nptl_30.rhfc1.at.img 2.4.22-1
>
> I'm getting a usage error and I'm evidently not understanding mkinitrd's
> man page.
mkinitrd is pretty much distribution specific, so I cannot help you much
with that.
However, according to man page on Redhat 7.2 AXP that I have access to,
the 'mkinitrd' script is supposed to add raid modules automatically if the
system's root partition is on raid (I suppose it checks the /etc/fstab and
/etc/raidtab files)...
Maybe you should check the content of your initrd by:
1. cp /boot/initrd-2.4.22-1.2140.nptl_30.rhfc1.at.img /tmp/myinitrd.gz
2. gunzip /tmp/myinitrd.gz
3. mkdir /tmp/loop
4. mount -o loop /tmp/myinitrd /tmp/loop
5. cd /tmp/loop
Here you will see a 'linuxrc' script, which lists all the commands that
are executed.
This is my 'linuxrc':
#!/bin/nash
echo "Loading jbd module"
insmod /lib/jbd.o
echo "Loading ext3 module"
insmod /lib/ext3.o
mount -t proc /proc /proc
echo Mounting /proc filesystem
echo Creating root device
mkrootdev /dev/root
echo 0x0100 > /proc/sys/kernel/real-root-dev
umount /proc
echo Mounting root filesystem
mount --ro -t ext3 /dev/root /sysroot
pivot_root /sysroot /sysroot/initrd
As you can see, I don't use root on raid on this particular machine.
D.
prev parent reply other threads:[~2004-06-29 8:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-15 20:42 Autodetection howto Tim Harvey
2004-06-16 6:34 ` danci
2004-06-16 21:25 ` Tim Harvey
2004-06-29 8:04 ` danci [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.4.58.0406290954440.8085@desktop.agenda.si \
--to=danci@agenda.si \
--cc=linux-raid@vger.kernel.org \
--cc=tharvey@alumni.calpoly.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox