Mount CephFS Fuse at Boot (Persistent)

Mihai

Renowned Member
Dec 22, 2015
111
8
83
40
I am unable to get persistent cephfs mount working as per these official instructions.

Using Ubuntu 24.04.

This will not mount at boot:

Code:
#Mount ceph filesystem for video recordings
#DEVICE PATH       TYPE      OPTIONS
none    /mnt/videorecordings  fuse.ceph ceph.id=nvr02,_netdev,defaults  0 0

Mounting manually using
Code:
mount -a
works.

Dmesg shows filtering for anything with "fuse" or "ceph" has the following:

Code:
[    0.854292] fuse: init (API version 7.44)
[    3.152806] systemd[1]: Reached target ceph-fuse.target - ceph target allowing to start/stop all ceph-fuse@.service instances at once.
[    3.176333] systemd[1]: Starting modprobe@fuse.service - Load Kernel Module fuse...
[    3.188453] systemd[1]: modprobe@fuse.service: Deactivated successfully.
[    3.188638] systemd[1]: Finished modprobe@fuse.service - Load Kernel Module fuse.
[    3.190639] systemd[1]: Mounting sys-fs-fuse-connections.mount - FUSE Control File System...
[    3.197833] systemd[1]: Mounted sys-fs-fuse-connections.mount - FUSE Control File System.


Trying to delay the startup with timeo doesn't work since ceph fuse doesn't support that option.

and adding _netdev doesn't seem to help.

I know this isn't a proxmox specific issue, but has anyone solved this issue somehow?
 
I got some help on the ceph subreddit.

Adding x-systemd.automount,x-systemd.idle-timeout=1min to the fstab command seems to have done the trick.