From: Michael Shigorin <mike@osdn.org.ua>
To: ALT Developers List <devel@altlinux.ru>,
devel-kernel <devel-kernel@altlinux.ru>
Subject: [devel] Re: [d-kernel] software raid root
Date: Thu, 10 Jul 2003 16:48:58 +0300
Message-ID: <20030710134858.GK1734@osdn.org.ua> (raw)
In-Reply-To: <20030709202051.44fbda1d.vsu@altlinux.ru>
[-- Attachment #1: Type: text/plain, Size: 1695 bytes --]
On Wed, Jul 09, 2003 at 08:20:51PM +0400, Sergey Vlasov wrote:
> Я позанимался вопросом загрузки системы с корнем на software
> RAID (на простом md - без EVMS). Сейчас это у нас не работает -
> а зря.
Именно.
> Причина неработоспособности очевидна: автоопределение разделов
> с RAID происходит слишком рано - ещё до обработки initrd, когда
> никакие модули RAID ещё не загружены; в самом initrd тоже нет
> средств для запуска RAID.
Да. В RH -- есть.
> Возможны два подхода к решению этой проблемы:
> 1) Использование уже имеющихся средств автооопределения
> разделов RAID с соответствующими исправлениями, чтобы
> автозапуск RAID выполнялся из initrd после загрузки всех нужных
> модулей.
В шляпе так и лежит:
--- initrd#uzip:/linuxrc
#!/bin/nash
echo "Loading scsi_mod module"
insmod /lib/scsi_mod.o
echo "Loading sd_mod module"
insmod /lib/sd_mod.o
echo "Loading aic7xxx module"
insmod /lib/aic7xxx.o
echo "Loading raid1 module"
insmod /lib/raid1.o
echo "Loading jbd module"
insmod /lib/jbd.o
echo "Loading ext3 module"
insmod /lib/ext3.o
echo Mounting /proc filesystem
mount -t proc /proc /proc
echo Creating root device
mkrootdev /dev/root
raidautorun /dev/md0
echo 0x0100 > /proc/sys/kernel/real-root-dev
echo Mounting root filesystem
mount --ro -t ext3 /dev/root /sysroot
umount /proc
pivot_root /sysroot /sysroot/initrd
---
> 2) Запуск RAID с помощью raidstart из initrd.
Мне тоже не очень нравится. Если есть удобная вещь -- почему бы
ей и не пользоваться?
> Получился следующий набор патчей (два в mkinitrd и два в ядро):
О, а вот это я постараюсь проверить до конца недели.
--
---- WBR, Michael Shigorin <mike@altlinux.ru>
------ Linux.Kiev http://www.linux.kiev.ua/
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next parent reply other threads:[~2003-07-10 13:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-10 13:48 ` Michael Shigorin [this message]
2003-07-12 16:46 ` Michael Shigorin
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=20030710134858.GK1734@osdn.org.ua \
--to=mike@osdn.org.ua \
--cc=devel-kernel@altlinux.ru \
--cc=devel@altlinux.ru \
/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
ALT Linux Team development discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
public-inbox-index devel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git