[CentOS] RAID1 boot issue

Fri Apr 5 08:43:03 UTC 2019
Konstantin Msk <konstantin_msk at mail.ru>

Hello everybody!
I have good news, the problem is gone.

For everyone who has this problem, I did the following

I use rpm...

Get list of installed packages
# rpm -qa | grep "dracut"
dracut-033-554.el7.x86_64
dracut-network-033-554.el7.x86_64
dracut-config-rescue-033-554.el7.x86_64

Delete packages

# rpm -e --nodeps "dracut-config-rescue-033-554.el7.x86_64"
# rpm -e --nodeps "dracut-network-033-554.el7.x86_64"
# rpm -e --nodeps "dracut-033-554.el7.x86_64"
 I download old packages in local directory and install it
# rpm -ivh dracut-033-535.el7_5.1.x86_64.rpm
Preparation... ################################# [100%]
Update / install...
1:dracut-033-535.el7_5.1 ################################# [100%]
# rpm -ivh dracut-config-rescue-033-535.el7_5.1.x86_64.rpm
Preparation... ################################# [100%]
Update / install...
1:dracut-config-rescue-033-535.el7_################################# [100%]
# rpm -ivh dracut-network-033-535.el7_5.1.x86_64.rpm
Preparation... ################################# [100%]
Update / install...
1:dracut-network-033-535.el7_5.1 ################################# [100%]

check installed...
# rpm -qa | grep "dracut"
dracut-033-535.el7_5.1.x86_64
dracut-network-033-535.el7_5.1.x86_64
dracut-config-rescue-033-535.el7_5.1.x86_64
After that, the system successfully booted with one disk disabled. The array  was assembled at one disk . After connecting and booting with two attached disks manually add  disconnected partitions array. 
 
# mdadm /dev/md124 --add /dev/sda1
mdadm: hot added /dev/sda1
# mdadm /dev/md125 --add /dev/sda2
mdadm: hot added /dev/sda2
# mdadm /dev/md126 --add /dev/sda3
mdadm: re-added /dev/sda3
# mdadm /dev/md127 --add /dev/sda4
mdadm: re-added /dev/sda4

And waiting for the end of the recovery process for all arrays
# cat /proc/mdstat

Thanks for your quick help!

Best Regards
AndersonGH

>Четверг,  4 апреля 2019, 17:24 +03:00 от Gordon Messmer <gordon.messmer at gmail.com>:
>
>On 4/4/19 6:17 AM, Konstantin Msk via CentOS wrote:
>> 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
>
>That's probably a mistake.  The bug isn't closed.
>
>
>> I have drucat version 033-554.el7 and this bag don't fixed!
>
>
>One of the suggested work-arounds in that bug report is to revert to an 
>older version of dracut and rebuild your initrd.  You'd need to get:
>
>dracut-033-535.el7.x86_64.rpm 
>dracut-config-rescue-033-535.el7.x86_64.rpm 
>dracut-network-033-535.el7.x86_64.rpm kexec-tools-2.0.15-13.el7.x86_64.rpm
>
>...from the vault:  http://vault.centos.org/7.5.1804/updates/x86_64/Packages/
>
>Downgrade those packages, and then run "dracut -f" to rebuild the initrd 
>for your kernel.
>
>_______________________________________________
>CentOS mailing list
>CentOS at centos.org
>https://lists.centos.org/mailman/listinfo/centos