All of lore.kernel.org
 help / color / mirror / Atom feed
* disable raid autodetect at boot
@ 2011-05-23  9:36 Alexander Lyakas
  2011-05-23 10:35 ` Michael Tokarev
  0 siblings, 1 reply; 6+ messages in thread
From: Alexander Lyakas @ 2011-05-23  9:36 UTC (permalink / raw)
  To: linux-raid

Hello,

I have a simple raid1 created on top of /dev/sda and /dev/sdb. After I
reboot, I would like to always manually assemble the raid. However,
every time the machine reboots, it looks like md tries to
automatically reassemble the raid, but usually binds only one of the
source devices:

16936	May 23 11:47:36 vc kernel: [    3.472926] md: linear personality
registered for level -1
16937	May 23 11:47:36 vc kernel: [    3.509352] md: multipath
personality registered for level -4
16938	May 23 11:47:36 vc kernel: [    3.551948] md: raid0 personality
registered for level 0
16939	May 23 11:47:36 vc kernel: [    3.683874] md: raid1 personality
registered for level 1
16953	May 23 11:47:36 vc kernel: [    4.944362] md: raid6 personality
registered for level 6
16954	May 23 11:47:36 vc kernel: [    4.944364] md: raid5 personality
registered for level 5
16955	May 23 11:47:36 vc kernel: [    4.944365] md: raid4 personality
registered for level 4
16956	May 23 11:47:36 vc kernel: [    4.949193] md: raid10 personality
registered for level 10
16971	May 23 11:47:36 vc kernel: [    6.059194] md: bind<sdb>

And /proc/mdstat has:
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5]
[raid4] [raid10]
md_d127 : inactive sdd[1](S)
      2097140 blocks super 1.2

According to md.txt, "only drives with a type 0 superblock can be
autodetected and run at boot time". During raid creation, I have
specified metadata version to be 1.2; this is confirmed by --examine.
Also, I have tried to use raid=noautodetect kernel parameter, but the
auto-detection still keeps happening.

The only way up to now I have found to prevent this, is by specifying
something like
DEVICE /dev/null
in /etc/mdadm/mdadm.conf

What am I missing?

Thanks,
  Alex.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: disable raid autodetect at boot
  2011-05-23  9:36 disable raid autodetect at boot Alexander Lyakas
@ 2011-05-23 10:35 ` Michael Tokarev
  2011-05-23 12:50   ` Alexander Lyakas
  0 siblings, 1 reply; 6+ messages in thread
From: Michael Tokarev @ 2011-05-23 10:35 UTC (permalink / raw)
  To: Alexander Lyakas; +Cc: linux-raid

23.05.2011 13:36, Alexander Lyakas wrote:
> Hello,
> 
> I have a simple raid1 created on top of /dev/sda and /dev/sdb. After I
> reboot, I would like to always manually assemble the raid. However,
> every time the machine reboots, it looks like md tries to
> automatically reassemble the raid, but usually binds only one of the
> source devices:
> 
> 16936	May 23 11:47:36 vc kernel: [    3.472926] md: linear personality
> registered for level -1
..
> 16971	May 23 11:47:36 vc kernel: [    6.059194] md: bind<sdb>

This is not kernel autodetection, this is your initramfs/initrd
and mdadm.  Or maybe mdadm in the regular root filesystem.

/mjt

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: disable raid autodetect at boot
  2011-05-23 10:35 ` Michael Tokarev
@ 2011-05-23 12:50   ` Alexander Lyakas
  2011-05-23 13:21     ` Michael Tokarev
  0 siblings, 1 reply; 6+ messages in thread
From: Alexander Lyakas @ 2011-05-23 12:50 UTC (permalink / raw)
  To: Michael Tokarev; +Cc: linux-raid

Michael,
can you pls explain what do I need to look at to disable this.

Alex.


On Mon, May 23, 2011 at 1:35 PM, Michael Tokarev <mjt@tls.msk.ru> wrote:
> 23.05.2011 13:36, Alexander Lyakas wrote:
>> Hello,
>>
>> I have a simple raid1 created on top of /dev/sda and /dev/sdb. After I
>> reboot, I would like to always manually assemble the raid. However,
>> every time the machine reboots, it looks like md tries to
>> automatically reassemble the raid, but usually binds only one of the
>> source devices:
>>
>> 16936 May 23 11:47:36 vc kernel: [    3.472926] md: linear personality
>> registered for level -1
> ..
>> 16971 May 23 11:47:36 vc kernel: [    6.059194] md: bind<sdb>
>
> This is not kernel autodetection, this is your initramfs/initrd
> and mdadm.  Or maybe mdadm in the regular root filesystem.
>
> /mjt
>
--
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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: disable raid autodetect at boot
  2011-05-23 12:50   ` Alexander Lyakas
@ 2011-05-23 13:21     ` Michael Tokarev
  2011-05-25 15:15       ` Alexander Lyakas
  0 siblings, 1 reply; 6+ messages in thread
From: Michael Tokarev @ 2011-05-23 13:21 UTC (permalink / raw)
  To: Alexander Lyakas; +Cc: linux-raid

23.05.2011 16:50, Alexander Lyakas wrote:
> Michael,
> can you pls explain what do I need to look at to disable this.

> On Mon, May 23, 2011 at 1:35 PM, Michael Tokarev <mjt@tls.msk.ru> wrote:

>> This is not kernel autodetection, this is your initramfs/initrd
>> and mdadm.  Or maybe mdadm in the regular root filesystem.

You need to find out where and how mdadm is called
on your system during bootup, and fix that place.

/mjt

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: disable raid autodetect at boot
  2011-05-23 13:21     ` Michael Tokarev
@ 2011-05-25 15:15       ` Alexander Lyakas
  2011-05-30  7:05         ` Nikolay Kichukov
  0 siblings, 1 reply; 6+ messages in thread
From: Alexander Lyakas @ 2011-05-25 15:15 UTC (permalink / raw)
  To: Michael Tokarev; +Cc: linux-raid

Michael,
thank you for your advice.

The only place where I saw mdadm is being called on boot is via
/etc/init.d/mdadm, which starts mdadm with --monitor --scan options.
Still I disabled the daemon start (in /etc/default/mdadm), but
inactive raid keeps reappearing on boot.

How can I find out who else might be calling mdadm on boot?

Thanks,
   Alex.


On Mon, May 23, 2011 at 4:21 PM, Michael Tokarev <mjt@tls.msk.ru> wrote:
> 23.05.2011 16:50, Alexander Lyakas wrote:
>> Michael,
>> can you pls explain what do I need to look at to disable this.
>
>> On Mon, May 23, 2011 at 1:35 PM, Michael Tokarev <mjt@tls.msk.ru> wrote:
>
>>> This is not kernel autodetection, this is your initramfs/initrd
>>> and mdadm.  Or maybe mdadm in the regular root filesystem.
>
> You need to find out where and how mdadm is called
> on your system during bootup, and fix that place.
>
> /mjt
>
--
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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: disable raid autodetect at boot
  2011-05-25 15:15       ` Alexander Lyakas
@ 2011-05-30  7:05         ` Nikolay Kichukov
  0 siblings, 0 replies; 6+ messages in thread
From: Nikolay Kichukov @ 2011-05-30  7:05 UTC (permalink / raw)
  To: Alexander Lyakas; +Cc: Michael Tokarev, linux-raid

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,
you should most likely disable the assembly of the arrays in the initramfs pre/post startup subsystem scripts.

I have it configured such as when initramfs image is loaded it automagically detects all my raid drives, various
versions: 0.9 and 1.2.

For example:

$ gunzip < /boot/initrd.img-2.6.32-5-vserver-amd64 | cpio -i --make-directories
62745 blocks
$ ls
bin  conf  etc  init  lib  lib64  sbin  scripts


You can take it from here...

Cheers,
- -Nik

On 05/25/2011 06:15 PM, Alexander Lyakas wrote:
> Michael,
> thank you for your advice.
> 
> The only place where I saw mdadm is being called on boot is via
> /etc/init.d/mdadm, which starts mdadm with --monitor --scan options.
> Still I disabled the daemon start (in /etc/default/mdadm), but
> inactive raid keeps reappearing on boot.
> 
> How can I find out who else might be calling mdadm on boot?
> 
> Thanks,
>    Alex.
> 
> 
> On Mon, May 23, 2011 at 4:21 PM, Michael Tokarev <mjt@tls.msk.ru> wrote:
>> 23.05.2011 16:50, Alexander Lyakas wrote:
>>> Michael,
>>> can you pls explain what do I need to look at to disable this.
>>
>>> On Mon, May 23, 2011 at 1:35 PM, Michael Tokarev <mjt@tls.msk.ru> wrote:
>>
>>>> This is not kernel autodetection, this is your initramfs/initrd
>>>> and mdadm.  Or maybe mdadm in the regular root filesystem.
>>
>> You need to find out where and how mdadm is called
>> on your system during bootup, and fix that place.
>>
>> /mjt
>>
> --
> 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
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJN40HGAAoJEDFLYVOGGjgXG/cH/R6IqX2rTr9Wjt9jxF6ad2GG
2r9AZpK7AV4m9ckDeqUYTrojjDA/rvOMVneMuqG22GgAt/JQ5M5AIZFlH39i8VfN
DL/DNd27hbjh+6rDd9I6LEDxCtO4UyAOtkI313fou8Yn8LdzOJvc9K58hsLUumhl
O+w/AmcOGFYnoOdVajobfDDQT1vb8TXYCA0rM6+w9+f94BQm1HPgxqJNfkBpry3P
N9qB0dngw7rnt1pXgYoi6zpiGSnqD/5tnnF9cYvq9HfRvK1/YwHAbwkZFDtuMwj1
lZOb6nC4MhPMmBFYW63FneGYW6YojUYDgSmJbWJHfwBRt2ScfgmfkR+sQ6R7AqM=
=MM9u
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-05-30  7:05 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-23  9:36 disable raid autodetect at boot Alexander Lyakas
2011-05-23 10:35 ` Michael Tokarev
2011-05-23 12:50   ` Alexander Lyakas
2011-05-23 13:21     ` Michael Tokarev
2011-05-25 15:15       ` Alexander Lyakas
2011-05-30  7:05         ` Nikolay Kichukov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.