In larger clusters, it can be quite a few seconds until all the OSD's are happy and cephfs is able to mount. Just restarted one cluster today (power loss) and noticed that while all the KVM's started fine, any LXC that used a CEPHFS bind-mount wouldn't start until cephfs was ready. (got unable to mount messages until it was alive)
Thinking that adding:
to
should take care of that dependency. Posting in case it helps others, or in case pmx guys have a better suggestion
Thinking that adding:
Code:
ConditionPathIsReadWrite=/mnt/pve/cephfs
ConditionDirectoryNotEmpty=/mnt/pve/cephfs
to
Code:
lrwxrwxrwx 1 root root 38 Jul 25 2021 pve-guests.service -> /lib/systemd/system/pve-guests.service
should take care of that dependency. Posting in case it helps others, or in case pmx guys have a better suggestion
Last edited: