Skip to content
This repository has been archived by the owner on Mar 9, 2019. It is now read-only.

How to use the same shared disk/filesystem with boltdb? Issue "no locks availabile" #690

Closed
kumukum opened this issue May 26, 2017 · 2 comments

Comments

@kumukum
Copy link

kumukum commented May 26, 2017

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.

@kumukum kumukum changed the title How to use the same shared disk/filesystem with boltdb? How to use the same shared disk/filesystem with boltdb? Issue "no locks availabile" May 26, 2017
@benbjohnson
Copy link
Member

@kumukum BoltDB doesn't allow multiple processes to access the same database file. It is also not safe to use on network file storage.

@muka
Copy link

muka commented Jul 10, 2017

As a side note, this won't work also on vagrant with NFS shares

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants