title: MongoDB : Is it possible to store "Data Directory" on GlusterFS Volume (across Multiple VMs), so that standby Mongo Server can use it when required?
body: <p>I'm a newbie in MongoDB. And I'm sorry if the Question is not clear enough. What i mean is:</p>
  
  <ul>
  <li>I have clustered <em>GlusterFS Volumes</em> (configured on top of 2 <em>CentOS</em>). Which means, <strong>same data directory</strong> can be read from both CentOS boxes:</li>
  <li>Lets call: <code>CentOS-1</code> and <code>CentOS-2</code></li>
  <li>And i wanna install MongoDB Servers <code>mongod</code> on both CentOS boxes. But start (run) only one. (The other one on <code>CentOS-2</code> might be purposely stopped)</li>
  <li>Then the Applications will be connecting to that one (current Active) on <code>CentOS-1</code>.</li>
  </ul>
  
  <p>Here the main question comes in (please refer to the picture below):</p>
  
  <ul>
  <li>Let's say: if <code>CentOS-1</code> Server goes down, and i manually start the another MongoDB Server (<code>mongod</code> on the another box <code>CentOS-2</code>), and let all the Applications to connect to <code>CentOS-2</code>:</li>
  </ul>
  
  <p>(1) <strong>Will everything be still working?</strong><br />
  (2) Will there be 'lock' issues as in MySQL?<br />
  (3) If it works, does it mean, we can add any amount of MongoDB Servers (in stand-by mode), and whenever they swing, there's no problem?</p>
  
  <p><a href="https://i.stack.imgur.com/MZGgL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MZGgL.png" alt="enter image description here"></a></p>
  
  <hr>
  
  <p>Note:</p>
  
  <h2>Only 1 Server at a time will be running. Not like: the Data Store is being accessed by multiple Server.</h2>
  
  <p>Thanks for all opinions in advanced :)</p>