Disk config with GRUB/EFI, RAID + LVM

Rémy Dernat remy.d1 at gmail.com
Thu Nov 30 14:52:47 CET 2023


Hi Andrew,

Indeed, this removed the syntax issue. However, I have a new error now:

```
/sbin/blkid -c /dev/null -s UUID -o value /dev/md0 had exit code 2
Command had non-zero exit code
```
Indeed, blkid is not able to found md0 UUID.

I tried to modify the disk_config file to avoid this error, but I am
still stuck with it. Here is what look like my disk_config file now:

```
# example of new config file for setup-storage
#
# <type> <mountpoint> <size>   <fs type> <mount options> <misc options>

disk_config disk1
primary - 2G - -
primary /boot/efi 1G vfat rw createopts="-F32"
primary swap 2G swap sw,pri=1
primary - 0- - -

#disk_config disk2 sameas:disk1
disk_config disk2 disklabel:gpt fstabkey:uuid
primary - 2G - -
primary /boot/efi2 1G vfat rw createopts="-F32"
primary swap 2G swap sw,pri=1
primary - 0- - -

disk_config raid fstabkey:uuid
raid1 /boot disk1.1,disk2.1 - - mdcreateopts="--verbose
--metadata=0.90" createopts="-L boot"
raid1 - disk1.4,disk2.4 - -

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

I also tried to change the raid metadata to 1.0, but that did not
change anything. I wrote back ` fstabkey:uuid` behind disk_config raid
because it does not fail with syntax error.

Thanks for help

Le jeu. 30 nov. 2023 à 11:55, Andrew Ruthven <andrew at etc.gen.nz> a écrit :
>
> Hey,
>
> On Thu, 2023-11-30 at 11:14 +0100, Rémy Dernat wrote:
> > Hi awesome Fai guys,
> >
> > I have a weird syntax issue with the following disk_config:
> >
> [snip]
> > disk_config raid disklabel:gpt fstabkey:uuid bootable:1
>
> This line is your problem, remove everything after the word raid. So it
> should just be:
>
> disk_config raid
>
> Cheers,
> Andrew
> --
> Andrew Ruthven, Wellington, New Zealand
> andrew at etc.gen.nz         |
> Catalyst Cloud:           | This space intentionally left blank
>  https://catalystcloud.nz |
>


More information about the linux-fai mailing list