Change of MB without reinstall possible?

  • Ok can report back it worked. New Mainboard screwed in an working. All drives present.

    I had to edit a few things including fstab while adding EFI partition. But i think OMV will not overwrite fstab changes if i remember correctly.

  • Everything seems to run fine exept my pihole container. Anyone got a clue why that would not start up after a hardware migration?


    Here is the error msg:


    Code
    500 - Internal Server Error
    Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; docker compose --file '/srv/dev-disk-by-label-SSD_Data/appdata/YAML_Storage/pihole/pihole.yml' --env-file '/srv/dev-disk-by-label-SSD_Data/appdata/YAML_Storage/pihole/pihole.env' --env-file '/srv/dev-disk-by-label-SSD_Data/appdata/YAML_Storage/global.env' up -d 2>&1': Container pihole Starting Error response from daemon: failed to create endpoint pihole on network pihole2: network id "b84bd51806218f7bc0c6395c6b4942ed7a239f3b36cd187329be4810653f959a" not found
    • Offizieller Beitrag

    chente: are you running pihole on your friends OMV using this mainboard?

    I don't run pihole on that server.

    I assume you reconfigured the network interface with omv-firstaid right? It is necessary when you change hardware. It may have changed the network interface name and affected your pihole2 docker network. I would try reconfiguring that docker network.

  • Actually I had already deleted the docker network and recreated it. Did not help.

    Checking in OMV the network interface still appears as eth0 and all network is working fine.

    BUT i just remarked that the interface indeed has a different name while using "ifconfig -a".

    Would renaming in the docker config be enough or do i really have to run omv-firstdaid?


    Current name is "enp2s0"


    This post from votdev suggests to run "omv-salt stage run all"

  • Ok i changed the network interface in my docker yaml to "enp2s0" and now pihole is running fine.


    I also ran "omv-salt stage run all" as suggested in the above thread.

    No visible change.


    Also ran omv-firstaid and now the network interface shows correctly in OMV GUI.

  • Ok one last thing seems to be a leftover of the mainboard switch. Drive letters are now different (which i guess is not an issue).

    But also sda1 (wich is not the system drive) appears twice in the OMV GUI:


  • Hmm ok seems like something is puzzled with the drive mapping in OMV.


    config.xml:



    blkid:


    Code
    /dev/sdc1: LABEL="DataWD" UUID="c0a24e86-363b-412d-ade9-c1c01a2ab6de" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="646f2de2-2633-41ec-86f2-41fc93142f26"
    /dev/sdb1: LABEL="DataHitachi" UUID="a72f1874-5021-4f68-aa17-710a7c414e27" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="4f027152-069d-413b-a000-92498dfc7c4a"
    /dev/sda1: LABEL="ParityWD" UUID="fdcaae30-3efb-47a7-bab3-a0b78987c8d9" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="a918b332-de56-4c45-8834-c1268ee4753d"
    /dev/sdd1: UUID="a72f30ef-09bd-4b1f-9f55-1122f120cab6" BLOCK_SIZE="4096" TYPE="ext4" PARTLABEL="Linux filesystem" PARTUUID="112020c8-8a26-4bb9-a781-883a9cfea18c"
    /dev/sdd3: LABEL="SSD_Data" UUID="6c9a3447-9243-47ef-84f8-69205fe4a1a2" BLOCK_SIZE="4096" TYPE="ext4" PARTLABEL="Linux filesystem" PARTUUID="8b5e162a-f695-49f1-8a50-b3df87d7c117"
    /dev/sdd4: SEC_TYPE="msdos" UUID="0D28-D1AD" BLOCK_SIZE="512" TYPE="vfat" PARTLABEL="EFI-system" PARTUUID="7ac9cf10-0660-4f56-afdc-8f0f45dee223"
    /dev/sdd5: UUID="cd074168-ed5e-4307-9c61-c7554ebb5a0a" TYPE="swap" PARTLABEL="Linux swap" PARTUUID="0f556396-a277-4dac-99ae-be9f700d30f0"
    /dev/sdd2: PARTLABEL="BIOS boot partition" PARTUUID="dfe26bcf-a05d-4ad0-91eb-1754f3fae17e"


    sda1 is mapped to a UUID that is not even shown in blkid as far as i see.


    What would be the best way to fix this?


    Uncomment this drive, as it seems to be an old leftover?


    Code
          <mntent>
            <uuid>79684322-3eac-11ea-a974-63a080abab18</uuid>
            <fsname>/dev/sda1</fsname>
            <dir>/</dir>
            <type>ext4</type>
            <opts>errors=remount-ro,discard,noatime</opts>
            <freq>0</freq>
            <passno>1</passno>
            <hidden>1</hidden>
          </mntent>



    EDIT: found out this was wrong. The UUID 79... seems to be a standard OMV placeholder for the system drive.

    I remapped the fsname to sdd1 as that is the current device location and now the drives show up correctly:


  • On the way to get here i manually added the EFI partition to the fstab:


    Code
    /dev/disk/by-partlabel/EFI-system /boot/efi vfat defaults 0 2


    Now i fear that this gets removed by OMV at some point. Do i have to do anything additional to make OMV aware of this?

    Can anyone point me to the solution here?

  • I know I posted a lot of stuff here and can fully understand if you guys lost track ;)


    But can anyone answer my last question: can i manually add entries to fstab?

    If not, how would i move on adding this EFI partition then?

  • Ok so i think i believe to understand how this works.

    fstab will not get altered by OMV. The entries in config.xml <mntent> are only to link the respective entries to the GUI logic.

    So nothing to be done in the case of this EFI partition then i assume.


    Is that correct?

  • But can anyone answer my last question: can i manually add entries to fstab?

    The answer is yes and no.


    Yes, if the added entries are outside of the openmediavault stanza.

    --
    Google is your friend and Bob's your uncle!


    OMV AMD64 7.x on headless Chenbro NR12000 1U 1x 8m Quad Core E3-1220 3.1GHz 32GB ECC RAM.

  • The openmediavault stanza is this in fstab:


    >>> [openmediavault]

    Everything within this section of the file.

    <<< [openmediavault]

    --
    Google is your friend and Bob's your uncle!


    OMV AMD64 7.x on headless Chenbro NR12000 1U 1x 8m Quad Core E3-1220 3.1GHz 32GB ECC RAM.

  • Ok now system seems to be clean except for the network interfaces part.

    I think there are some leftovers of the NIC change from eth0 to enps02.

    In dmesg I see a few weird things:


    Code
    [   17.485932] r8169 0000:02:00.0 enp2s0: Link is Up - 1Gbps/Full - flow control rx/tx
    [   17.485970] IPv6: ADDRCONF(NETDEV_CHANGE): enp2s0: link becomes ready
    [   18.826792] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

    I dont know why eth0 is mentioned here. As far as i am concerned there is no more eth0 on this device:



    Also i get these messages and a segfault (which might be connected to the above?):


    Code
    [   20.865127] device vethc422d57 entered promiscuous mode
    [   20.867866] docker0: port 2(vethc422d57) entered blocking state
    [   20.867877] docker0: port 2(vethc422d57) entered forwarding state
    [   20.868126] docker0: port 2(vethc422d57) entered disabled state
    [   20.890811] dhcpcd[969]: segfault at 8 ip 0000561a316992e0 sp 00007ffc2db90558 error 4 in dhcpcd[561a31696000+32000] likely on CPU 0 (core 4, socket 0)
    [   20.890839] Code: a0 00 00 00 48 8b 00 48 85 c0 74 45 66 0f 1f 44 00 00 48 39 c7 74 1a 8b 48 2c 85 c9 74 13 48 8b 88 c8 00 00 00 66 85 f6 75 07 <8b> 49 08 39 0a 74 0a 48 8b 40 08 48 85 c0 75 d8 c3 48 8d 50 18 48



    also OMV does not know eth0:


    Code
    root@debnas:/etc/netplan# ls -l
    insgesamt 8
    -rw------- 1 root root  43 15. Feb 09:58 10-openmediavault-default.yaml
    -rw------- 1 root root 346 15. Feb 09:58 20-openmediavault-enp2s0.yaml
  • Look what i found in my dmesg today:



    I wonder if this little M2 to SATA controller is any reliable....

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!