Hello! On my server PC i have Centos 7 installed. CentOS Linux release 7.6.1810. There are four arrays RAID1 (software RAID) md124 - /boot/efi md125 - /boot md126 - /bd md127 - / I have configured booting from both drives, everything works fine if both drives are connected. But if I disable any drive from which RAID1 is built the system crashes, there is a partial boot and as a result the Entering emergency mode. By all rules RAID1 in case of similar failure of one of disks the system has to recognize this moment at loading, analyze that from the array only one disk is available and forcibly assemble inactive RAID array in case it is degraded in the mode when the second disk is missing may be... In Debian system this problem does not occur, the initramfs runs the script /scripts/local-block/mdadm builds the array from one dostoinogo disc ( lack of drive is not important, it's either a drive failure or disconnection from power-random or not random). In this script You can see the following ...... if [ "$COUNT" = "$MAX" ] then # Poor man's mdadm-last-resort at .service for incremental devices mdadm -q --run /dev/md?* # And last try for all others mdadm -q --assemble --scan --run rm -f /run/count.mdadm.initrd .... Why in server Centos 7 this problem is still not solved? Will this be fixed in upcoming releases? Best Regards AndersonGH
On 4/3/19 5:15 AM, Konstantin Msk via CentOS wrote:> Hello! > > On my server PC i have Centos 7 installed. > CentOS Linux release 7.6.1810. > There are four arrays RAID1 (software RAID) > md124 - /boot/efi > md125 - /boot > md126 - /bd > md127 - / > > I have configured booting from both drives, everything works fine if both drives are connected. > But if I disable any drive from which RAID1 is built the system crashes, there is a partial boot and as a result the Entering emergency mode. > By all rules RAID1 in case of similar failure of one of disks the system has to recognize this moment at loading, analyze that from the array only one disk is available and forcibly assemble inactive RAID array in case it is degraded in the mode when the second disk is missing may be...[please use a subject appropriate to the message.] I believe you are hitting this bug: ? https://bugzilla.redhat.com/show_bug.cgi?id=1451660 That is, if a drive is unplugged while the system is not running, mdadm will not reassemble the array on boot. If a drive fails while the system is running, mdadm should fail it out of the array and the system will boot properly. Hoping for a fix in the next minor release.
On 4/3/19 2:15 AM, Konstantin Msk via CentOS wrote:> But if I disable any drive from which RAID1 is built the system crashes, there is a partial boot and as a result the Entering emergency mode.I haven't seen that behavior in the past.? Do you have any logs or console output from that event?
Hello! rdsosreport.txt file from emergency mode https://www.asuswebstorage.com/navigate/a/#/s/BBB3BEB3EFE2428BB85BF35ED38197484 ? journalctl -xe https://www.asuswebstorage.com/navigate/a/#/s/99FBCF1467F647CEAD2087697B779AE44 ? and console https://www.asuswebstorage.com/navigate/a/#/s/E6FBFEB42CF34C31B2F533560A624AF24 ? https://www.asuswebstorage.com/navigate/a/#/s/45AE76C7B5114916BA38EF7940F2FA254 ? AndersonGH>???????, 4 ?????? 2019, 2:44 +03:00 ?? Gordon Messmer <gordon.messmer at gmail.com>: > >On 4/3/19 2:15 AM, Konstantin Msk via CentOS wrote: >> But if I disable any drive from which RAID1 is built the system crashes, there is a partial boot and as a result the Entering emergency mode. > > >I haven't seen that behavior in the past.? Do you have any logs or >console output from that event? > > >_______________________________________________ >CentOS mailing list >CentOS at centos.org >https://lists.centos.org/mailman/listinfo/centos-- Konstantin Msk
Right, that's my problem. a drive is unplugged... while the system is not running mdadm will not reassemble the array on boot. Red Hat Bugzilla ? Bug 1451660 Write that Fixed In Version:dracut-033-546.el7 I have drucat version 033-554.el7 and this bag don't fixed!>I believe you are hitting this bug: > > ? https://bugzilla.redhat.com/show_bug.cgi?id=1451660 > >That is, if a drive is unplugged while the system is not running, mdadm will not reassemble the array on boot. > >If a drive fails while the system is running, mdadm should fail it out of the array and the system will boot properly. > >Hoping for a fix in the next minor release.