Error when updating

  • Hi Everyone...


    Whenever I update OMV6 I always get a zfs dkms error. The updates finish installing (as it indicates no updates after installing).


    I'm using kernel 6.1.10-1 pve and the zfs plugin. All other non pve kernels were removed. When I originally installed OMV6 I installed the kernel first then the zfs plugin.


    Here is some of the outputs when I do a command line update:


    root@ourmedia:~# sudo apt-get -y upgrade

    Reading package lists... Done

    Building dependency tree... Done

    Reading state information... Done

    Calculating upgrade... Done

    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

    1 not fully installed or removed.

    After this operation, 0 B of additional disk space will be used.

    Setting up zfs-dkms (2.1.9-1~bpo11+1) ...

    Removing old zfs-2.1.9 DKMS files...


    ------------------------------

    Deleting module version: 2.1.9

    completely from the DKMS tree.

    ------------------------------

    Done.

    Loading new zfs-2.1.9 DKMS files...

    Building for 6.1.10-1-pve

    Building initial module for 6.1.10-1-pve

    configure: error: in `/var/lib/dkms/zfs/2.1.9/build':

    configure: error: no acceptable C compiler found in $PATH

    See `config.log' for more details

    Error! Bad return status for module build on kernel: 6.1.10-1-pve (x86_64)

    Consult /var/lib/dkms/zfs/2.1.9/build/make.log for more information.

    dpkg: error processing package zfs-dkms (--configure):

    installed zfs-dkms package post-installation script subprocess returned error exit status 10

    Processing triggers for initramfs-tools (0.140) ...

    update-initramfs: Generating /boot/initrd.img-6.1.10-1-pve

    Errors were encountered while processing:

    zfs-dkms

    E: Sub-process /usr/bin/dpkg returned an error code (1)


    Any thought or suggestions? The OMV system is running fine and I have no problems other than this error


    Thanks for you help


    Edward

    • Offizieller Beitrag

    If you are only running the proxmox kernel, you don't need zfs-dkms. If you remove it, you have to make sure it doesn't remove other necessary zfs packages. If you are running kernels other than proxmox, you will need the pacakge.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.6 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Offizieller Beitrag

    Is there a list I could refer to that are essential zfs packages for the pve kernel?

    If you try to uninstall a package and it wants to uninstall the plugin, you know you are removing something it needs. Other than zfs-dkms, none of the other packages should cause any problems. zfs-dkms is only installed when you install the zfs plugin before the proxmox kernel. Here is the list of packages that plugin depends on - https://github.com/OpenMediaVa…master/debian/control#L12

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.6 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • ryecoaaron Thanks again for your response. I reviewed some other posts you had regarding similar issues. Before I commit to removing dkms, could I share some details with you to get your thoughts.


    These are the results of different commands:


    ls -l /lib/modules/$(uname -r)/zfs/z*


    -rw-r--r-- 1 root root 24864 Feb 7 07:10 /lib/modules/6.1.10-1-pve/zfs/zavl.ko

    -rw-r--r-- 1 root root 161808 Feb 7 07:10 /lib/modules/6.1.10-1-pve/zfs/zcommon.ko

    -rw-r--r-- 1 root root 5230000 Feb 7 07:10 /lib/modules/6.1.10-1-pve/zfs/zfs.ko

    -rw-r--r-- 1 root root 283432 Feb 7 07:10 /lib/modules/6.1.10-1-pve/zfs/zlua.ko

    -rw-r--r-- 1 root root 161608 Feb 7 07:10 /lib/modules/6.1.10-1-pve/zfs/znvpair.ko

    -rw-r--r-- 1 root root 370968 Feb 7 07:10 /lib/modules/6.1.10-1-pve/zfs/zunicode.ko

    -rw-r--r-- 1 root root 885480 Feb 7 07:10 /lib/modules/6.1.10-1-pve/zfs/zzstd.ko


    modinfo zfs | grep version


    version: 2.1.9-pve1

    srcversion: 1D0C47C31C2D5C103F4B022

    vermagic: 6.1.10-1-pve SMP preempt mod_unload modversions


    sudo apt-get purge zfs-dkms


    Reading package lists... Done

    Building dependency tree... Done

    Reading state information... Done

    The following packages were automatically installed and are no longer required:

    python3-distutils python3-lib2to3

    Use 'sudo apt autoremove' to remove them.

    The following packages will be REMOVED:

    zfs-dkms*

    0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.

    1 not fully installed or removed.

    After this operation, 18.0 MB disk space will be freed.

    Do you want to continue? [Y/n]


    Your opinion, think it should be fine to commit the changes to the purge zfs-dkms?


    Should I do a update-initramfs -u


    Sorry for the multiple posts. Still learning the deeper details of OMV6


    Thanks again


    Edward





    • Offizieller Beitrag

    think it should be fine to commit the changes to the purge zfs-dkms?

    Yes.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.6 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

Jetzt mitmachen!

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