# Pre-switch check

**URL:** <https://forums.foundationdb.org/t/pre-switch-check/1045>\
**Category:** Using FoundationDB\
**Created:** [January 23, 2019, 1:22am UTC](https://forums.foundationdb.org/t/pre-switch-check/1045 "2019-01-23T01:22:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cdonati](https://sea1.discourse-cdn.com/foundationdb/user_avatar/forums.foundationdb.org/cdonati/32/515_2.png) [@cdonati](https://forums.foundationdb.org/u/cdonati)\
**Post date:** [January 23, 2019, 1:22am UTC](https://forums.foundationdb.org/t/pre-switch-check/1045/1 "2019-01-23T01:22:02Z")

</div>

It would be convenient if `fdbdr switch` ensured that each cluster had a `dr_agent` pointing to the other cluster before locking the new destination cluster. When I was experimenting with it, I incorrectly assumed that the `dr_agent` on the original source cluster would be enough. I was confused when the `fdbdr switch` command hung and both clusters were locked.

---

<div class="post-metadata">

**Author:** ![mengxu](https://sea1.discourse-cdn.com/foundationdb/user_avatar/forums.foundationdb.org/mengxu/32/893_2.png) [@mengxu](https://forums.foundationdb.org/u/mengxu)\
**Post date:** [January 24, 2019, 6:56am UTC](https://forums.foundationdb.org/t/pre-switch-check/1045/2 "2019-01-24T06:56:13Z")

</div>

Would you like to open an issue on foundationdb’s github [1] about this?

[1] [https://github.com/apple/foundationdb](https://github.com/apple/foundationdb)

---

<div class="post-metadata">

**Author:** ![cdonati](https://sea1.discourse-cdn.com/foundationdb/user_avatar/forums.foundationdb.org/cdonati/32/515_2.png) [@cdonati](https://forums.foundationdb.org/u/cdonati)\
**Post date:** [January 24, 2019, 7:34pm UTC](https://forums.foundationdb.org/t/pre-switch-check/1045/3 "2019-01-24T19:34:55Z")

</div>

For sure. For reference, here’s the issue I just opened: [https://github.com/apple/foundationdb/issues/1083](https://github.com/apple/foundationdb/issues/1083)
