Problem booting with AUFS / mergerfs is too slow

  • Hi,


    I have a problem with my AUFS Pool.


    When I start my Server, it hangs on checking for one HDD ("3TBa") everytime. The HDD itself is good, but I get this bootlog:


    After this everything works fine.


    When I change AUFS to mergerfs, it boots without any issue. But mergerfs has a very bad writeperformance (55mb/s vs 110mb/s), so this is not an option for me.
    But with mergerfs two another devices appears which are not mounted:
    /dev/loop0 (XFS)
    and
    /dev/mapper/docker-0:19-6-pool (XFS; i deinstalled docker a while ago)


    when I changed back to AUFS, after the first reboot there was not an issue. the /dev/loop0 was mounted, and /dev/mapper/docker disappeared
    After a new reboot the boot problem appeared again but /dev/loop0 disappeared as well


    what can I do? If mergerfs doesn't have such a bad performance I just would change aufs to mergerfs.

    • Offizieller Beitrag

    Did you try the direct_io mount option for mergerfs? That fixes the write performance with a small penalty on read performance.

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


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


    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

    Depending on the version of the plugin, you either change the flags in /etc/openmediavault/config.xml or you can edit it right in the plugin. Since you are on OMV 2.x, I think you have to edit config.xml. If you look at the output of: omv-showkey mntent, you should see the mergerfs entry. You will need to change the line to something like:


    <opts>defaults,allow_other,direct_io,category.create=epmfs,minfreespace=4G</opts>

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


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


    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!

  • I have this lines in the config.xml:


    How should I activa direct_io?

    • Offizieller Beitrag

    I would need to the see the mntent section not the unionfilesystems section. omv-showkey mntent There was no options setting in that version of the plugin.

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


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


    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

    Just replace the <opt> line


    <mntent>
    <uuid>061dcd64-e672-4575-b50b-5f0a74c1ae96</uuid>
    <fsname>818f0213-fa51-44dc-b601-128cc3f6a47a</fsname>
    <dir>/media/818f0213-fa51-44dc-b601-128cc3f6a47a</dir>
    <type>mergerfs</type>
    <opts>defaults,allow_other,direct_io</opts>
    <freq>0</freq>
    <passno>0</passno>
    <hidden>1</hidden>
    </mntent>


    and then: omv-mkconf fstab then reboot

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


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


    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!

  • Where do I have to replace this line? of course in omv-showkey mntent i can't change anything

    • Offizieller Beitrag

    As root: nano /etc/openmediavault/config.xml
    ctrl-o to save
    ctrl-x to exit

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


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


    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!

  • i did it, and it is a lil bit fast, but not really much. It goes from 40 upto 80 and back to 40 mb/s again all the time. and the CPU Load is quiet high now (60% for mergerfs and 30% for samba at a dualcore).

    • Offizieller Beitrag

    It is more cpu intensive since it is fuse filesystem.

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


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


    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

    Small files? On my two servers it makes a big difference but they have plenty of cpu.

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


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


    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!

  • No, only big files (>10GB) and even Crystaldiskmark. Only 75 mb/s write speed instead of 110.
    I have an Octacore Opteron, it should be fast enough and even faster than the A4-4000 APU which has higher results.

    • Offizieller Beitrag

    Not sure then. I get better results than that with a Intel J1900. aufs should be faster since it is a native kernel module but it isn't included in newer kernels. mergerfs is much more reliable as well.

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


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


    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!