View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0007446||CentOS-7||redhat-upgrade-tool||public||2014-07-30 10:31||2014-09-10 11:04|
|Summary||0007446: redhat-upgrade-tool fails when using md RAID1 partitions|
|Description||On a system installed from scratch with Centos6, the disks were setup with md raid1 as such:|
# cat /proc/mdstat
Personalities : [raid1]
md2 : active raid1 sda5 sdb5
387454784 blocks super 1.1 [2/2] [UU]
bitmap: 2/3 pages [8KB], 65536KB chunk
md1 : active raid1 sdb2 sda2
67075968 blocks super 1.1 [2/2] [UU]
bitmap: 1/1 pages [4KB], 65536KB chunk
md0 : active raid1 sdb1 sda1
102336 blocks super 1.0 [2/2] [UU]
redhat-upgrade-tool prepares the system for upgrade to Centos7.
When rebooting into the upgrade kernel, it cannot mount the paritions. From the error message it seems, the upgrade kernel can only handle version-0 superblocks. However Centos6 installer creates version-1 superblocks.
There is no way to convert the superblocks. Upgrade fails.
I could not save the actual logs, because USB also didnt work.
|Steps To Reproduce||Install Centos6 with md-raid1 disks.|
redhat-upgrade-tool --network 7.0 --instrepo ...somerepo...os/x86_64/ --force
reboot into upgrade kernel
Upgrade kernel cannot mount existing partitions.
|Additional Information||USB in the upgrade kernel also didnt work. So i could not save logs.|
This was reproduced on two HP DL380pGen8 servers.
redhat-upgrade-tool is version 0.7.22-1
|Tags||No tags attached.|
On a system with md version 0.9 partitions, the upgrade worked partially.
This system was installed with Centos5 installer, creating md-Raid1 version 0.9 partitions. Later it was upgraded to Centos6 via upgradeany method.
Upgrading this system to Centos7 with redhat-upgrade-tool worked partially.
The upgrade started, but the upgrade-kernel did not detect the md partitions.
In the F2 dracut console i did a "mdadm --assemble --scan", followed by "exit".
Then the upgrade process continued until finished.
However grub2 was not activated.
At reboot into the upgraded system, it hang for several minutes until giving a dracut shell. There "mdadm --assemble --scan", followed by "exit" continued the boot.
Then i manually activated grub2:
"grub2-mkconfig -o /boot/grub2/grub.cfg"
"dracut --force --mdadmconf"
Hope this helps someone.