Installing OpenSUSE 13.2 with Raid1 by software is not working.

Hi guys!

I need help please, all started when i was needing make a disk upgrade of two disk driver from the 2TB to the 4TB, i not get doing the change of the disk without a new instalation, i know it’s not a better way, but how i not got way to the fix the boot problem, so I did that.

Right now i’m trying a new clean instalation in new disks using OpenSUSE 13.2 with Raid1 by software, it’s not working. I got bootloader problem’s, it’s happening on the installation end.

Anyone have any sugestion?

My system partitios is:

disk1= sda
disk2= sdb

sda= sda1 300MB and sda2 3,6TB Linux Raid
sdb= sdb1 300MB and sdb2 3,6TB Linux Raid

md= sda1 and sdb1 ext3 /boot
md= sda2 and sdb2 on LVM group called System

logical volumes:
swap 4GB /swap
root 200GB /
home 3TB /home

Regard,
Jose Luiz

Explain what problem you have.

Hi!

I do all process of installation, when start the recording grub2 on my /dev/md0 (containing sda1 and sdb1 partitions in raid1 mirroring) i receive a error message ask me if i want try do the grub configuration again or not.

If i not use raid1 in my partition for /boot and just use for /swap / and /home partition i got success with installation.

Cheers! Thanks for reply!

grub2 does not support installation on Linux MD device and installer should not propose it either. You need to give more information what you did here.

Just install bootloader on MBR of the first disk. This should work.

Are you saying me that the grub2 not have support for Linux MD, it not have sense, because the installation wizard give me 0xFD Linux Raid autodetect option and allow than i mount a /boot partition in /dev/md0 device.

So in this case, you think i have installing the bootloader in two disk, in the /dev/sda1 and /dev/sdb1 partitions instead /dev/md0?

No, I am not. grub2 does have support for Linux MD.

So in this case, you think i have installing the bootloader in two disk, in the /dev/sda1 and /dev/sdb1 partitions instead /dev/md0?

Yes. Installer is expected to do it automatically when it detects RAID1 but at least in earlier versions it did not work. You may try to go to bootloader properties on summary screen and look if it offers “Enable Redundancy for MD Array”; then check it, it should install bootloader in MBR of both disks.

If not, just install bootloader in the first disk, then after system is installed go to bootloader properties and

  1. select no bootloader; save and exit
  2. go into bootloader again and select grub2
  3. now
    it should detect RAID1 and offer to enable redundancy 1. save bootloader configuration - it will write bootloader to both disks and will also do it on future updates

In one the times than i did the installation i saw the option “Enable Redundancy for MD Array” on bootloader properties on summary screen, i marked the box, but not work.

If do the installation of system with /dev/sda1 and /dev/sdb1 without raid, just ext4 filesystem on the native linux instead the Linux Raid Autodetect, the bootloader will be recorded in my /dev/sda1 partition (if i choose it), after installation can i turn that partition Linux Native in Linux Raid make a array and add my /dev/sdb1 to creating the /dev/md0? So mark “Enable Redundancy for MD Array” on bootloader from Yast and reboot my system?

“Not work” does not give much information. On which device you are trying to install bootloader? Please attach screenshot of bootloader settings.

Had a thought, a 2 gig drive can be partitioned using the older DOS/MS partition method but 2 gigs is max. For a 4 gig drive it must us GPT partitioning to work right. This might be were the problem is.

Good hint. In this case installing in MBR needs bios_boot partition and it is not mentioned. Then bootloader installation would fail indeed.

Hello guys! Good night!

Let’s go…

What i want do?
R: I have 2 physical disks from 4 TB each, using a software raid i want do a mirroring (raid1), so i partitioned my disks of the follows equally:

Disk 1 = sda
Size= 3.64TB

Partition= sda1
File System= no mount point
Type= Linux Raid
Size= 297MB

Partition= sda2
File System= swap
Type= Linux Swap
Size= 4GB

Partition= sda3
File System= no mount point
Type= Linux Raid
Size= 200GB

Partition= sda4
File System= no mount point
Type= Linux Raid
Size= 3.44GB

Disk 2 = sdb
Size= 3.64TB

Partition= sdb1
File System= ext4
Type= Linux Raid
Size= 297MB

Partition= sdb2
File System= swap
Type= Linux Swap
Size= 4GB

Partition= sdb3
File System= no mount point
Type= Linux Raid
Size= 200GB

Partition= sdb4
File System= no mount point
Type= Linux Raid
Size= 3.44GB

Then, i created the arrays of the follows way:

/dev/md0= sda1 and sdb1
File System= ext4
Mount point= /boot

/dev/md1= sda2 and sdb2
File System= swap
Mount point= /swap

/dev/md2= sda3 and sdb3
File System= ext4
Mount point= /

/dev/md1= sda4 and sdb4
File System= ext4
Mount point= /home

ok here? Then i’ll go to the next step for instalation, here was when it showed me the summary instalation screen, just enble my ssh and change the boot than would by default in /dev/sda to the /dev/md0 and mark the option “Enable Redundancy for MD Array” after that step the instalation follow until 96% when i receive the error message
saying tha there is a error and ask me if wil want try again the setting the grub or no, if i choose no it going reboot my system and stop instalation.

I’m attaching some screen for help understand my situation. How the first way not work i’m using the /dev/sda1 and /dev/sdb1 partitions without Raid1, only Linux Native type and ext4 mount point /boot is on /dev/sda1 /dev/sdb1 not have a mount point and isn’t in use.

https://ci4.googleusercontent.com/proxy/ndqdX_9wobnu-RjM49kfNI3APIC-mqYCsABxE-pwnDF0KARcbuLrEqHQOL3a2UIMk5zeHm5qivM=s0-d-e1-ft#http://i57.tinypic.com/2i70r35.png

https://ci4.googleusercontent.com/proxy/ROfkV2kGGASeQw5sBQgwOJ9x7iEU280ocyGEkUISOu-8Jk7j_qtaliR1jkhPF1jdoWOP6LlVf_M=s0-d-e1-ft#http://i58.tinypic.com/11ui7br.png

https://ci5.googleusercontent.com/proxy/lUPNcXygi5DR8tSi0ADZXBVJUkgn7w6KYhTV6ykA6KJisLg3RL1qcPNdDVIJuyUmwY8Fbav5Yfs=s0-d-e1-ft#http://i61.tinypic.com/30lmjd5.png

https://ci6.googleusercontent.com/proxy/96cVh9iFAifSSs0_OB6IIe0mpvy0GmhXQsRvSRxsIMPP5U87Fgl6Q8-Yku9g7zTjyaRjMHkTP-E=s0-d-e1-ft#http://i58.tinypic.com/21m5kyf.png

I think right now it’s more clear!

Show fdisk -l that will tell if it is GPT or not on drivers larger then 2 gig you must use GPT partitioning.

Also not clear why the LVM are you encrypting??

If you are going to mirror disks, you should mirror everything. Otherwise if sda2 has problems system will panic/crash.

ok here? Then i’ll go to the next step for instalation, here was when it showed me the summary instalation screen, just enble my ssh and change the boot than would by default in /dev/sda to the /dev/md0

I already told you that it is impossible. You can install in MBR of physical disk only.

and mark the option “Enable Redundancy for MD Array”

Your screenshot does not show this option, nor is this option even possible when you told it to install bootloader on /dev/md0.

after that step the instalation follow until 96% when i receive the error message

You should actually show this error message next time.

Anyway, in your case installer should default to “Boot from Master Boot Record” with “Enable Redundancy for MD Array” switched off. You just need to enable it and it should install grub in MBR of both disks. It is possible that installer gets confused by one partition not being mirrored though. But as you manually changed bootloader settings before taking screenshot we do not know it.

Unrelated, but - to get normal line drawing in text terminal use export NCURSES_NO_UTF8_ACS=1.

Hello! Wassup?

Follows my fdisk- l print!

http://i57.tinypic.com/6rn969.png

http://i58.tinypic.com/a23ara.png

http://i62.tinypic.com/2gwurms.png

My /dev/sda is not have a problem, i make them like a Linux Raid type, but when you say to the system to format it using swap file system and use the /swap mount point, after it, it is shown this way.

How i say in the early, in this moment I not do using the /dev/sda and /dev/sdb like Raid (/dev/md0), i’m using that’s like separated disks and separated partitions once than the /boot is only recorded in /dev/sda.

Just is workin like Raid the swap, /root and /home!