mergerfs - safe to remount?

  • Hi,


    Anybody know if it's okay to remount the generated mergerfs file system? I'm looking for a way to semi-automate switching between direct_io on|off, depending on whether I plan to do mostly writes or mostly reads in a session. Want to avoid rebooting if I can.


    mergerfs fstab entry:
    /media/9631a1ae-6197-4bce-8359-db150bb7fe85:/media/538c1184-17bd-455f-8455-09c0a7901c70:/media/44e5d790-13ef-4433-a08f-df03683682a3:/media/f0e62054-1871-4bda-85cd-4a108e1667ba:/media/14d8e6d6-81c6-41df-820a-b58d825b5e1e:/media/bca59104-556f-4380-8180-494e9feed56d /media/9b55d2c2-1cc9-40eb-99dd-f9a8032a0f4c fuse.mergerfs defaults,allow_other,direct_io,category.create=epmfs,minfreespace=20G 0 0


    remount:
    mount /media/9b55d2c2-1cc9-40eb-99dd-f9a8032a0f4c -o remount


    I'm thinking of a simple shell script I'd kick off to toggle direct_io in fstab by altering OMV_FSTAB_MNTOPS_MERGERFS in /etc/defaults/openmediavault, then run omv-mkconf fstab, then remount.


    Thanks,
    Mark M

    • Offizieller Beitrag

    I unmounted and then remounted my mergerfs filesystem yesterday with no problems. I don't see why remount would be a problem.

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

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | 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!

  • Thanks!


    But it may be that write-cache needs to enabled on the physical disks in conjunction with direct_io .. or that's what I surmise. Maybe I'll enable write-cache on each physical data drive permanently. I've noticed a performance hit when write-cache is enabled (and direct_io not enabled) and I'm reading, but it's not huge.


    Unionfilesystem Plugin

    • Offizieller Beitrag

    I've never enabled write-cache on any of my systems.

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

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | 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!

  • Author of mergerfs here. I've actually never tried to remount a FUSE based FS nor heard of it being done. Everything which I can control at runtime I allow via the xattr interface but things like direct_io and FUSE specific things I believe are negotiated at startup when talking with the kernel. Not sure how it handles remounting.


    Will experiment and put into the readme whatever I find.

Jetzt mitmachen!

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