On 2017-01-13 18:14, Wols Lists wrote:
On 13/01/17 12:57, Carlos E. R. wrote:
On 2017-01-13 12:48, Wols Lists wrote:
Because linux can no longer assemble arrays itself, that is why the initramfs is needed for anything other said v1 mirror - said mirror looking to the kernel like any other normal file system.
Mmm. initramfs holds kernel modules.
Just remembered. You have to mark partititions to be of raid type in order for the raids to be assembled automatically.
/dev/sdd15 2598531072 2762371071 163840000 78.1G fd Linux raid autodetect
As I said, AUTOMATIC ASSEMBLY NO LONGER WORKS. It's a kernel feature that was removed some time in the 3.x series. "type raid" no longer means anything - all my partitions are type linux (8300 or 8200).
And once you invoke mdadm - which you NEED to do for modern kernels - partition type is ignored.
So sorry, your advice *was* correct, but times have moved on and it's been rendered obsolete and redundant :-(
But I don't invoke mdadm, and they mount. Something may invoke it, but it is not me. 2016-12-24 00:54:38+01:00 - Booting the system now ================================================================================ Linux Telcontar 3.12.62-55-desktop #1 SMP PREEMPT Thu Oct 20 08:47:11 UTC 2016 (b0aa9a6) x86_64 x86_64 x86_64 GNU/Linux <5.6> 2016-12-24 00:54:40 Telcontar rsyslogd - - - [origin software="rsyslogd" swVersion="7.4.7" x-pid="1306" x-info="http://www.rsyslog.com"] start <3.6> 2016-12-24 00:54:40 Telcontar systemd-modules-load 354 - - Inserted module 'sg' <3.6> 2016-12-24 00:54:40 Telcontar systemd 1 - - Started Load Kernel Modules. <3.6> 2016-12-24 00:54:40 Telcontar systemd 1 - - Mounted FUSE Control File System. <3.6> 2016-12-24 00:54:40 Telcontar systemd 1 - - Mounting Configuration File System... <0.4> 2016-12-24 00:54:40 Telcontar kernel - - - [ 5.195005] raid6: sse2x1 4964 MB/s <0.4> 2016-12-24 00:54:40 Telcontar kernel - - - [ 5.217007] raid6: sse2x2 6355 MB/s <0.4> 2016-12-24 00:54:40 Telcontar kernel - - - [ 5.239009] raid6: sse2x4 8371 MB/s <0.4> 2016-12-24 00:54:40 Telcontar kernel - - - [ 5.244340] raid6: using algorithm sse2x4 (8371 MB/s) <0.4> 2016-12-24 00:54:40 Telcontar kernel - - - [ 5.249662] raid6: using ssse3x2 recovery algorithm <0.6> 2016-12-24 00:54:40 Telcontar kernel - - - [ 17.826761] md: raid6 personality registered for level 6 <0.6> 2016-12-24 00:54:40 Telcontar kernel - - - [ 17.832497] md: raid5 personality registered for level 5 <0.6> 2016-12-24 00:54:40 Telcontar kernel - - - [ 17.838093] md: raid4 personality registered for level 4 <0.6> 2016-12-24 00:54:40 Telcontar kernel - - - [ 17.843735] md/raid:md0: device sdb10 operational as raid disk 1 <0.6> 2016-12-24 00:54:40 Telcontar kernel - - - [ 17.849036] md/raid:md0: device sdc15 operational as raid disk 2 <0.6> 2016-12-24 00:54:40 Telcontar kernel - - - [ 17.854467] md/raid:md0: device sda11 operational as raid disk 0 <0.6> 2016-12-24 00:54:40 Telcontar kernel - - - [ 17.860133] md/raid:md0: allocated 3298kB <0.6> 2016-12-24 00:54:40 Telcontar kernel - - - [ 17.865329] md/raid:md0: raid level 5 active with 3 out of 3 devices, algorithm 2 <0.7> 2016-12-24 00:54:40 Telcontar kernel - - - [ 17.870550] RAID conf printout: <0.7> 2016-12-24 00:54:40 Telcontar kernel - - - [ 17.870551] --- level:5 rd:3 wd:3 <0.7> 2016-12-24 00:54:40 Telcontar kernel - - - [ 17.870553] disk 0, o:1, dev:sda11 <0.7> 2016-12-24 00:54:40 Telcontar kernel - - - [ 17.870554] disk 1, o:1, dev:sdb10 <0.7> 2016-12-24 00:54:40 Telcontar kernel - - - [ 17.870556] disk 2, o:1, dev:sdc15 <0.6> 2016-12-24 00:54:40 Telcontar kernel - - - [ 17.870918] created bitmap (1 pages) for device md0 <0.6> 2016-12-24 00:54:40 Telcontar kernel - - - [ 17.876376] md0: bitmap initialized from disk: read 1 pages, set 0 of 193 bits <0.6> 2016-12-24 00:54:40 Telcontar kernel - - - [ 17.974409] md0: detected capacity change from 0 to 25777668096 <0.6> 2016-12-24 00:54:40 Telcontar kernel - - - [ 17.997321] Adding 15727612k swap on /dev/sda3. Priority:1 extents:1 across:15727612k FS <3.6> 2016-12-24 00:55:00 Telcontar systemd 1 - - Starting LSB: mdadmd daemon monitoring MD devices... <3.6> 2016-12-24 00:55:00 Telcontar echo 3716 - - Starting virus-scanner (amavisd-new): <3.6> 2016-12-24 00:55:01 Telcontar mdadmd 3717 - - Starting mdadmd ..done mdadm is called 20 seconds after the array appears on boot. According to the log above, it is the kernel directly who does the assembly. -- Cheers / Saludos, Carlos E. R. (from 42.2 x86_64 "Malachite" at Telcontar)