Hello,<div><br></div><div>Is it possible to block write to primary node when secondary is not available?</div><div><br></div><div>That is, suppose PostgreSQL asks the filesystem to write some bytes. I'd like drbd to reply with "write OK" *only* if the data is written to both nodes. If secondary is unavailable because of network error, reply should be "not written".</div>
<div><br></div><div>What I understood from reading the docs is that unavailable secondary is considered non-critical, and drbd continues writing to primary.</div><div><br></div><div>Tested that as well - drbdadm disconnect resource, and primary can still write to mounted device.</div>
<div><br></div><div>Can this behaviour be changed?</div><div><br></div><div>Thanks for help,</div><div>Yuri.</div>