[boltdb] How to use the same shared disk/filesystem with boltdb?

I need to share a boltdb database amongt 2 processes (on 2 different linux hosts). One will be alive, the other will be a cold standby that is woken up by pacemaker when the first one is detected as dead.

But problem I’m seeing is that when the cold standby starts, it cannot access the bolt db because of a “no locks available” error.

When the original master recovers, it can successfully open the database.

Does anyone know what is going on or what I’m doing wrong or what I can do to achieve my goal of 2 processes (cold standby woken up for failover) accessing the same boltdb file on a shared disk?

Much appreciated.

What’s the mechanism behind the shared disk? NFS? If so, the locking will probably be an issue. When the one NFS client goes away while holding locks, there is nothing to tell the NFS server the locks are not held any more. They will be held indefinitely until that NFS client comes back up again. (Or until you restart nfslockd.)

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.