Read more

Don't use flock with GlusterFS

Kim Klotz
May 25, 2023Software engineer at makandra GmbH

We recently encountered a problem with GlusterFS (7.x) when an application used the flock syscall on a GlusterFS path. If somehow two flock syscalls are made at the same time, the lock will never be released. And all future flock syscalls will wait forever.

Illustration web development

Do you need DevOps-experts?

Your development team has a full backlog? No time for infrastructure architecture? Our DevOps team is ready to support you!

  • We build reliable cloud solutions with Infrastructure as code
  • We are experts in security, Linux and databases
  • We support your dev team to perform
Read more Show archive.org snapshot

This problem doesn't happen only on our infrastructure. There are a lot of bugreports, e.g.:

There are also entries regarding flock or locking in general in each major release notes:

Posted by Kim Klotz to makandra Operations (2023-05-25 00:57)