hookscript error for on pre-start: script does not exist with glusterfs

bzctoons

Renowned Member
Dec 19, 2011
2
0
66
Hello
I'm facing an issue when I restart a node :
- My node contains several lxc containers and each of them have a pre-hook script on a glusterfs volume
- It seems that the containers starts before glusterfs is ready

Is there any way to either wait for glusterfs , delay the start of the containers or retry to start every xx seconds ?
Thanks
 
delay the start of the containers

Either via the "First Guest Boot Delay": [1] or via the "Startup delay" for LXCs: [2] (and for completeness for VMs: [3]).

If all guests need the delay, the "First Guest Boot Delay" is probably the best and easiest way.

[1] https://pve.proxmox.com/wiki/Proxmox_Node_Management#first_guest_boot_delay
[1b] https://forum.proxmox.com/threads/delay-start-of-a-vm.111212/#post-479307
[2] https://pve.proxmox.com/wiki/Linux_Container#pct_startup_and_shutdown
[3] https://pve.proxmox.com/wiki/Qemu/KVM_Virtual_Machines#qm_startup_and_shutdown