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
Installation on RAID 1 Hardware
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.
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.
Re: Installation on RAID 1 Hardware
Thanks in advance. And is there no other solution without having to use a flash drive?
-
- Global Moderator
- Posts: 2709
- Joined: 2018-06-20 15:16
- Location: Colorado
- Has thanked: 41 times
- Been thanked: 201 times
Re: Installation on RAID 1 Hardware
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.
-
- Global Moderator
- Posts: 3049
- Joined: 2017-09-17 07:12
- Has thanked: 5 times
- Been thanked: 132 times
Re: Installation on RAID 1 Hardware
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.
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.
Re: Installation on RAID 1 Hardware
Installation detects raid as you can see on the picture i attach. In the second picture shows only sda and sdb
- Attachments
-
- IMG20220118111014.jpg (217.37 KiB) Viewed 11897 times
-
- IMG20220118105021.jpg (270.78 KiB) Viewed 11897 times
-
- Global Moderator
- Posts: 3049
- Joined: 2017-09-17 07:12
- Has thanked: 5 times
- Been thanked: 132 times
Re: Installation on RAID 1 Hardware
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.
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.
Re: Installation on RAID 1 Hardware
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.
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.
-
- Global Moderator
- Posts: 3049
- Joined: 2017-09-17 07:12
- Has thanked: 5 times
- Been thanked: 132 times
Re: Installation on RAID 1 Hardware
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 ?
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
Re: Installation on RAID 1 Hardware
Here is the output of the commands you say:
Thanks a lot.
Thanks a lot.
- Attachments
-
- WIN_20220127_09_11_57_Pro2.jpg (487.3 KiB) Viewed 11727 times
-
- Global Moderator
- Posts: 3049
- Joined: 2017-09-17 07:12
- Has thanked: 5 times
- Been thanked: 132 times
Re: Installation on RAID 1 Hardware
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
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.
Code: Select all
dpkg-reconfigure grub-pc
/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.
Re: Installation on RAID 1 Hardware
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?
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 (168.08 KiB) Viewed 11674 times
Re: Installation on RAID 1 Hardware
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 (19.1 KiB) Viewed 11651 times
-
- Z7qKA.png (24.09 KiB) Viewed 11651 times
-
- Global Moderator
- Posts: 3049
- Joined: 2017-09-17 07:12
- Has thanked: 5 times
- Been thanked: 132 times
Re: Installation on RAID 1 Hardware
Try to purge and reinstall grub-pc.
Code: Select all
dpkg --purge grub-pc
apt-get install grub-pc
Re: Installation on RAID 1 Hardware
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
-
- Global Moderator
- Posts: 3049
- Joined: 2017-09-17 07:12
- Has thanked: 5 times
- Been thanked: 132 times
Re: Installation on RAID 1 Hardware
Just keep the current value.
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