Backup storage Directory in possible race with mergerfs

rml

Member
Apr 24, 2019
31
0
11
46
An intermittent problem where sometimes, but not always, the creation of the folders (dump, images etc) from a backup dir will occur before the share is mounted on boot, which then prevents the share from mounting as the mountpoint now isn't empty.
Is there a way to choose the order of this.

backup dir
backupdir.PNG

Mounting over a mergerfs/ snapraid

/etc/fstab
/mnt/snapdisks/disk1:/mnt/snapdisks/disk2:/mnt/snapdisks/disk3:/mnt/snapdisks/disk4 /mergerfs fuse.mergerfs allow_other,direct_io,use_ino,category.create=lfs,moveonenospc=true,minfreespace=20G,fsname=mergerfsPool 0 0


I guess the answer is probably 'don't put it on a mergerfs' but I'm now interested just to understand how the order works

PS Server is about learning so being massively performant isn't a current issue but feedback on how stupid an idea this is is welcome.
 
Last edited:
Have you tried the "mkdir" and "is_mountpoint" options already? You can set them using pvesm
 
Apologies, I missed those. I'll test and report back, though I can't see the mkdir one helping as the directory exists, it's whether it's mounted by merger in time before


--is_mountpoint looks likely though, thank you