Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Installation on RAID 1 Hardware

Ask for help with issues regarding the Installations of the Debian O/S.
Message
Author
jopeme
Posts: 14
Joined: 2022-01-17 13:13

Installation on RAID 1 Hardware

#1 Post by jopeme »

Hello.
I have a fujitsu primergy RX100 s7 with LSI 1064e raid controller. I have configured raid 1 with 2 hdd /dev/sda and /dev/sdb on bios setup and both are mirroring.
Now I am installing debian 11 and I see that it detects the raid. I partition the entire disk and the lvm in a guided way, but when I get to the step of installing grub it only shows me that I can install it in /dev/sda or in /dev/sdb and not in the raid. If I select sda it gives an error and if I select sdb it also gives an error. How can i solve this problem?

Thanks.

CwF
Global Moderator
Global Moderator
Posts: 2625
Joined: 2018-06-20 15:16
Location: Colorado
Has thanked: 41 times
Been thanked: 190 times

Re: Installation on RAID 1 Hardware

#2 Post by CwF »

Get a little usb drive(key) of any size and setup boot and grub on /dev/sdc !

jopeme
Posts: 14
Joined: 2022-01-17 13:13

Re: Installation on RAID 1 Hardware

#3 Post by jopeme »

Thanks in advance. And is there no other solution without having to use a flash drive?

CwF
Global Moderator
Global Moderator
Posts: 2625
Joined: 2018-06-20 15:16
Location: Colorado
Has thanked: 41 times
Been thanked: 190 times

Re: Installation on RAID 1 Hardware

#4 Post by CwF »

jopeme wrote: 2022-01-17 15:49flash drive?
Perhaps, I stopped building raid setups long ago and have a distaste for excess complexity.
The flash drive (key) could be upgraded to a real drive, a small ssd ($20) maybe that could also double as online file backup, point being it is the boot drive and hand offs to the overkill.

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: Installation on RAID 1 Hardware

#5 Post by p.H »

If the installer can see the physical drives then it's not hardware RAID, it's "fake RAID".
You can switch to a shell with (Ctrl+)Alt+F2 or F3 and look for details about the error in /var/log/syslog.
The installer allows to type whatever device you want to install GRUB.

jopeme
Posts: 14
Joined: 2022-01-17 13:13

Re: Installation on RAID 1 Hardware

#6 Post by jopeme »

Installation detects raid as you can see on the picture i attach. In the second picture shows only sda and sdb
Attachments
IMG20220118111014.jpg
IMG20220118111014.jpg (217.37 KiB) Viewed 11677 times
IMG20220118105021.jpg
IMG20220118105021.jpg (270.78 KiB) Viewed 11677 times

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: Installation on RAID 1 Hardware

#7 Post by p.H »

The partitioning screen clearly shows that it is actually software RAID. You may consider using plain Linux software RAID instead.
As mentioned previously, you can try to set the boot device manually in the GRUB installer screen. Here it should be /dev/md126.
Last edited by p.H on 2022-01-18 14:24, edited 1 time in total.

jopeme
Posts: 14
Joined: 2022-01-17 13:13

Re: Installation on RAID 1 Hardware

#8 Post by jopeme »

Ok. I will try linux software raid instead.
Regards.

jopeme
Posts: 14
Joined: 2022-01-17 13:13

Re: Installation on RAID 1 Hardware

#9 Post by jopeme »

Finally I have created two partitions. The first mounted on / and the second of type swap.
I have mounted the raid and everything seems to be ok, but I have the following doubt: when I look at /proc/mdstat I see that the md1 (swap) partition is auto-read-only and rsync=pending.
It is right? Have I configured something wrong?

Another question is that if the disk where the boot is mounted fails, will the other disk automatically boot or should I do something else?
Thanks.

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: Installation on RAID 1 Hardware

#10 Post by p.H »

A RAID array is assembled auto-read-only until the first write.
For boot redundancy, the boot loader must be installed on both drives.
Can you post the output of the following commands ?

Code: Select all

debconf-show grub-pc | grep install_devices
cat /proc/mdstat
lsblk
blkid
cat /proc/swaps

jopeme
Posts: 14
Joined: 2022-01-17 13:13

Re: Installation on RAID 1 Hardware

#11 Post by jopeme »

Here is the output of the commands you say:

Thanks a lot.
Attachments
WIN_20220127_09_11_57_Pro2.jpg
WIN_20220127_09_11_57_Pro2.jpg (487.3 KiB) Viewed 11507 times

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: Installation on RAID 1 Hardware

#12 Post by p.H »

The output of debconf-show indicates that the grub-pc package is currently configured to install GRUB only on one disk. In order to set up persistent boot redundancy, you can execute

Code: Select all

dpkg-reconfigure grub-pc
and select both drives in the interface. You could manually run grub-install on the other drive but then GRUB on that drive would not be updated automatically after a grub-pc package upgrade, causing possible mismatch with GRUB modules installed in /boot/grub.

/proc/swaps indicates that the swap area in /dev/md1 is active but is not used at all, so no data have been written yet and explains why /proc/mdstat indicates that the array is in auto-read-only mode.

jopeme
Posts: 14
Joined: 2022-01-17 13:13

Re: Installation on RAID 1 Hardware

#13 Post by jopeme »

Thanks a lot. I will run command you say
Regards.

jopeme
Posts: 14
Joined: 2022-01-17 13:13

Re: Installation on RAID 1 Hardware

#14 Post by jopeme »

Command shows now three disk: sda,sdb and md0
and seems to be grub install on sdb . Should I install it only on disk a and b or also on md0?
Attachments
WIN_20220128_11_11_48_Pro2.jpg
WIN_20220128_11_11_48_Pro2.jpg (168.08 KiB) Viewed 11454 times

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: Installation on RAID 1 Hardware

#15 Post by p.H »

Only on sda and sdb. The BIOS cannot see partition-based Linux RAID arrays, so there is no point in installing GRUB in /dev/md0.

jopeme
Posts: 14
Joined: 2022-01-17 13:13

Re: Installation on RAID 1 Hardware

#16 Post by jopeme »

Now i don't know what happen but when i execute the command i see this options but i have no option to select disk.
Attachments
LOqbI.png
LOqbI.png (19.1 KiB) Viewed 11431 times
Z7qKA.png
Z7qKA.png (24.09 KiB) Viewed 11431 times

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: Installation on RAID 1 Hardware

#17 Post by p.H »

Try to purge and reinstall grub-pc.

Code: Select all

dpkg --purge grub-pc
apt-get install grub-pc

jopeme
Posts: 14
Joined: 2022-01-17 13:13

Re: Installation on RAID 1 Hardware

#18 Post by jopeme »

What must i write when in the first screen "quiet" ? or .....

jopeme
Posts: 14
Joined: 2022-01-17 13:13

Re: Installation on RAID 1 Hardware

#19 Post by jopeme »

I used the upgrade-from-grub-legacy command because the core.img file was missing and it asked me to select the disks to boot from. I have selected sda and sdb. I don't know if this is enough or if I need to run dpkg reconfigure grub-pc again

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: Installation on RAID 1 Hardware

#20 Post by p.H »

jopeme wrote: 2022-01-28 19:22 What must i write when in the first screen "quiet" ? or .....
Just keep the current value.
jopeme wrote: 2022-01-28 19:42 I used the upgrade-from-grub-legacy command because the core.img file was missing and it asked me to select the disks to boot from. I have selected sda and sdb. I don't know if this is enough or if I need to run dpkg reconfigure grub-pc again
How do you know core.img was missing ?
I don't know what upgrade-from-legacy does. You can check with

Code: Select all

debconf-show grub-pc | grep installed

Post Reply