The directory used in the livenessProbe will be <volumeMount.mountPath>/lost+found
Don’t set a short interval for livenessProbe.periodSeconds, e.g., 1s. The liveness command is CPU consuming.
Manually Restart Workload Containers
This solution is applied only if:
The Longhorn volume is reattached and remounted automatically.
The above setup is not included when the related workload is launched. In this case, the volume mount propagation is not Bidirectional, and the Longhorn remount operation won’t be propagated to the workload containers if the containers are not restarted.
To restart the workload containers,
Figure out on which node the related workload’s containers are running
kubectl -n <namespace of your workload> get pods <workload's pod name> -o wide
Connect to the node. e.g., ssh
Figure out the containers belonging to the workload
By checking the columns COMMAND and NAMES of the output, you can find the corresponding container