From: Aleksey Avdeev <solo@solin.spb.ru> To: ALT Linux Team development discussions <devel@lists.altlinux.org> Subject: Re: [devel] U: Работает ли автостарт softraid в XEN? Date: Wed, 24 Oct 2007 09:12:26 +0400 Message-ID: <471ED43A.4040504@solin.spb.ru> (raw) In-Reply-To: <20071023203025.GB5077@procyon.home> [-- Attachment #1: Type: text/plain, Size: 1983 bytes --] Sergey Vlasov пишет: > On Tue, Oct 23, 2007 at 11:28:37PM +0400, Aleksey Avdeev wrote: >> Именно таким хаком (копированием в initrd mdassemble и системного >> /etc/mdadm.conf) я эту проблему и решил... Но ненравиться мне такое >> решение! :-( >> >> По ходу дела выползло (незнаю, на сколько с данным способом решения >> связанное): >> >> 1. Неполучилось смонтировать root по UUID -- параметр root=UUID=<UUID, >> скопированный из lilo.conf> оказался нерабочим: зажило только с >> root=/dev/md<нужный> > > Если это /dev/md0, вероятнее всего, это тот же race, для которого > сделан hackaround в текущей реализации: > > # /scripts/local-top runs before swsusp resume - start RAID in > # read-only mode to avoid messing up resume state. Actually the > # start_ro parameter sets the "read-auto" mode - arrays initially > # start read-only, but are switched to the normal read-write mode on > # the first write request, so there is no need to switch arrays to > # the read-write mode explicitly. > # > # "echo add > /sys/block/md0/uevent" after md_run is a workaround for > # an unavoidable race between md_run invoking RAID_AUTORUN ioctl on > # /dev/md0 and udevd probing the started md devices (one of which may > # be /dev/md0): probing fails if it starts when md_run still has > # /dev/md0 open. The extra uevent makes sure that /dev/md0 is probed > # properly, which is important when the root fs is specified by UUID. > cat >>"$MNTDIR"/scripts/local-top <<'EOF' > log_begin_msg "Starting up RAID devices" > modprobe -q md_mod > echo 1 > /sys/module/md_mod/parameters/start_ro > md_run `cat /proc/cmdline` > echo add > /sys/block/md0/uevent ||: > log_end_msg > EOF Нет, это /dev/md1... > > Т.е., после md_run (или mdassemble) нужно лишний раз дёрнуть > /sys/block/md0/uevent, чтобы для него прочитался uuid. Хотя, > возможно, для mdassemble этого будет мало. OK, проверю. -- С уважением. Алексей. [-- Attachment #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 481 bytes --]
next prev parent reply other threads:[~2007-10-24 5:12 UTC|newest] Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top 2007-10-23 12:46 Aleksey Avdeev 2007-10-23 19:25 ` Sergey Vlasov 2007-10-23 19:28 ` Aleksey Avdeev 2007-10-23 19:51 ` Peter V. Saveliev 2007-10-24 5:15 ` [devel] U: Работаея┌ п╩п╦ п╟п╡я┌п╬я│я┌п╟я─я┌ softraid п╡ XEN? Aleksey Avdeev 2007-10-23 20:30 ` [devel] U: Работает ли автостарт softraid в XEN? Sergey Vlasov 2007-10-24 5:12 ` Aleksey Avdeev [this message] 2007-10-25 17:12 ` Sergey Vlasov 2007-10-25 18:12 ` Михаил Якушин 2007-10-25 15:46 ` Aleksey Avdeev 2007-10-25 16:01 ` Aleksey Avdeev
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=471ED43A.4040504@solin.spb.ru \ --to=solo@solin.spb.ru \ --cc=devel@lists.altlinux.org \ /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