-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rocky Linux does not start after migrate2linux (sysroot on software RAID 1) #163
Comments
Let me know what you find out. This will likely at least be a candidate for a note in the "known issues" section of the README file, that is if it's not feasible to fix it directly in the script itself. |
This should fix this in the script: #162 |
I failed to reproduce the problem on a test VM: While the problem is still present on a server I have and I need to assemble and mount the raid at every boot on the new host everything works properly and the system boot without errors. On the old production server I have:
On the console I see no running md devices at all. Step to (try to) reproduce: Before you can install CentOS 8 you need a vm with two disks where you will create some raid before install. Start the installer, ctrl+alt+F2, do some fdisk and mdadm: For semplicity make identical layout on the two disks:
Then create the raid:
Reboot or it may see old disk layout or wrong /dev/md/3 size. Restart the installer. Choose custom installation destination and use existing /dev/md/3 for root (you will see it as "Unknown/Unknown/3"), choose reformat, ext4 and /, for boot and swap may use stand alone partition previously created. Install CentOS on top of it, with root on a /dev/md/3 (note that on CentOS it will be called "/dev/md/3"). Now you have a working CentOS with root on raid:
Let's migrate to Rocky:
After some time:
This is almost the same thing I have done some year ago on the production server, except it has much more partitions. |
Great, but it is still not merged I don't understand why I'm failing to reproduce it. |
Could you please try it to check if it works for you? |
I just noticed the old server, installed at the time of CentOS 8.0, I have this:
Can rd.auto=1 be the cause of the problem? I don't remember to have added this option manually years ago. On the new VM just installed with CentOS 8.5 and then migrated to Rocky I have rd.md.uuid=2421ed30:2315ef0b:861800b6:f99953d0 instead. |
Yes, I'm going to try asap, but not now. Maybe late in the weekend (it's a production server). |
I can confirm it fixed my boot issue. Now the server boot normally. Thank you! |
We use >50 server with amd epic cpu. All use software raid, centos 8.5 and by every migration test the servers crash / hang after the REBOOT. Our solution was a new install. grub2-mkconfig -o /boot/grub2/grub.cfg |
This pull request fixes exactly this issue #162 |
I recently migrated a CentOS 8 server with software RAID 1.
The migrate2rocky script worked flawlessly but after reboot the server failed to start because of the switch-root service and you will end up in the recovery console.
I managed to start the server with this:
mdadm --assemble --scan
mount /dev/md3 /sysroot
logout
After this the server start normally and everything works.
I do not have the proof but it seems to me that md devices now have different naming from CentOS but I can't understand why.
I'm going to replicate this problem again on a vm to collect more details.
The text was updated successfully, but these errors were encountered: