public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Rumi Szabolcs <rumi_ml@rtfm.hu>
To: gentoo-dev@gentoo.org
Subject: [gentoo-dev] rc md-raid behaviour
Date: Wed, 12 Nov 2003 04:42:39 +0100	[thread overview]
Message-ID: <20031112044239.2d7d69e2.rumi_ml@rtfm.hu> (raw)

Hello!

I have started to edit an /etc/raidtab file for a future raid and I
just left off in the middle. Of course it was not in the fstab yet.
Later I rebooted the machine and rc tried to start the half written
array config by default (! #1), of course that failed and then it
dropped me into a single user shell (! #2) although the system disk
is a completely different non-md device, having all the filesystems
needed to go multiuser.

Seeing that I looked into the /etc/init.d/checkfs script and
found the following behaviour: If there is an /etc/raidtab file
and a /proc/mdstat, then it tries to start all the raid arrays,
unless the raid device is _present_ in the fstab with a _noauto_
flag. IMHO thats like a cop shooting at everybody who doesn't
hold a sign with the text "I'm not a gangster"...

Here is what I think it should work like:

- If there is a raidtab, _and_ in /etc/conf.d/raidstart (or call it as
you like) it says (globally) RAID_AUTOSTART="yes" _and_ in the same
file RAID_AUTOSTART_DEVICES="md0 md2 ..." lists the particular
raid device as one to be automagically started _then_ it is started,
regardless of what is in the fstab. Of course when someone is creating
a new raid device, he has to explicitly put that device into the above
variable when he thinks that the raid is ready to be autostarted, so
he won't be surprised the way I've been. This might also suggest a
separate /etc/init.d/raidstart script which has to be executed before
checkfs, dedicated to the purpose of starting the raid arrays.

Regards,
Szabolcs Rumi

--
gentoo-dev@gentoo.org mailing list


             reply	other threads:[~2003-11-12  3:43 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-12  3:42 Rumi Szabolcs [this message]
2003-11-12 21:29 ` [gentoo-dev] rc md-raid behaviour Aron Griffis
2003-11-13  6:31   ` Rumi Szabolcs

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=20031112044239.2d7d69e2.rumi_ml@rtfm.hu \
    --to=rumi_ml@rtfm.hu \
    --cc=gentoo-dev@gentoo.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
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