Reputation: 413
I want to setup a DRBD active/active configuration with two nodes. My application will be doing I/Os directly on the DRBD device. I haven't seen any option to enable caching within DRBD.
Is there any linux module that would allow me to setup a cache in between DRBD and the disk module? Any caching above DRBD module can lead to stale data being read by the nodes.
Upvotes: 0
Views: 1736
Reputation: 9826
DRBD itself has 3 protocol types with varying guarantees. You could try using B or even A. However, all types block until the local write has been successful. As for caching writes to the disk explicitly, this SO question might provide further pointers on what is possible to do. Especially dannysauer's answer looks interesting.
Upvotes: 0