problem with mdadm FAI 6.2

2024-04-26 Diskussionsfäden pa...@kish.by
Hello,

If in a server we have software raid mdadm, and we will try to reinstall this 
server we have error



dmesg.log:[0.240851] acpi PNP0A03:00: fail to add MMCONFIG information, 
can't access extended PCI configuration space under this bridge.
fai.log:/usr/bin/fai-class: WARNING. Following classes are defined multiple 
times:   2 d30180
fai.log:(STDERR)   Can't open /dev/md1 exclusively.  Mounted filesystem?
fai.log:(STDERR)   Can't open /dev/md1 exclusively.  Mounted filesystem?
fai.log:(STDERR)   Error opening device /dev/md1 for reading at 0 length 512.
fai.log:(STDERR)   Can't open /dev/md1 exclusively.  Mounted filesystem?
fai.log:(STDERR)   Error opening device /dev/md1 for reading at 0 length 4096.
fai.log:Error in task partition. Code: 710
fai.log:Traceback: task_error task_partition main
format.log:(STDERR)   Can't open /dev/md1 exclusively.  Mounted filesystem?
format.log:(STDERR)   Can't open /dev/md1 exclusively.  Mounted filesystem?
format.log:(STDERR)   Error opening device /dev/md1 for reading at 0 length 512.
format.log:(STDERR)   Can't open /dev/md1 exclusively.  Mounted filesystem?
format.log:(STDERR)   Error opening device /dev/md1 for reading at 0 length 
4096.
variables.log:task_local_error=0


for example disk-config

disk_config sda disklabel:gpt-bios
primary -   1024-   -
primary swap16384swapsw
primary -   0-  -   -

disk_config sdb disklabel:gpt-bios
primary -   1024-   -
primary swap16384swapsw
primary -   0-  -   -

disk_config raid fstabkey:uuid
raid1   /boot   sda1,sdb1   ext2rw,noatime,nodiratime   
mdcreateopts="--metadata=0.9"
raid1   -   sda3,sdb3   -   -

disk_config lvm fstabkey:uuid
vg store md1
store-root  /   0-  ext4noatime,nodiratime




as i understand setup-storage cannot remove old disk_partition table 

mistake in subroutines line 1285

2024-03-05 Diskussionsfäden pa...@kish.by
Hello

in fai/lib/subroutines we have code on lines 1284-1288

 case "$FAI_LOGPROTO" in
ftp) remotesh=ssh ;;
ssh) remotesh=ssh ;;
rsh) remotesh=rsh ;;
none) return ;;


Is line  ftp) remotesh=ssh ;; is correct?
I have changed it to  ftp) remotesh=ftp ;; now all works fine


Re: Problem with setup-storage

2024-02-07 Diskussionsfäden pa...@kish.by
Hi Thomas,
Also FAI 6.2 have problem with setup-storage when we use mdadm+lvm
I wrote later about it



> 7 февр. 2024 г., в 11:53, Thomas Lange  написал(а):
> 
> I'm preparing a patch and will upload a new FAI version if it's ready.