ON
Ctrl+M
LSI Software RAID Configuration Utility
Configure
Clean Configuration
Debian Live KDE Konsole
sudo apt-get update
sudo apt-get install dmraid
sudo /usr/sbin/dmraid -r
/usr/sbin/dmraid -r
sudo wipefs -n /dev/sda
sudo wipefs -n /dev/sdb
(DEVICE OFFSET TYPE UUID LABEL sda 0x1fe dos and so for sdb too: OK!)
sudo mdadm --create /dev/md0 --level=1 --raid-devices=2 /dev/sda /dev/sdb
cat /proc/mdstat
(to choose integration with LVM...)
sudo pvcreate /dev/md0 (made /dev/md0)
sudo vgcreate myvg /dev/md0 (made Volume Group VG)
sudo lvcreate -L 50G -n lv_root myvg (made a logical volume lv_root, 50 GB)
sudo mkfs.ext4 /dev/myvg/lv_root (made filesystem on lv_root)
sudo mkdir /mnt/root
sudo mount /dev/myvg/lv_root /mnt/root (so lv_root is mounted)
sudo mdadm --detail --scan | sudo tee -a /etc/mdadm/mdadm.conf (mdadm 
configuration)
sudo update-initramfs -u (problem: "I: update-initramfs is disabled (live 
system is running on read only media"))
sudo shutwown -h now (first session's end).

Question: It would be better if I would have made /boot too?

Tomorrow: Debian 12 Installation
...
... Hard disks Partition
Manual
make logical volumes for swap, home, log and var (and boot too?) inside vg
....
....
installation end
...
open intaller shell
mount /dev/mapper/vg-lv_root /target
mount --bind /dev /target/dev
mount --bind /sys /target/sys
mount --bind /proc /target/proc
chroot /target
mdadm --detail --scan | tee -a /etc/mdadm/mdadm.conf
update-initramfs -u -k all
apt update
apt install --reinstall grub-pc
exit
umount /target/sys /target/proc /target/dev
umount /target

Anything wrong?

Thanks.

CPA


________________________________
Da: Frank Guthausen
Inviato: Giovedì, 24 Aprile, 2025 18:36
A: debian-user@lists.debian.org
Oggetto: Re: R: R: R: Grub problem

On Thu, 24 Apr 2025 14:24:14 +0000
Pier Antonio Corradini <pierantonio.corrad...@gmail.com> wrote:

> This RAID is a RAID
> “firmware” (aka “fakeraid”).  It seems better mdadm (array: /dev/mdX)
> instead of dmraid (with the activation by dmraid -ay; array:
> /dev/mapper) but does legacy BIOS "impose" the use of dmraid?

If you don't need the hardware RAID (e.g. for dual boot Windows) you
might try deactivate it and use Debian softraid with mdadm only. This
should work in any case, because once the Linux kernel is started it
takes control and does usually a very good job.

You should install grub to both devices, e.g. /dev/sda and /dev/sdb
in your case, and grub will understand to boot from /dev/mdX softraid
devices. Everything on top of the softraid devices behaves exactly as
on real hard disk partition devices. You'll have a "normal" Debian on
disk with an additional mdadm layer, which is completely irrelevant for
any kind of normal usage, but protects you a little bit from hardware
disk failures.
--
kind regards
Frank

Reply via email to