LVM on RAID with preserve_reinstall

Erik Meitner emeitner at math.wisc.edu
Tue Nov 7 17:49:21 CET 2023


What is the status of using preserve_reinstall on LVM volumes that use 
md devices for their PV?

When flag_initial=1 and I am re-installing the machine(a test VM in this 
case) FAI does not activate the md devices so the LVM volumes are never 
found. FAI reports "Can't preserve /dev/vg_data/data because it does not 
exist"

For some reason FAI is not activating the raid devices

Thanks.


disk_config disk1 bootable:1 align-at:1M preserve_reinstall:1,3
primary /boot       100M    ext4    rw,relatime
primary -           10G     -       -
primary -           20G-    -       -

disk_config disk2 bootable:1 align-at:1M preserve_reinstall:1,3
primary -           100M    ext4    rw,relatime
primary -           10G     -       -
primary -           20G-    -       -

disk_config raid fstabkey:uuid preserve_reinstall:1
raid1 - disk1.2,disk2.2 - -
raid1 - disk1.3,disk2.3 - -

disk_config lvm fstabkey:uuid
vg  vg_system       md0
vg_system-swap      swap        50M                     swap sw,pri=0
vg_system-root      /           500M-                   ext4 
rw,relatime    createopts="-FL ROOTFS"

disk_config lvm fstabkey:uuid
vg  vg_data         md1
vg_data-data        /data       50M:preserve_reinstall  ext4 
rw,relatime    createopts="-FL DATA"




More information about the linux-fai mailing list