Managing LVM + RAID install on a machine with EFI

Rémy Dernat <[email protected]>
Newsgroups gmane.linux.debian.fai
Message-ID <CAA6Bz=fepe1T=HeGsic34bTg-vJ1O4GZWtoMe-JNFUC8Bxo5kA@mail.gmail.com>
Hi,

I currently have that kind of disk configuration for my UEFI machines :

```
disk_config disk1 disklabel:msdos bootable:1 fstabkey:uuid

primary /           40G-200G    ext4  rw,noatime,errors=remount-ro
logical /tmp        20G-50G      ext4  rw,noatime,nosuid,nodev
createopts="-L tmp -m 0" tuneopts="-c 0 -i 0"
logical /scratch    30%-        ext2  rw,noatime,nosuid,nodev
createopts="-L scratch -m 1" tuneopts="-c 0 -i 0"
logical swap        200-1G      swap  sw
## logical /home  30%-  ext4  rw,noatime,nosuid,nodev createopts="-L home
-m 1" tuneopts="-c 0 -i 0"
```

I would like to change it to softraid + LVM. After reading setup-storage
man page, I think it should seems like that :


```
disk config disk1
primary - 2G - -
primary swap 2G swap sw,pri=1
primary - 0- - -

disk_config disk2 sameas:disk1

disk_config raid fstabkey:uuid
raid1 /boot disk1.1,disk2.1 ext4 rw,noatime,errors=remount-ro
raid1 - disk1.3,disk2.3 - -

disk_config lvm fstabkey:uuid
vg vg_system md1
vg_system-root / 40G-200G ext4 rw,noatime
vg_system-tmp /tmp 20G-50G ext4 rw,noatime,nosuid,nodev
vg_system-scratch /scratch 30%- ext2 rw,noatime
##vg_system-home /home 30%- ext4 rw,noatime,nosuid,nodev
```

I could also say that I am not sure about what would be the first disk, or
even if it is a SSD (NVMe, PCIe, SATA...) or HDD...

Can anyone can take a look at this disk configuration and confirm if it is
look ok to him ?

Thanks,
Best regards,
Rémy.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.