mkinitrd unification across distributions
 help / color / mirror / Atom feed
From: Jacek Danecki <Jacek.Danecki-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
To: Harald Hoyer <harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Cc: "initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
	<initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: [PATCH 03/14] Make Intel BIOS raid use mdraid instead of dmraid when mdadm 3.0 is available
Date: Mon, 20 Jul 2009 19:39:18 +0200	[thread overview]
Message-ID: <4A64ABC6.30901@intel.com> (raw)
In-Reply-To: <1247676646-3837-4-git-send-email-harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>

Harald Hoyer wrote:
> diff --git a/modules.d/90mdraid/mdraid_start.sh b/modules.d/90mdraid/mdraid_start.sh
> index 3475b7e..7293ded 100755
> --- a/modules.d/90mdraid/mdraid_start.sh
> +++ b/modules.d/90mdraid/mdraid_start.sh
> @@ -4,5 +4,14 @@ if $UDEV_QUEUE_EMPTY >/dev/null 2>&1; then
>      [ -h "$job" ] && rm -f "$job"
>      # run mdadm if udev has settled
>      mdadm -IRs
> +    # and activate any containers
> +    for md in /dev/md?*; do
> +        case $md in
> +            /dev/md*p*) ;;
> +            *)
> +                if mdadm --export --detail $md | grep -q container; then
> +                    mdadm -IR $md

These commands are not executed because /dev/md directory was not created.
In rdshell I've executed:
# rm /tmp/.mdraid_start-sd*
# udevadm trigger

KERNEL[1248110873.408893] add      /devices/virtual/block/md126 (block)
KERNEL[1248110873.408938] add      /devices/virtual/block/md127 (block)
KERNEL[1248110873.408972] change   /devices/virtual/block/md127 (block)

sh-4.0# cat /proc/mdstat 
Personalities : [raid1] 
md127 : inactive sdb[1](S) sda[0](S)
      4514 blocks super external:imsm
       
unused devices: <none>

sh-4.0# ls -l /dev/md*
brw-rw---- 1 0 disk 9, 126 Jul 20 16:56 /dev/md126
brw-rw---- 1 0 disk 9, 127 Jul 20 17:27 /dev/md127

If I run mdadm -IR manually:

sh-4.0# mdadm -IR /dev/md127
md: bind<sdb>
md: bind<sda>
raid1: raid set md126 active with 2 out of 2 mirrors
KERNEL[1248110956.850769] changemd126: detected capacity change from 0 to 10737418240
   /devices/virt md126:ual/block/md126  p1(block)
 p2
KERNEL[1248110956.863417] change   /devices/virtual/block/md126 (block)
KERNEL[1248110956.863656] add      /devices/virtual/blomd: md126 switched to read-write mode.
ck/md126/md126p1 (block)
KERNEL[1248110956.863841] add      /devices/virtual/block/md126/md126p2 (block)
mdadm: Started /dev/md/raid1_0 with 2 devices

sh-4.0# cat /proc/mdstat 
Personalities : [raid1] 
md127 : inactive sdb[1](S) sda[0](S)
      4514 blocks super external:imsm
       
md126 : active (auto-read-only) raid1 sda[1] sdb[0]
      10485760 blocks super external:/md127/0 [2/2] [UU]
      
unused devices: <none>
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2009-07-20 17:39 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-15 16:50 [PATCH 00/14] For review Harald Hoyer
     [not found] ` <1247676646-3837-1-git-send-email-harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2009-07-15 16:50   ` [PATCH 01/14] dracut-lib add getargs() Harald Hoyer
2009-07-15 16:50   ` [PATCH 02/14] 10redhat-i18n: Fix handling of kbd maps which are a symlink Harald Hoyer
2009-07-15 16:50   ` [PATCH 03/14] Make Intel BIOS raid use mdraid instead of dmraid when mdadm 3.0 is available Harald Hoyer
     [not found]     ` <1247676646-3837-4-git-send-email-harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2009-07-20 17:39       ` Jacek Danecki [this message]
2009-07-15 16:50   ` [PATCH 04/14] dmraid.rules changed comment in header Harald Hoyer
2009-07-15 16:50   ` [PATCH 05/14] change the way init arguments are stripped from the command line Harald Hoyer
2009-07-15 16:50   ` [PATCH 06/14] limit the devices for which lvm vgscan will scan Harald Hoyer
2009-07-15 16:50   ` [PATCH 07/14] remove partitions from raid devices before they are used for something else Harald Hoyer
     [not found]     ` <1247676646-3837-8-git-send-email-harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2009-07-20 17:31       ` Jacek Danecki
     [not found]         ` <4A64A9DB.6060701-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2009-07-21  9:32           ` Harald Hoyer
2009-07-15 16:50   ` [PATCH 08/14] add info() and vinfo() to dracut-lib Harald Hoyer
2009-07-15 16:50   ` [PATCH 09/14] Fix lvm on top of dmraid Harald Hoyer
2009-07-15 16:50   ` [PATCH 10/14] add command line parameters to specify exact actions for root assembly Harald Hoyer
2009-07-15 16:50   ` [PATCH 11/14] extend TEST-12-RAID-DEG to check for UUID command line parameters Harald Hoyer
2009-07-15 16:50   ` [PATCH 12/14] Makefile: add debug module to the testimage target Harald Hoyer
2009-07-15 16:50   ` [PATCH 13/14] install all /lib/kbd to initramfs, if not host only Harald Hoyer
2009-07-15 16:50   ` [PATCH 14/14] dracut-lib: if "quiet" is specified, do not print info() to console Harald Hoyer

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=4A64ABC6.30901@intel.com \
    --to=jacek.danecki-ral2jqcrhueavxtiumwx3w@public.gmane.org \
    --cc=harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
    --cc=initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.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