Giter Club home page Giter Club logo

Comments (5)

jmineau avatar jmineau commented on June 1, 2024 1

Oh they're just fstab options, silly me...

It works! I put this in my fstab

x-systemd.requires-mounts-for=/mnt/hdd/M-Drive,x-systemd.requires-mounts-for=/mnt/hdd/MyBook

I don't really understand the difference between x-systemd.requires-mounts-for & x-systemd.requires, but this seems to be working.

I will have to play around to see if I can use wildcards with this too rather then having to enter each drive.

Thank you so much again!

from mergerfs.

trapexit avatar trapexit commented on June 1, 2024 1

if the mount timeout isn't working then something about the setup is waiting for it.

https://www.freedesktop.org/software/systemd/man/latest/systemd.mount.html

Details on the settings.

from mergerfs.

trapexit avatar trapexit commented on June 1, 2024

Look at your boot logs. You will likely see that those paths don't exist at boot. You are pointing to locations inside a mount point, correct? If mergerfs runs before them then naturally those paths won't exist. As mentioned in the docs the globbing happens at configure/start time. You must either use dependencies to force mergerfs to be mounted last or if your init system mounts things concurrently you can try the branches-mount-timeout option. The best bet is the former.

from mergerfs.

jmineau avatar jmineau commented on June 1, 2024

Thank you for your dedication to support.

That makes sense and I think you are right. Using journalctl -b to get my most recent boot without using branches-mount-timeout, I see that the system tries to mount M-NAS about 2 seconds before the two other drives and I believe fails due to the directories not being MTP devices?

Feb 02 07:20:42 m-pi mtp-probe[337]: bus: 2, device: 2 was not an MTP device
Feb 02 07:20:42 m-pi mtp-probe[339]: bus: 1, device: 4 was not an MTP device

However, when I add in a 3 second delay with branches-mount-timeout, I see mergerfs wait, the system mounts the two external drives, but after 3 seconds I get these messages: boot_3s_delay.log

Feb 02 07:29:55 m-pi mergerfs[323]: /mnt/hdd/*/M-NAS not mounted within timeout
Feb 02 07:29:55 m-pi mergerfs[323]: Continuing to mount mergerfs despite 1 branches not being different from the mountpoint filesystem
Feb 02 07:29:55 m-pi mergerfs[505]: running basic garbage collection
Feb 02 07:29:55 m-pi mergerfs[505]: threadpool (fuse.read): spawning 4 threads w/ max queue depth 4
Feb 02 07:29:55 m-pi mergerfs[505]: read-thread-count=4; process-thread-count=-1; process-thread-queue-depth=-1; pin-threads=false;
Feb 02 07:29:55 m-pi systemd[1]: Mounted share-M\x2dNAS.mount - /share/M-NAS.

resulting in the drives not being merged. I tried 1,3,5,10,&20 seconds and got the same 'not mounted within timeout' message.

I have attached both logs. Thank you again so much for your help!

from mergerfs.

jmineau avatar jmineau commented on June 1, 2024

Is this what you mean by dependencies? Where would I put this line?

https://askubuntu.com/a/1054394

from mergerfs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.