<div dir="ltr">On Fri, 06 Feb 2015 10:28:00 +0300 Michael Tokarev <<a href="mailto:mjt@tls.msk.ru">mjt@tls.msk.ru</a>> wrote:<br>> Control: retitle -1 Using mdadm to install Debian on Intel IMSM RAID array stopped working between Wheezy 7.8 and Jessie RC1<br>> Control: reassign -1 mdadm<br>> Control: tag -1 + help<br>> <br>> 05.02.2015 17:43, Benjamin Black wrote:<br>> > Package: debian-installer<br>> > Version: used in Debian GNU/Linux Jessie-DI-rc1 "Jessie" - Official RC amd64 CD Binary-1 20150109-01:06 image<br>> > <br>> > My UEFI motherboard has an Intel RST chip on it, which I use to set up a pair of SSD drives in a RAID-0 array.  I have successfully installed Debian Wheezy on this array in the past, using an expert set up and some manual configuration during the install.  I tried repeating that process using the Jessie RC1 installer, and it failed.<br>> > <br>> > For Wheezy, I used the image Debian GNU/Linux 7.8.0 "Wheezy" - Official amd64 CD Binary-1 20150110-14:43<br>> > <br>> > For Jessie, I used the image Debian GNU/Linux Jessie-DI-rc1 "Jessie" - Official RC amd64 CD Binary-1 20150109-01:06<br>> > <br>> > Both images were written to a USB stick, and both installers were booted in UEFI mode.<br>> > <br>> > To do the installation, I run through the first few steps of the expert install, up to and including detecting disks.  At that point, I switch to the console (Alt-F2), to assemble and start the software arrays.  First I load the kernel modules for RAID, which also loads the md_mod module, and then I execute mdadm to assemble and start the arrays.<br>> > <br>> > When I do this in Wheezy, it successfully builds the arrays and starts them:<br>> > <br>> > ~ # modprobe raid0<br>> > ~ # mdadm --assemble --scan --verbose<br>> > mdadm: looking for devices for further assembly<br>> > mdadm: /dev/sdb is identified as a member of /dev/md/imsm0, slot -1.<br>> > mdadm: /dev/sda is identified as a member of /dev/md/imsm0, slot -1.<br>> > mdadm: added /dev/sda to /dev/md/imsm0 as -1<br>> > mdadm: added /dev/sdb to /dev/md/imsm0 as -1<br>> > mdadm: Container /dev/md/imsm0 has been assembled with 2 drives<br>> > mdadm: looking in container /dev/md127<br>> > mdadm: found match on member /md127/0 in /dev/md127<br>> > mdadm: Started /dev/md/Boot_0 with 2 devices<br>> > <br>> > However, following the same steps in Jessie, mdadm fails to start the array because of some file permission problem:<br>> > <br>> > ~ # modprobe raid0<br>> > ~ # mdadm --assemble --scan --verbose<br>> > mdadm: looking for devices for further assembly<br>> > mdadm: /dev/sdb is identified as a member of /dev/md/imsm0, slot -1.<br>> > mdadm: /dev/sda is identified as a member of /dev/md/imsm0, slot -1.<br>> > mdadm: added /dev/sda to /dev/md/imsm0 as -1<br>> > mdadm: added /dev/sdb to /dev/md/imsm0 as -1<br>> > mdadm: Container /dev/md/imsm0 has been assembled with 2 drives<br>> > mdadm: cannot open device /dev/md/imsm0: No such file or directory<br>> <br>> I don't see any permission problems in here, but indeed, mdadm is<br>> unable to complete the process.<br>> <br>> Since this has nothing to do with the installer really, -- you're<br>> trying to assemble the array manually using mdadm and it fails,<br>> I'm reassigning this bugreport to mdadm package.<br>> <br>> However, since I don't have hardware where I can test this, I'm<br>> tagging this as "help", -- because I can't debug it myself.  Maybe<br>> someone with the hardware will be able to understand what's going<br>> on.<br>> <br>> BTW, does /dev/md/ directory exists?<br>> <br>> Thanks,<br>> <br><div><br></div><div><br></div><div>A good question.</div><div><br></div><div><br></div><div>On WHEEZY, BEFORE running mdadm:</div><div><div>* There are no /dev/md[0-9]+ devices</div><div>* There is no /dev/md/ directory, and therefore no symlinks within it to /dev/md[0-9]+ devices</div></div><div><br></div><div><br></div><div>On JESSIE, BEFORE running mdadm:</div><div>* There are no /dev/md[0-9]+ devices</div><div>* There is no /dev/md/ directory, and therefore no symlinks within it to /dev/md[0-9]+ devices</div><div><br></div><div><br></div><div>On WHEEZY, AFTER running mdadm:</div><div>* There is a /dev/md125 device</div><div>* There is a /dev/md/ directory</div><div>* The /dev/md directory contains a symlink: Boot_0 -> ../md125</div><div>* Running parted on either the symlink or the device reports no errors, and I can proceed with installation and it works</div><div><br></div><div><br></div><div>On JESSIE, AFTER running mdadm:</div><div>* There is a /dev/md126 device</div><div>* There is NOT a /dev/md/ directory, and obviously no symlinks<br></div><div>* Running parted on the device, "parted /dev/md126" reports: </div><div>    Warning: Error fsyncing/closing /dev/md126: Input/output error</div><div>    Retry/Ignore?</div><div><br></div><div><br></div><div>Note that Jessie does create different a different device than Wheezy: /dev/md126 vs /dev/md125.  Might be relevant, might not.</div><div><br></div><div><div>Also, I discovered that I do not have to manually "modprobe raid0", running mdadm will cause the modules to be loaded; however, I am still doing it to reduce the possible sources of the problem.</div></div><div><br></div><div>Best,</div><div>BB</div><div><br></div></div>