From: Randy Terbush <randy@terbush.org>
To: Dan Williams <dan.j.williams@intel.com>
Cc: linux raid <linux-raid@vger.kernel.org>
Subject: Re: Questions regarding startup of imsm container
Date: Tue, 23 Mar 2010 18:23:03 -0600 [thread overview]
Message-ID: <7db987b31003231723tac48bf5ocb3723522dc54417@mail.gmail.com> (raw)
In-Reply-To: <7db987b31003231625obb9f3c5r986988defdf68a08@mail.gmail.com>
Update on progress....
I have managed to hack together a dracut created initramfs that has me
able to boot and has resolved all boot issues. Will let this thing
have a few hours of resyncing and see if external bitmap comes back
and how it handles the reboot.
Thanks again for the assistance.
On Tue, Mar 23, 2010 at 5:25 PM, Randy Terbush <randy@terbush.org> wrote:
> Thanks Dan, a few more steps forward here. I suspect I know the
> answer, but will see what you suggest.
>
> On Tue, Mar 23, 2010 at 4:16 PM, Dan Williams <dan.j.williams@intel.com> wrote:
>> This shows that Gentoo is most likely not including mdmon in their initramfs
>> environment. mdadm assembles the array readonly, but then mdmon is required
>> to mark the array writable.
>
> Looks like you are correct and current installation packages on Gentoo
> have apparently not dealt with these changes. mdmon is not getting
> started and is not being attempted anywhere.
>
> I don't run an initrd, so attempted to start mdmon after the mdadm -As
> runs. This is apparently too early in the process as I get the
> following:
>
> * Starting up RAID devices ...
> [ ok ]
> mdmon: Neither /var/run nor /lib/init/rw are writable
> cannot create .pid or .sock files. Aborting
> * Setting up the Logical Volume Manager ...
> [ ok ]
> * Checking local filesystems ...
> HOME-vg0: clean, 13/3276800 files, 256151/52428800 blocks
> Warning... fsck.ext4 for device /dev/mapper/vg0-home exited with signal 11.
> SVN-vg0: clean, 191/1638400 files, 153087/26214400 blocks
> Warning... fsck.ext4 for device /dev/mapper/vg0-svn exited with signal 11.
> ARCHIVE-vg0: clean, 12/1638400 files, 152150/26214400 blocks
>
> So it appears the start of mdmon needs to wait until we have a rw
> filesystem mounted. Not entirely sure if it is related, but as you can
> see above, fsck blows up trying to check the filesystems on this
> array. That appears to clear itself up once mdmon is running. After
> starting mdmon by hand, the resync begins and I can successfully run
> fsck on these partitions.
>
> So looks like I have a chicken and egg problem that I suspect may be
> solved by creating an initramfs. I took a quick pass at dracut but
> could not convince it to add mdmon. Any hints appreciated as I go back
> to dig for more info.
>
> Thanks again for the assistance.
>
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2010-03-24 0:23 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-23 3:56 Questions regarding startup of imsm container Randy Terbush
2010-03-23 8:04 ` [PATCH] (Re: Questions regarding startup of imsm container) Luca Berra
2010-03-23 12:58 ` Randy Terbush
2010-03-23 14:22 ` Luca Berra
2010-03-23 14:33 ` Randy Terbush
2010-03-23 14:49 ` Randy Terbush
2010-03-23 15:56 ` Luca Berra
2010-03-23 22:41 ` Dan Williams
2010-03-24 21:35 ` Randy Terbush
2010-03-23 23:06 ` [PATCH] " Dan Williams
2010-03-24 0:57 ` Neil Brown
2010-03-24 6:12 ` Luca Berra
2010-03-24 14:49 ` Dan Williams
2010-03-23 21:01 ` Questions regarding startup of imsm container Dan Williams
2010-03-23 21:41 ` Randy Terbush
2010-03-23 22:16 ` Dan Williams
2010-03-23 23:25 ` Randy Terbush
2010-03-24 0:23 ` Randy Terbush [this message]
2010-03-24 4:14 ` Randy Terbush
2010-03-24 5:54 ` Dan Williams
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=7db987b31003231723tac48bf5ocb3723522dc54417@mail.gmail.com \
--to=randy@terbush.org \
--cc=dan.j.williams@intel.com \
--cc=linux-raid@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).