Error partitioning with RAID

Diego Zuccato diego.zuccato at unibo.it
Wed Mar 5 09:00:16 CET 2025


Something now works, but seems the problem is with the preservation of 
RAID volumes: if I remove the "preserve_lazy:3,6" from RAID config, the 
system installs. But overwrites partitions with data I'd need to keep.
I also tried moving preserve_lazy to volume lines like
raid1 - disk1.3,disk2.3,disk3.3:preserve_lazy ext4 noauto createopts="-L 
PERMDATA"
but it fails.

Any help appreciated. Nobody have had to preserve a RAID volume between 
installs and can share an example?

TIA

Diego

Il 04/03/2025 07:12, Diego Zuccato ha scritto:
> Hello all.
> 
> I'm having issues trying to create a layout from scratch.
> I used the RAID example to write this:
> -8<--
> disk_config disk1 bootable:1 preserve_lazy:3,6
> primary    -    200M    -    -
> primary    swap    2G    -    -
> primary    -    120M-122M    -    -
> logical    -    15G    -    -
> logical    -    10G    -    -
> logical    -    1G-    -    -
> 
> disk_config disk2 sameas:disk1
> disk_config disk3 sameas:disk1
> 
> disk_config raid fstabkey:uuid preserve_lazy:3,6
> raid1    /boot        disk1.1,disk2.1,disk3.1    ext4  
> rw,noatime,errors=remount-ro
> raid1    -        disk1.3,disk2.3,disk3.3    ext4  noauto createopts="-L 
> PERMDATA"
> raid5    /        disk1.5,disk2.5,disk3.5    ext4  
> rw,noatime,errors=remount-ro
> raid1    /var/lib/mysql    disk1.6,disk2.6,disk3.6    ext4 
> rw,noatime,nosuid,nodev,rw
> raid5    /home        disk1.7,disk2.7,disk3.7    ext4  
> rw,noatime,nosuid,nodev,rw
> -8<--
> 
> The first issue is that I have yet to grasp the difference between 
> preserve_reinstall and preserve_lazy. But at least when there's no 
> partition table and flag_initial=1 it seems preserve_reinstall errors 
> out (cause it can't read the partition table) while preserve_lazy allows 
> to continue.
> 
> But now it errors out:
> -8<--
> INTERNAL ERROR in setup-storage:
> filesystem is undefined
> Please report this error to the Debian Bug Tracking System.
>   at /usr/share/fai/setup-storage/Commands.pm line 57.
>     FAI::build_mkfs_commands("/dev/md6", HASH(0x555682c295d0)) called 
> at /usr/share/fai/setup-storage/commands.pm line 531
>     FAI::build_raid_commands called at /usr/sbin/setup-storage line 209
> -8<--
> 
> Any hints?
> 
> Tks.
> 

-- 
Diego Zuccato
DIFA - Dip. di Fisica e Astronomia
Servizi Informatici
Alma Mater Studiorum - Università di Bologna
V.le Berti-Pichat 6/2 - 40127 Bologna - Italy
tel.: +39 051 20 95786



More information about the linux-fai mailing list