Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Successful fstab mount appears to be random at boot on Ubuntu 20.04 LTS #746

Closed
7 tasks
eckozen84 opened this issue Apr 25, 2020 · 14 comments
Closed
7 tasks

Comments

@eckozen84
Copy link

eckozen84 commented Apr 25, 2020

General description

Migrated my mergerFS setup from a previous install of Ubuntu 18.04 LTS to a fresh install of Ubuntu 20.04 LTS. I use /etc/fstab to mount at boot but it appears that it is unsuccessful sometimes and successful at other times (appears to be random). I will have to reboot a few times to finally get it to mount.

In one instance of an unsuccessful mount at boot, Ubuntu notified me of a crash and I have attached the crash report here. In all subsequent unsuccessful mount at boot events, I have not been notified of a crash since.

https://www.dropbox.com/s/2d83rw46jb02or3/_usr_bin_mergerfs.0.crash.txt?dl=0

Upon failture to mount at boot, if I attempt to manually mount via this command:

sudo mergerfs -o use_ino,cache.files=off,dropcacheonclose=true,allow_other,ignorepponrename=true,func.getattr=newest,category.create=mfs,fsname=mergerFS /home/eckoflyte/mergerFS\* /home/eckoflyte/drivepool

I get the following error:

fuse: bad mount point `/home/eckoflyte/drivepool': Transport endpoint is not connected

A quick listing of the mount folder shows "?" for permissions, owner and group:

d?????????  ? ?         ?             ?            ? drivepool

I have to manually unmount before succesfully remounting via mergerFS:

sudo umount -l ~/drivepool
sudo mergerfs -o use_ino,cache.files=off,dropcacheonclose=true,allow_other,ignorepponrename=true,func.getattr=newest,category.create=mfs,fsname=mergerFS /home/eckoflyte/mergerFS\* /home/eckoflyte/drivepool

Expected behavior

Automatically mount at boot 100% of the time.

Actual behavior

It will successfully mount sometimes on boot and unsuccessfully on others (appears to be random).

Precise steps to reproduce the behavior

Explicitly list all steps to reproduce. Preferably create a minimal example of the problem using standard command line tools. The more variables (apps, settings, etc.) that are involved the more difficult it is to debug. Also, please be sure to have read all of the README. It contains a lot of information regarding known system and user issues.

System information

Please provide as much of the following information as possible:

  • mergerfs version: mergerfs -V
    mergerfs version: 2.29.0-17-g831dba3
    FUSE library version: 2.9.7-mergerfs_2.29.0
    fusermount version: 2.9.7-mergerfs_2.29.0
    using FUSE kernel interface version 7.31

  • mergerfs settings: cat /etc/fstab or the command line arguments
    /dev/mapper/vgubuntu-root / ext4 errors=remount-ro 0 1
    UUID=1DA1-7A4B /boot/efi vfat umask=0077 0 1
    /dev/mapper/ubuntu--vg-swap_1 none swap sw 0 0
    /dev/mapper/vgubuntu-swap_1 none swap sw 0 0

UUID=a0840e4a-2c92-4ac8-892d-2d7b9044e900 /home/eckoflyte/PARITY01 ext4 defaults 0 0
UUID=c41a45a5-59a0-41b2-85a4-16c8a57ab348 /home/eckoflyte/PARITY02 ext4 defaults 0 0
UUID=0ab0197e-e77a-4ed1-ab8b-293a7e880025 /home/eckoflyte/mergerFS01 ext4 defaults 0 0
UUID=173f2486-ffbd-4622-b79b-74c7dbce2771 /home/eckoflyte/mergerFS02 ext4 defaults 0 0
UUID=008fed4f-a471-4531-9bbf-5a83445bdb80 /home/eckoflyte/mergerFS03 ext4 defaults 0 0
UUID=ccc707b6-11e1-4582-9ed3-ef651c2f0af0 /home/eckoflyte/mergerFS04 ext4 defaults 0 0
UUID=5c8bdfa7-5125-455d-9510-a612308581c3 /home/eckoflyte/mergerFS05 ext4 defaults 0 0
UUID=1d97cee4-fb44-4432-b06a-a991c4f218db /home/eckoflyte/mergerFS06 ext4 defaults 0 0
UUID=00502249-ce2f-4555-b35a-d5a1c7c08719 /home/eckoflyte/mergerFS07 ext4 defaults 0 0
UUID=f88cbed6-43c8-4430-b30a-29abdf095cf2 /home/eckoflyte/mergerFS08 ext4 defaults 0 0
UUID=842a7b25-4519-4ab3-b3a2-a1ffec3e8580 /home/eckoflyte/mergerFS09 ext4 defaults 0 0
UUID=731a2464-b931-41bd-b32f-92c73bc4f361 /home/eckoflyte/mergerFS10 ext4 defaults 0 0
UUID=c9c299df-f968-4a97-a47c-b6e5f64cb786 /home/eckoflyte/mergerFS11 ext4 defaults 0 0

/home/eckoflyte/mergerFS* /home/eckoflyte/drivepool mergerfs use_ino,cache.files=off,dropcacheonclose=true,allow_other,ignorepponrename=true,func.getattr=newest,category.create=mfs,fsname=mergerFS 0 0

  • Linux version: uname -a
    Linux mspiggySERVER 5.4.0-26-generic support RHEL6 #30-Ubuntu SMP Mon Apr 20 16:58:30 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

  • Versions of any additional software being used
    na

  • List of drives, filesystems, & sizes: df -h
    Filesystem Size Used Avail Use% Mounted on
    udev 32G 0 32G 0% /dev
    tmpfs 6.3G 5.9M 6.3G 1% /run
    /dev/mapper/vgubuntu-root 915G 499G 370G 58% /
    tmpfs 32G 0 32G 0% /dev/shm
    tmpfs 5.0M 4.0K 5.0M 1% /run/lock
    tmpfs 32G 0 32G 0% /sys/fs/cgroup
    mergerFS 89T 82T 6.8T 93% /home/eckoflyte/drivepool
    /dev/loop0 9.2M 9.2M 0 100% /snap/canonical-livepatch/95
    /dev/loop1 55M 55M 0 100% /snap/core18/1705
    /dev/loop3 28M 28M 0 100% /snap/snapd/7264
    /dev/loop2 50M 50M 0 100% /snap/snap-store/433
    /dev/loop4 63M 63M 0 100% /snap/gtk-common-themes/1506
    /dev/loop5 94M 94M 0 100% /snap/core/8935
    /dev/sdd1 5.5T 4.9T 568G 90% /home/eckoflyte/mergerFS04
    /dev/loop6 94M 94M 0 100% /snap/core/9066
    /dev/sdc1 5.5T 5.0T 474G 92% /home/eckoflyte/mergerFS02
    /dev/nvme0n1p1 511M 7.8M 504M 2% /boot/efi
    /dev/sde1 5.5T 4.8T 640G 89% /home/eckoflyte/mergerFS01
    /dev/loop7 243M 243M 0 100% /snap/gnome-3-34-1804/27
    /dev/loop8 241M 241M 0 100% /snap/gnome-3-34-1804/24
    /dev/sdi1 9.1T 8.5T 143G 99% /home/eckoflyte/PARITY01
    /dev/sdm1 9.1T 8.4T 646G 94% /home/eckoflyte/mergerFS03
    /dev/sdl1 9.1T 8.4T 647G 93% /home/eckoflyte/mergerFS06
    /dev/sdb1 9.1T 8.4T 650G 93% /home/eckoflyte/mergerFS10
    /dev/sdg1 9.1T 8.4T 650G 93% /home/eckoflyte/mergerFS05
    /dev/sdh1 9.1T 8.4T 649G 93% /home/eckoflyte/mergerFS08
    /dev/sda1 9.1T 8.4T 649G 93% /home/eckoflyte/mergerFS11
    /dev/sdk1 9.1T 8.4T 651G 93% /home/eckoflyte/mergerFS07
    /dev/sdf1 9.1T 8.5T 608G 94% /home/eckoflyte/PARITY02
    /dev/sdj1 9.1T 8.4T 646G 94% /home/eckoflyte/mergerFS09
    tmpfs 6.3G 20K 6.3G 1% /run/user/1000

  • strace of application having problem: strace -f -o /tmp/app.strace.txt <cmd> or strace -f -p <appPID> -o /tmp/app.strace.txt
    na

  • strace of mergerfs while app tried to do it's thing: strace -f -p <mergerfsPID> -o /tmp/mergerfs.strace.txt
    na

@eckozen84
Copy link
Author

I want to add some extra info. Upon a failed mount at boot, I ran the following command to check boot logs - it says it mounted just fine, but obviously hasn't.

eckoflyte@mspiggySERVER:~$ journalctl -b | grep drivepool
Apr 25 22:50:26 mspiggySERVER systemd[1]: Mounting /home/eckoflyte/drivepool...
Apr 25 22:50:26 mspiggySERVER systemd[1]: Mounted /home/eckoflyte/drivepool.

@trapexit
Copy link
Owner

2.29.0-17-g831dba3

Why are you using master? You should be using the latest stable release.

If it crashes at boot it should crash under normal mount. Have you tried mounting and unmounting in a loop to see if you can reproduce it? It'd going to be very difficult to replicate and debug at boot.

@eckozen84
Copy link
Author

I've downgraded back to the most recent stable release

mergerfs version: 2.29.0
FUSE library version: 2.9.7-mergerfs_2.29.0
fusermount version: 2.9.7-mergerfs_2.29.0
using FUSE kernel interface version 7.31

Rebooted and it failed to mount at boot. I then manually unmounted and remounted about a dozen times with no issues. Im stumped.

@trapexit
Copy link
Owner

trapexit commented Apr 25, 2020

It could be the kernel. There are/were issues with FUSE on 5.4.X unfortunately. Though odd it would be only at boot. Maybe there is some async thing going on that causes problems.

@trapexit
Copy link
Owner

Unfortunately, there isn't a way to put ordering into fstab. You'd have to put it as a systemd mount.

@eckozen84
Copy link
Author

eckozen84 commented Apr 25, 2020

I thought it could be a boot order issue as well but during the times it would successfully mount at boot, it would appear order didn't matter. Here are the boot logs for a successful mount:

eckoflyte@mspiggySERVER:~$ journalctl -b | grep 'Mounting\|Mounted'
Apr 26 01:54:21 mspiggySERVER systemd[1]: Mounting Huge Pages File System...
Apr 26 01:54:21 mspiggySERVER systemd[1]: Mounting POSIX Message Queue File System...
Apr 26 01:54:21 mspiggySERVER systemd[1]: Mounting Kernel Debug File System...
Apr 26 01:54:21 mspiggySERVER systemd[1]: Mounting Kernel Trace File System...
Apr 26 01:54:21 mspiggySERVER systemd[1]: Mounted Huge Pages File System.
Apr 26 01:54:21 mspiggySERVER systemd[1]: Mounted POSIX Message Queue File System.
Apr 26 01:54:21 mspiggySERVER systemd[1]: Mounted Kernel Debug File System.
Apr 26 01:54:21 mspiggySERVER systemd[1]: Mounted Kernel Trace File System.
Apr 26 01:54:21 mspiggySERVER systemd[1]: Mounting FUSE Control File System...
Apr 26 01:54:21 mspiggySERVER systemd[1]: Mounting Kernel Configuration File System...
Apr 26 01:54:21 mspiggySERVER systemd[1]: Mounted FUSE Control File System.
Apr 26 01:54:21 mspiggySERVER systemd[1]: Mounted Kernel Configuration File System.
Apr 26 01:54:21 mspiggySERVER systemd[1]: Mounting /home/eckoflyte/drivepool...
Apr 26 01:54:21 mspiggySERVER systemd[1]: Mounting Mount unit for canonical-livepatch, revision 95...
Apr 26 01:54:21 mspiggySERVER systemd[1]: Mounting Mount unit for core, revision 8935...
Apr 26 01:54:21 mspiggySERVER systemd[1]: Mounting Mount unit for core, revision 9066...
Apr 26 01:54:21 mspiggySERVER systemd[1]: Mounting Mount unit for core18, revision 1705...
Apr 26 01:54:21 mspiggySERVER systemd[1]: Mounting Mount unit for gnome-3-34-1804, revision 24...
Apr 26 01:54:21 mspiggySERVER systemd[1]: Mounting Mount unit for gnome-3-34-1804, revision 27...
Apr 26 01:54:21 mspiggySERVER systemd[1]: Mounting Mount unit for gtk-common-themes, revision 1506...
Apr 26 01:54:21 mspiggySERVER systemd[1]: Mounting Mount unit for snap-store, revision 433...
Apr 26 01:54:21 mspiggySERVER systemd[1]: Mounting Mount unit for snapd, revision 7264...
Apr 26 01:54:21 mspiggySERVER systemd[1]: Mounted /home/eckoflyte/drivepool.
Apr 26 01:54:21 mspiggySERVER systemd[1]: Mounted Mount unit for canonical-livepatch, revision 95.
Apr 26 01:54:21 mspiggySERVER systemd[1]: Mounted Mount unit for core, revision 9066.
Apr 26 01:54:21 mspiggySERVER systemd[1]: Mounting /home/eckoflyte/mergerFS01...
Apr 26 01:54:21 mspiggySERVER systemd[1]: Mounting /home/eckoflyte/mergerFS02...
Apr 26 01:54:21 mspiggySERVER systemd[1]: Mounting /home/eckoflyte/mergerFS04...
Apr 26 01:54:21 mspiggySERVER systemd[1]: Mounted Mount unit for core, revision 8935.
Apr 26 01:54:21 mspiggySERVER systemd[1]: Mounting /boot/efi...
Apr 26 01:54:21 mspiggySERVER systemd[1]: Mounted Mount unit for snap-store, revision 433.
Apr 26 01:54:21 mspiggySERVER systemd[1]: Mounted /home/eckoflyte/mergerFS01.
Apr 26 01:54:21 mspiggySERVER systemd[1]: Mounted /boot/efi.
Apr 26 01:54:21 mspiggySERVER systemd[1]: Mounted /home/eckoflyte/mergerFS02.
Apr 26 01:54:21 mspiggySERVER systemd[1]: Mounted /home/eckoflyte/mergerFS04.
Apr 26 01:54:21 mspiggySERVER systemd[1]: Mounted Mount unit for gnome-3-34-1804, revision 24.
Apr 26 01:54:21 mspiggySERVER systemd[1]: Mounted Mount unit for gnome-3-34-1804, revision 27.
Apr 26 01:54:21 mspiggySERVER systemd[1]: Mounted Mount unit for gtk-common-themes, revision 1506.
Apr 26 01:54:21 mspiggySERVER systemd[1]: Mounted Mount unit for snapd, revision 7264.
Apr 26 01:54:21 mspiggySERVER systemd[1]: Mounted Mount unit for core18, revision 1705.
Apr 26 01:54:21 mspiggySERVER systemd[1]: Mounting /home/eckoflyte/PARITY01...
Apr 26 01:54:21 mspiggySERVER systemd[1]: Mounting /home/eckoflyte/PARITY02...
Apr 26 01:54:21 mspiggySERVER systemd[1]: Mounting /home/eckoflyte/mergerFS03...
Apr 26 01:54:21 mspiggySERVER systemd[1]: Mounting /home/eckoflyte/mergerFS05...
Apr 26 01:54:21 mspiggySERVER systemd[1]: Mounting /home/eckoflyte/mergerFS06...
Apr 26 01:54:21 mspiggySERVER systemd[1]: Mounting /home/eckoflyte/mergerFS07...
Apr 26 01:54:21 mspiggySERVER systemd[1]: Mounting /home/eckoflyte/mergerFS08...
Apr 26 01:54:21 mspiggySERVER systemd[1]: Mounting /home/eckoflyte/mergerFS09...
Apr 26 01:54:21 mspiggySERVER systemd[1]: Mounting /home/eckoflyte/mergerFS10...
Apr 26 01:54:21 mspiggySERVER systemd[1]: Mounting /home/eckoflyte/mergerFS11...
Apr 26 01:54:21 mspiggySERVER systemd[1]: Mounted /home/eckoflyte/PARITY01.
Apr 26 01:54:21 mspiggySERVER systemd[1]: Mounted /home/eckoflyte/PARITY02.
Apr 26 01:54:21 mspiggySERVER systemd[1]: Mounted /home/eckoflyte/mergerFS03.
Apr 26 01:54:21 mspiggySERVER systemd[1]: Mounted /home/eckoflyte/mergerFS06.
Apr 26 01:54:21 mspiggySERVER systemd[1]: Mounted /home/eckoflyte/mergerFS05.
Apr 26 01:54:21 mspiggySERVER systemd[1]: Mounted /home/eckoflyte/mergerFS08.
Apr 26 01:54:21 mspiggySERVER systemd[1]: Mounted /home/eckoflyte/mergerFS11.
Apr 26 01:54:21 mspiggySERVER systemd[1]: Mounted /home/eckoflyte/mergerFS07.
Apr 26 01:54:21 mspiggySERVER systemd[1]: Mounted /home/eckoflyte/mergerFS09.
Apr 26 01:54:21 mspiggySERVER systemd[1]: Mounted /home/eckoflyte/mergerFS10.

@trapexit
Copy link
Owner

Apr 26 01:54:21 mspiggySERVER systemd[1]: Mounted FUSE Control File System.

When it does crash... can you confirm that the fuse control filesystem happens before mergerfs?

@eckozen84
Copy link
Author

eckozen84 commented Apr 25, 2020

I can confirm that is the case as I have checked repeatedly on both successful and unsuccessful mounts. I use the following output to confirm (correct me if I'm wrong). It appears as below on success/non-success and occurs before mounting of any drives.

eckoflyte@mspiggySERVER:~$ journalctl -b | grep 'fuse'
Apr 26 01:54:20 mspiggySERVER kernel: fuse: init (API version 7.31)
Apr 26 01:54:20 mspiggySERVER kernel: *** VALIDATE fuse ***
Apr 26 01:54:20 mspiggySERVER kernel: *** VALIDATE fuse ***

@trapexit
Copy link
Owner

I was talking about the ordering as showing in your previous post. I imagine it does but just wanted to confirm.

@eckozen84
Copy link
Author

Yes it comes before any drives are mounted.

@eckozen84
Copy link
Author

Just wanted to add some feedback here. I have reinstalled a fresh copy of Ubuntu 20.04 on bare metal with a new SSD and setup mergerFS stable release again but continue to run into the random fail to mount at boot via fstab, can only conclude that its a kernel problem.

@trapexit
Copy link
Owner

trapexit commented May 7, 2020

OK. I'll try setting up a VM to try and reproduce it. Have you tried older releases? 2.28.3? Your home directory isn't encrypted is it? Have you tried a non-home directory location for your mounts?

@eckozen84
Copy link
Author

I haven’t tried an older release, I can give that a whirl tomorrow. Home directory is not encrypted. I haven’t tried placing the mount outside the home directory, however I did have this identical folder setup on Ubuntu 18.04 without issue.

@trapexit
Copy link
Owner

Any updates?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants