<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    You can easily reproduce it in VirtualBox:<br>
    <br>
    0) Create 3 virtual HDDs and attach them to system OS.<br>
    <br>
    1) Partition each RAID1 member using GPT:<br>
       1. Bios GRUB - 1 MB<br>
       2. RAID partition<br>
       3. RAID partition<br>
    <br>
    2) Use: <br>
             sd[a-c]3 as RAID1 EXT4(md0);<br>
             sd[a-c]2 as RAID1 swap (md1) .<br>
    <br>
    3) Install base system on md0.<br>
    <br>
    4) Install GRUB on all three RAID1 members.<br>
    <br>
    5) Boot up and wait for full resync.<br>
    <br>
    6) Shutdown virtual machine and remove/detach any one or two virtual
    HDDs.<br>
    <br>
    7) Boot the machine and see THE PROBLEM.<br>
    <br>
    <br>
    Description: What happens is the array becomes inactive on any disk
    removal(degraded?), marked as RAID0(for some reason) and all
    attached disks are marked as [S] (for spare) upon reboot.<br>
    However, it is possible to boot from it by starting it in the
    "(initramfs)" shell (which it drops to because it "cannot mount root
    device") by using:<br>
    <br>
    (initramfs):  mdadm --run /dev/md0<br>
    (initramfs):  mdadm --run /dev/md1<br>
    (initramfs):  exit<br>
    <br>
    after which, it boots up fine and shows the arrays as degraded(and
    will continue to boot fine even if rebooted UNTIL one or more disks
    get removed, in which case it will do exactly the same as with a
    fresh installed array, i.e. drop to a (initramfs) shell).<br>
    <br>
    The problem is how to allow the boot of degraded array without
    manually starting them eahc time a disk is removed/dies?<br>
    <br>
    Extra Information:<span style="color: rgb(34, 34, 34); font-family:
      'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px;
      font-style: normal; font-variant: normal; font-weight: normal;
      letter-spacing: normal; line-height: 19.5px; orphans: auto;
      text-align: left; text-indent: 0px; text-transform: none;
      white-space: normal; widows: 1; word-spacing: 0px;
      -webkit-text-stroke-width: 0px; display: inline !important; float:
      none; background-color: rgb(255, 255, 255);"><br>
    </span>
    <ul>
      <li><span style="color: rgb(34, 34, 34); font-family: 'Helvetica
          Neue', Helvetica, Arial, sans-serif; font-size: 15px;
          font-style: normal; font-variant: normal; font-weight: normal;
          letter-spacing: normal; line-height: 19.5px; orphans: auto;
          text-align: left; text-indent: 0px; text-transform: none;
          white-space: normal; widows: 1; word-spacing: 0px;
          -webkit-text-stroke-width: 0px; display: inline !important;
          float: none; background-color: rgb(255, 255, 255);">Google
          spit out a bunch of posts about UBUNTU using "</span><strong
          style="margin: 0px; padding: 0px; border: 0px; font-size:
          15px; font-weight: bold; color: rgb(34, 34, 34); font-family:
          'Helvetica Neue', Helvetica, Arial, sans-serif; font-style:
          normal; font-variant: normal; letter-spacing: normal;
          line-height: 19.5px; orphans: auto; text-align: left;
          text-indent: 0px; text-transform: none; white-space: normal;
          widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px;
          background-color: rgb(255, 255, 255);">BOOT_DEGRADED=true</strong><span
          style="color: rgb(34, 34, 34); font-family: 'Helvetica Neue',
          Helvetica, Arial, sans-serif; font-size: 15px; font-style:
          normal; font-variant: normal; font-weight: normal;
          letter-spacing: normal; line-height: 19.5px; orphans: auto;
          text-align: left; text-indent: 0px; text-transform: none;
          white-space: normal; widows: 1; word-spacing: 0px;
          -webkit-text-stroke-width: 0px; display: inline !important;
          float: none; background-color: rgb(255, 255, 255);">" but that
          doesn't work for DEBIAN.</span></li>
      <li><span style="color: rgb(34, 34, 34); font-family: 'Helvetica
          Neue', Helvetica, Arial, sans-serif; font-size: 15px;
          font-style: normal; font-variant: normal; font-weight: normal;
          letter-spacing: normal; line-height: 19.5px; orphans: auto;
          text-align: left; text-indent: 0px; text-transform: none;
          white-space: normal; widows: 1; word-spacing: 0px;
          -webkit-text-stroke-width: 0px; display: inline !important;
          float: none; background-color: rgb(255, 255, 255);">There is
          also<span class="Apple-converted-space"> </span></span><a
href="http://serverfault.com/questions/196445/boot-debian-while-raid-array-is-degraded"
          style="margin: 0px; padding: 0px; border-width: 0px 0px 1px;
          border-bottom-style: dotted; border-bottom-color: rgb(69, 69,
          69); font-size: 15px; cursor: pointer; color: rgb(12, 101,
          165); text-decoration: none; font-family: 'Helvetica Neue',
          Helvetica, Arial, sans-serif; font-style: normal;
          font-variant: normal; font-weight: normal; letter-spacing:
          normal; line-height: 19.5px; orphans: auto; text-align: left;
          text-indent: 0px; text-transform: none; white-space: normal;
          widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px;
          background-color: rgb(255, 255, 255);">a post about using "<strong
            style="margin: 0px; padding: 0px; border: 0px; font-size:
            15px; font-weight: bold;">md-mod.start_dirty_degraded=1</strong>"
          as a boot argument to the kernel image</a><span style="color:
          rgb(34, 34, 34); font-family: 'Helvetica Neue', Helvetica,
          Arial, sans-serif; font-size: 15px; font-style: normal;
          font-variant: normal; font-weight: normal; letter-spacing:
          normal; line-height: 19.5px; orphans: auto; text-align: left;
          text-indent: 0px; text-transform: none; white-space: normal;
          widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px;
          display: inline !important; float: none; background-color:
          rgb(255, 255, 255);">. I have tried passing it in GRUB menu
          option, with no avail.</span></li>
      <li><span style="color: rgb(34, 34, 34); font-family: 'Helvetica
          Neue', Helvetica, Arial, sans-serif; font-size: 15px;
          font-style: normal; font-variant: normal; font-weight: normal;
          letter-spacing: normal; line-height: 19.5px; orphans: auto;
          text-align: left; text-indent: 0px; text-transform: none;
          white-space: normal; widows: 1; word-spacing: 0px;
          -webkit-text-stroke-width: 0px; display: inline !important;
          float: none; background-color: rgb(255, 255, 255);">There
          might be<span class="Apple-converted-space"> </span></span><a
          href="https://www.kernel.org/doc/Documentation/md.txt"
          rel="nofollow" style="margin: 0px; padding: 0px; border-width:
          0px 0px 1px; border-bottom-style: dotted; border-bottom-color:
          rgb(69, 69, 69); font-size: 15px; cursor: pointer; color:
          rgb(12, 101, 165); text-decoration: none; font-family:
          'Helvetica Neue', Helvetica, Arial, sans-serif; font-style:
          normal; font-variant: normal; font-weight: normal;
          letter-spacing: normal; line-height: 19.5px; orphans: auto;
          text-align: left; text-indent: 0px; text-transform: none;
          white-space: normal; widows: 1; word-spacing: 0px;
          -webkit-text-stroke-width: 0px; background-color: rgb(255,
          255, 255);">something that explains it</a><span style="color:
          rgb(34, 34, 34); font-family: 'Helvetica Neue', Helvetica,
          Arial, sans-serif; font-size: 15px; font-style: normal;
          font-variant: normal; font-weight: normal; letter-spacing:
          normal; line-height: 19.5px; orphans: auto; text-align: left;
          text-indent: 0px; text-transform: none; white-space: normal;
          widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px;
          display: inline !important; float: none; background-color:
          rgb(255, 255, 255);">, but I am a newbie to understand :(</span></li>
    </ul>
    <br>
    Links in the above text:<br>
    [1]
<a class="moz-txt-link-freetext" href="http://serverfault.com/questions/196445/boot-debian-while-raid-array-is-degraded">http://serverfault.com/questions/196445/boot-debian-while-raid-array-is-degraded</a><br>
    [2] <a class="moz-txt-link-freetext" href="https://www.kernel.org/doc/Documentation/md.txt">https://www.kernel.org/doc/Documentation/md.txt</a><br>
    <div class="moz-cite-prefix"><br>
      <br>
      On 2015-05-03 23:32, Michael Tokarev wrote:<br>
    </div>
    <blockquote cite="mid:554685D3.2080706@msgid.tls.msk.ru" type="cite">
      <pre wrap="">Control: tag -1 + moreinfo unreproducible

02.05.2015 21:41, Sad Person wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">Package: mdadm
Version: 3.3.2-5
Severity: critical
</pre>
      </blockquote>
      <pre wrap="">
</pre>
      <blockquote type="cite">
        <pre wrap="">-- Package-specific info:
--- mdadm.conf
CREATE owner=root group=disk mode=0660 auto=yes
HOMEHOST <system>
MAILADDR root
</pre>
      </blockquote>
      <pre wrap="">...cut...
</pre>
    </blockquote>
    <br>
  </body>
</html>