Sun, 15 Nov 2020 14:16:48 -0800 Gordon Messmer <gordon.messmer at gmail.com>:> On 11/15/20 3:32 AM, ?ukasz Posadowski wrote: > > Do anyone can suggest what else I forgot to do? > > > Use metadata version 1.2 instead of 0.9. > > You need for the filesystem to be not visible until after the RAID is > assembled, and the easiest way to do that is to put the metadata at > the beginning of the drive and the partition table inside the RAID > volume. > > With metadata version 0.9, the partition table is technically inside > the volume, but it's at the same offset that it would be for a disk > with no RAID volume, so it can be recognized before the volume is > assembled.Thanks, I'll try that. I'm use to metadata 0.9, because GRUB have (had?) some issue with the newer ones. -- ?ukasz Posadowski
Hi, I am curious, what config your /etc/grub2.cfg looks like? does it have the correct root partition specified under "set root=" or in linux option or how it looks in boot loader during a start? Thanks On Mon, 16 Nov 2020 at 08:41, ?ukasz Posadowski <mail at lukaszposadowski.pl> wrote:> Sun, 15 Nov 2020 14:16:48 -0800 > Gordon Messmer <gordon.messmer at gmail.com>: > > > On 11/15/20 3:32 AM, ?ukasz Posadowski wrote: > > > Do anyone can suggest what else I forgot to do? > > > > > > Use metadata version 1.2 instead of 0.9. > > > > You need for the filesystem to be not visible until after the RAID is > > assembled, and the easiest way to do that is to put the metadata at > > the beginning of the drive and the partition table inside the RAID > > volume. > > > > With metadata version 0.9, the partition table is technically inside > > the volume, but it's at the same offset that it would be for a disk > > with no RAID volume, so it can be recognized before the volume is > > assembled. > > Thanks, I'll try that. I'm use to metadata 0.9, because GRUB have > (had?) some issue with the newer ones. > > -- > ?ukasz Posadowski > _______________________________________________ > CentOS mailing list > CentOS at centos.org > https://lists.centos.org/mailman/listinfo/centos >-- Ruslanas G?ibovskis +370 6030 7030
On 11/15/20 10:40 PM, ?ukasz Posadowski wrote:> Sun, 15 Nov 2020 14:16:48 -0800 Gordon Messmer <gordon.messmer at gmail.com>: > > >> Use metadata version 1.2 instead of 0.9. >> > Thanks, I'll try that. I'm use to metadata 0.9, because GRUB have > (had?) some issue with the newer ones.If that doesn't work, and you need to use metadata 0.9, then check /etc/default/grub and make sure that GRUB_CMDLINE_LINUX contains "rd.md.uuid=<THE UUID OF YOUR md0>".
Mon, 16 Nov 2020 14:28:54 -0800 Gordon Messmer <gordon.messmer at gmail.com>:> On 11/15/20 10:40 PM, ?ukasz Posadowski wrote: > > > Sun, 15 Nov 2020 14:16:48 -0800 Gordon Messmer > > <gordon.messmer at gmail.com>: > > > > > >> Use metadata version 1.2 instead of 0.9. > >> > > Thanks, I'll try that. I'm use to metadata 0.9, because GRUB have > > (had?) some issue with the newer ones. > > > If that doesn't work, and you need to use metadata 0.9, then check > /etc/default/grub and make sure that GRUB_CMDLINE_LINUX contains > "rd.md.uuid=<THE UUID OF YOUR md0>".T.H.A.N.K Y.O.U. :) I was sure I had to pass uuid of the partition, not md0. It is working now. One last thing: since Linux Rescue CD does not recognize selinux, / mounted itself as read-only. Disabling SeLinux helped. I think I need to relabel all the files on a new host. So generally: - edit /etc/default/grub and grub2-mkconfig, - generate mdadm.conf (I think a copy of it resides inside initramfs), - fstab (root mounts anyway, so just for swap patition), - disable selinux, - generate initramfs with dracut. Big thanks to all of you. It was rough, but it's done. -- ?ukasz Posadowski