Find the answer to your Linux question:
Results 1 to 5 of 5
Hi guys, Just a quick question. Is there any way to build mdadm into the linux kernel? Thanks in advance...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined! lonewolff's Avatar
    Join Date
    May 2008
    Posts
    32

    Building mdadm into the kernel - possible?


    Hi guys,

    Just a quick question. Is there any way to build mdadm into the linux kernel?

    Thanks in advance

  2. #2
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,441
    mdadm is a userspace tool.
    It cannot and should not be part of the kernel.
    You must always face the curtain with a bow.

  3. #3
    Just Joined! lonewolff's Avatar
    Join Date
    May 2008
    Posts
    32
    Hi, thanks for the reply.

    Is there any way it can be run before usb hadware detection then?

  4. $spacer_open
    $spacer_close
  5. #4
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,441
    Why? It usually makes sense to find and initialize devices before using them.
    And when? During bootup or after?
    What is your usecase?
    You must always face the curtain with a bow.

  6. #5
    Just Joined! lonewolff's Avatar
    Join Date
    May 2008
    Posts
    32
    The reasoning behind it is that I have a Raspberry Pi and you can edit cmdline.txt to point to an external USB device and have it continue to boot from there (once the initial boot strap and kernel have started).

    I have the Pi successfully working on an external drive. But, now I am playing with a RAID 5 array and want to tell cmdline.txt to continue to boot from that.

    So, in order for that to work mdadm has to be running before the usb detection phase. Otherwise, the OS load just hangs straight after the USB drives are detected as the RAID array not up yet.

    I am hoping that if mdadm is running before usb detection, the RAID array will be available to continue to boot from.

    Any help would be awesome.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •