Promox LXC wait on CephFS mount

drevilish

New Member
Oct 22, 2023
2
0
1
I have a number of LXC containers that use a mount path to:
Code:
mp0: /mnt/pve/cephfs/config/stuff,mp=/mnt/config,shared=1
CephFS takes a few moments to connect and mount when rebooting the server.

I've tried adding a delay to the container to boot after a delayed amount of time, neither of which actually gets the Container to start correctly after a reboot.

I've tried adding:
Code:
ConditionPathIsReadWrite=/mnt/pve/cephfs
ConditionDirectoryNotEmpty=/mnt/pve/cephfs
to
Code:
/lib/systemd/system/pve-guests.service

https://forum.proxmox.com/threads/delaying-vms-until-ceph-cephfs-is-mounted.120116/


Manually starting the Container after CFS has mounted works fine.