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.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!