[Eisfair] Soft-Raid einrichten
Fabian Törner
fabian at toerners.home64.de
Fr Dez 19 22:38:49 CET 2025
Hallo Marcus, Holger und Wilhelm,
> Ich starte mal ein zwei Versuche und schaue was bei raus kommt.
zunächst habe ich die Anleitung verwendet, wie sie hier beschrieben steht:
https://www.pack-eis.de/doc/node4.html#SECTION00430000000000000000
in meinem Fall ohne zusätzliche /data Partition
Der Reboot hat mit dem geänderten code auf fd00 diesmal funktioniert.
Letztes Mal war da schon der Bootvorgang aufgrund fehlender
Bootpartition fehlgeschlagen. (warum auch immer) Also weiter in dem Ablauf.
Ein kleiner Fallstrick war dann die Anpassung der fstab.
1. wichtig darauf zu achten -> */mnt*/etc/fstab also schon die kopierte
2. wichtig die fstab war bei mir (und wahrscheinlich auch bei allen
anderen so aufgebaut:
UUID=10106753-46aa-4bc9-8091-0c26249ee922 / ext4
defaults,errors=remount-ro 0 1
UUID=8cb3c5d7-c0f2-47da-80da-ebae2e01e0d4 /boot ext4
defaults,errors=remount-ro 0 1
UUID=e29d27a0-12ee-4fec-9a3c-05d59f00c2b6 none swap sw 0 0
/dev/fd0 /media/floppy auto defaults,user,noauto 0 0
/dev/cdrom /media/cdrom iso9660 defaults,ro,user,noauto 0 0
also
/
/boot
swap
md3
md1
md2
(andere Reihenfolge) wenn man hier aus versehen bei / die UUID von md1
einträgt hat man schon den Salat.
was mich als nächstes verwundert ist, dass in der mdadm.conf andere
UUID's drin stehen als von blkid -o value -s UUID /dev/mdx
eis-8648 # cat /etc/mdadm/mdadm.conf
#----------------------------------------------------------------------------
# mdadm.conf file generated by mdadm version: 3.6.2
#
# Do not edit this file, edit /etc/config.d/mdadm
# Creation date: 2025-12-19 Time: 19:49:12
#----------------------------------------------------------------------------
DEVICE partitions
ARRAY /dev/md/1 metadata=0.90 UUID=b79d9ed2:f50ae735:eb082e63:72fa9b08
ARRAY /dev/md/2 metadata=1.2 UUID=e00e0ffe:faacf6e3:eef8e79d:abe514bf
ARRAY /dev/md/3 metadata=1.2 UUID=a92fecc2:5fe5f3f1:6dbe7a4f:b10cc82e
PROGRAM /usr/libexec/mdadm/mdadm-event-handler.sh
eis-8648 # blkid -o value -s UUID /dev/md1
e8eeee44-fb10-4be0-b843-d51e9666120e
eis-8648 # blkid -o value -s UUID /dev/md2
3bc6e7c4-7def-4401-8dbe-392864aba53c
eis-8648 # blkid -o value -s UUID /dev/md3
eda140b0-89d7-4a69-899b-b08eec3a4928
eis-8648 #
aber habe mich davon erst mal nicht beirren lassen.
Also weiter im Programm - nächster kleiner Fallstrick -> mkinitrd
*--force* (das "--force" bitte nicht vergessen!)
---[schnipp]---
eis-8648 # mkinitrd --force
Creating: /boot/initrd-6.6.119-eisfair-64-VIRT.gz|6.6.119-eisfair-64-VIRT
dracut[I]: Executing: /usr/bin/dracut --force
/boot/initrd-6.6.119-eisfair-64-VIRT.gz 6.6.119-eisfair-64-VIRT
dracut[I]: Module 'mksh' will not be installed, because command 'mksh'
could not be found!
dracut[I]: Module 'systemd-networkd' will not be installed, because
command 'networkctl' could not be found!
dracut[I]: Module 'systemd-networkd' will not be installed, because
command '/usr/lib/systemd/systemd-networkd' could not be found!
dracut[I]: Module 'systemd-networkd' will not be installed, because
command '/usr/lib/systemd/systemd-networkd-wait-online' could not be found!
dracut[I]: Module 'systemd-pcrphase' will not be installed, because
command '/usr/lib/systemd/systemd-pcrextend' could not be found!
dracut[I]: Module 'systemd-portabled' will not be installed, because
command 'portablectl' could not be found!
dracut[I]: Module 'systemd-portabled' will not be installed, because
command '/usr/lib/systemd/systemd-portabled' could not be found!
dracut[I]: Module 'systemd-resolved' will not be installed, because
command 'resolvectl' could not be found!
dracut[I]: Module 'systemd-resolved' will not be installed, because
command '/usr/lib/systemd/systemd-resolved' could not be found!
dracut[I]: Module 'modsign' will not be installed, because command
'keyctl' could not be found!
dracut[I]: Module 'busybox' will not be installed, because command
'busybox' could not be found!
dracut[I]: Module 'rngd' will not be installed, because command 'rngd'
could not be found!
dracut[I]: Module 'connman' will not be installed, because command
'connmand' could not be found!
dracut[I]: Module 'connman' will not be installed, because command
'connmanctl' could not be found!
dracut[I]: Module 'connman' will not be installed, because command
'connmand-wait-online' could not be found!
dracut[I]: 35network-legacy: Could not find any command of 'dhclient
wicked'!
dracut[I]: Module 'url-lib' will not be installed, because command
'curl' could not be found!
dracut[I]: 62bluetooth: Could not find any command of
'/usr/lib/bluetooth/bluetoothd /usr/libexec/bluetooth/bluetoothd'!
dracut[I]: Module 'lvmmerge' will not be installed, because command
'lvm' could not be found!
dracut[I]: Module 'lvmthinpool-monitor' will not be installed, because
command 'lvm' could not be found!
dracut[I]: Module 'btrfs' will not be installed, because command 'btrfs'
could not be found!
dracut[I]: Module 'dm' will not be installed, because command 'dmsetup'
could not be found!
dracut[I]: Module 'dmraid' will not be installed, because command
'dmraid' could not be found!
dracut[I]: Module 'dmsquash-live-ntfs' will not be installed, because
command 'ntfs-3g' could not be found!
dracut[I]: Module 'lvm' will not be installed, because command 'lvm'
could not be found!
dracut[I]: Module 'pcsc' will not be installed, because command 'pcscd'
could not be found!
dracut[I]: Module 'tpm2-tss' will not be installed, because command
'tpm2' could not be found!
dracut[I]: Module 'cifs' will not be installed, because command
'mount.cifs' could not be found!
dracut[I]: Module 'iscsi' will not be installed, because command
'iscsi-iname' could not be found!
dracut[I]: Module 'iscsi' will not be installed, because command
'iscsiadm' could not be found!
dracut[I]: Module 'iscsi' will not be installed, because command
'iscsid' could not be found!
dracut[I]: 95nfs: Could not find any command of 'rpcbind portmap'!
dracut[I]: Module 'nvmf' will not be installed, because command 'nvme'
could not be found!
dracut[I]: Module 'nvmf' will not be installed, because command 'jq'
could not be found!
dracut[I]: Module 'biosdevname' will not be installed, because command
'biosdevname' could not be found!
dracut[I]: Module 'masterkey' will not be installed, because command
'keyctl' could not be found!
dracut[I]: Module 'memstrack' will not be installed, because command
'memstrack' could not be found!
dracut[I]: memstrack is not available
dracut[I]: If you need to use rd.memdebug>=4, please install memstrack
and procps-ng
dracut[I]: Module 'squash' will not be installed, because command
'mksquashfs' could not be found!
dracut[I]: Module 'squash' will not be installed, because command
'unsquashfs' could not be found!
dracut[I]: Module 'mksh' will not be installed, because command 'mksh'
could not be found!
dracut[I]: Module 'systemd-pcrphase' will not be installed, because
command '/usr/lib/systemd/systemd-pcrextend' could not be found!
dracut[I]: Module 'systemd-portabled' will not be installed, because
command 'portablectl' could not be found!
dracut[I]: Module 'systemd-portabled' will not be installed, because
command '/usr/lib/systemd/systemd-portabled' could not be found!
dracut[I]: Module 'systemd-resolved' will not be installed, because
command 'resolvectl' could not be found!
dracut[I]: Module 'systemd-resolved' will not be installed, because
command '/usr/lib/systemd/systemd-resolved' could not be found!
dracut[I]: Module 'modsign' will not be installed, because command
'keyctl' could not be found!
dracut[I]: Module 'busybox' will not be installed, because command
'busybox' could not be found!
dracut[I]: Module 'rngd' will not be installed, because command 'rngd'
could not be found!
dracut[I]: Module 'connman' will not be installed, because command
'connmand' could not be found!
dracut[I]: Module 'connman' will not be installed, because command
'connmanctl' could not be found!
dracut[I]: Module 'connman' will not be installed, because command
'connmand-wait-online' could not be found!
dracut[I]: 35network-legacy: Could not find any command of 'dhclient
wicked'!
dracut[I]: Module 'url-lib' will not be installed, because command
'curl' could not be found!
dracut[I]: 62bluetooth: Could not find any command of
'/usr/lib/bluetooth/bluetoothd /usr/libexec/bluetooth/bluetoothd'!
dracut[I]: Module 'lvmmerge' will not be installed, because command
'lvm' could not be found!
dracut[I]: Module 'lvmthinpool-monitor' will not be installed, because
command 'lvm' could not be found!
dracut[I]: Module 'btrfs' will not be installed, because command 'btrfs'
could not be found!
dracut[I]: Module 'dm' will not be installed, because command 'dmsetup'
could not be found!
dracut[I]: Module 'dmraid' will not be installed, because command
'dmraid' could not be found!
dracut[I]: Module 'dmsquash-live-ntfs' will not be installed, because
command 'ntfs-3g' could not be found!
dracut[I]: Module 'lvm' will not be installed, because command 'lvm'
could not be found!
dracut[I]: Module 'pcsc' will not be installed, because command 'pcscd'
could not be found!
dracut[I]: Module 'tpm2-tss' will not be installed, because command
'tpm2' could not be found!
dracut[I]: Module 'cifs' will not be installed, because command
'mount.cifs' could not be found!
dracut[I]: Module 'iscsi' will not be installed, because command
'iscsi-iname' could not be found!
dracut[I]: Module 'iscsi' will not be installed, because command
'iscsiadm' could not be found!
dracut[I]: Module 'iscsi' will not be installed, because command
'iscsid' could not be found!
dracut[I]: 95nfs: Could not find any command of 'rpcbind portmap'!
dracut[I]: Module 'nvmf' will not be installed, because command 'nvme'
could not be found!
dracut[I]: Module 'nvmf' will not be installed, because command 'jq'
could not be found!
dracut[I]: Module 'masterkey' will not be installed, because command
'keyctl' could not be found!
dracut[I]: Module 'memstrack' will not be installed, because command
'memstrack' could not be found!
dracut[I]: memstrack is not available
dracut[I]: If you need to use rd.memdebug>=4, please install memstrack
and procps-ng
dracut[I]: Module 'squash' will not be installed, because command
'mksquashfs' could not be found!
dracut[I]: Module 'squash' will not be installed, because command
'unsquashfs' could not be found!
dracut[I]: *** Including module: dash ***
dracut[I]: *** Including module: systemd ***
dracut[I]: *** Including module: systemd-initrd ***
dracut[I]: *** Including module: i18n ***
dracut[I]: *** Including module: kernel-modules ***
dracut[I]: *** Including module: kernel-modules-extra ***
dracut[I]: *** Including module: mdraid ***
dracut[I]: *** Including module: eisfair-modules ***
dracut[I]: *** Including module: resume ***
dracut[I]: *** Including module: rootfs-block ***
dracut[I]: *** Including module: terminfo ***
dracut[I]: *** Including module: udev-rules ***
dracut[I]: *** Including module: dracut-systemd ***
dracut[I]: *** Including module: usrmount ***
dracut[I]: *** Including module: base ***
dracut[I]: *** Including module: fs-lib ***
dracut[I]: *** Including module: shutdown ***
dracut[I]: *** Including modules done ***
dracut[I]: *** Installing kernel module dependencies ***
dracut[I]: *** Installing kernel module dependencies done ***
dracut[I]: *** Resolving executable dependencies ***
dracut[I]: *** Resolving executable dependencies done ***
dracut[I]: *** Hardlinking files ***
dracut[I]: *** Hardlinking files done ***
dracut[I]: Could not find 'strip'. Not stripping the initramfs.
dracut[I]: *** Generating early-microcode cpio image ***
dracut[I]: *** Constructing AuthenticAMD.bin ***
dracut[I]: *** Store current command line parameters ***
dracut[I]: Stored kernel commandline:
dracut[I]: resume=UUID=e29d27a0-12ee-4fec-9a3c-05d59f00c2b6
dracut[I]: root=UUID=10106753-46aa-4bc9-8091-0c26249ee922
rootfstype=ext4 rootflags=rw,relatime,errors=remount-ro
dracut[I]: *** Creating image file
'/boot/initrd-6.6.119-eisfair-64-VIRT.gz' ***
dracut[I]: *** Creating initramfs image file
'/boot/initrd-6.6.119-eisfair-64-VIRT.gz' done ***
Creation of initrd succeeded!
---[/schnapp]---
ich glaube hier ist ein Fehler, da die initrd ja nun noch auf dem /boot
liegt und nicht nach /mnt/boot kommt - welches ja nach dem reboot als
/boot gemounted werden soll, und somit der Startbefehl nicht mit in die
initrd kommt. Also habe ich nochmal ausgeführt:
---[schnipp]---
eis-8648 # cd /boot
eis-8648 # find . -xdev | cpio -pmv /mnt/boot
/mnt/boot/./initrd-6.6.119-eisfair-64-VIRT
/mnt/boot/./initrd.gz
/mnt/boot/./lost+found
/mnt/boot/./kernel-6.6.119-eisfair-64-VIRT
/mnt/boot/./extlinux
/mnt/boot/./extlinux/extlinux.conf
/mnt/boot/./extlinux/ldlinux.c32
/mnt/boot/./extlinux/ldlinux.sys
/mnt/boot/./extlinux/com32
/mnt/boot/./extlinux/com32/libutil.c32
/mnt/boot/./extlinux/com32/libmenu.c32
/mnt/boot/./extlinux/com32/menu.c32
/mnt/boot/./extlinux/com32/libgpl.c32
/mnt/boot/./extlinux/com32/libcom32.c32
/mnt/boot/./kernel
/mnt/boot/./initrd-6.6.119-eisfair-64-VIRT.gz
79939 blocks
eis-8648 #
---[/schnapp]---
und nun den reboot
---[schnipp]---
eis-8648 # df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 4.7G 749M 3.7G 17% /
devtmpfs 4.0M 0 4.0M 0% /dev
tmpfs 2.0G 0 2.0G 0% /dev/shm
tmpfs 788M 636K 787M 1% /run
tmpfs 1.0M 0 1.0M 0%
/run/credentials/systemd-journald.service
/dev/sda1 85M 40M 39M 51% /boot
tmpfs 1.0M 0 1.0M 0% /run/credentials/getty at tty1.service
tmpfs 394M 4.0K 394M 1% /run/user/0
eis-8648 #
---[/schnapp]---
komisch immer noch keine /dev/md3 an /
---[schnipp]---
eis-8648 # mdadm --examine --brief --scan --config=partitions
ARRAY /dev/md1 UUID=daf12a7d:5062dc9d:eb082e63:72fa9b08
ARRAY /dev/md/2 metadata=1.2 UUID=588a2650:877d330c:484dc890:c2488f39
ARRAY /dev/md/3 metadata=1.2 UUID=a0530a19:f5ff805a:8ccd1177:c8939239
---[/schnapp]---
warum ist md1 und nicht md/1 ?
Hier muss ich erst mal aufhören, komme nicht weiter.
Viele Grüße
Fabian
--
Diese E-Mail wurde von AVG-Antivirussoftware auf Viren geprüft.
www.avg.com
Mehr Informationen über die Mailingliste Eisfair