MongoDB - changing data directory name changes dataHow to index dynamic attributes in MongoDBDesign the big...

Fantasy series with a god hiding in plain sight as a manservant to a former king's brother and an undead pirate woman who runs a brothel

Linearity Assumption

How can I differentiate duration vs starting time

Neglect higher order derivatives in expression

Was Opportunity's last message to Earth "My battery is low and it's getting dark"?

Coworker asking me to not bring cakes due to self control issue. What should I do?

Isn't a semicolon (';') needed after a function declaration in C++?

How to write Muḥammad ibn Mūsā al-Khwārizmī?

Renting a 2CV in France

Is it possible to detect 100% of SQLi with a simple regex?

How can I give a Ranger advantage on a check due to Favored Enemy without spoiling the story for the player?

Minimum Viable Product for RTS game?

Tikz: Perpendicular FROM a line

Quick Way to Extrude Line to Make Ledges?

Are all power cords made equal?

Crack the bank account's password!

Including proofs of known theorems in master's thesis

Taking an academic pseudonym?

Is "accuse people to be racist" grammatical?

Players preemptively rolling, even though their rolls are useless or are checking the wrong skills

How long can the stop in a stop-and-go be?

Is there a celebrity culture in academia and should we discourage it?

What is an efficient way to digitize a family photo collection?

In the Lost in Space intro why was Dr. Smith actor listed as a special guest star?



MongoDB - changing data directory name changes data


How to index dynamic attributes in MongoDBDesign the big data with mongo dbWhy sharding does not show any improvement?Sizing a MongoDB shard?Database for store images(Ubuntu) Tried to move my MongoDB database to an external drive and now it throws errorsMongoDB sharded cluster chunks distributionHow to speed up MongoDB chunk moving between shardsQuery sharded collection returns all the results from the primary shard AND from the other shardsMongoexport halts when it reaches 101 records













0















I am witnessing a very bizzare behaviour of MongoDB.



I launch MongoD on a test system (Windows 10, 64bit) like this:



"C:Program FilesMongoDBServer3.6binmongod.exe" --dbpath "C:MongoData"


I then shut down the server and replace the MongoData directory with a data set from a production server. I start mongod again, but I get a collection with 4 documents, which is what I used to have before I replaced my test data set with a real one.



That's not right, because I would expect to see loads of documents in a real data set. I then try dozens of things, including pointing MongoD to the data folder in its original location, which gives me all the documents from the real collection. Phew, the data is safe. But what is happening in my test system?



I have noticed that if I rename the folder in my test system to MongoData2 and lanuch mongod pointing at it then I get my proper production data set. but if I rename it back to MongoData and launch mongod pointing at this folder I get 4 documents again.



What is causing this?









share



























    0















    I am witnessing a very bizzare behaviour of MongoDB.



    I launch MongoD on a test system (Windows 10, 64bit) like this:



    "C:Program FilesMongoDBServer3.6binmongod.exe" --dbpath "C:MongoData"


    I then shut down the server and replace the MongoData directory with a data set from a production server. I start mongod again, but I get a collection with 4 documents, which is what I used to have before I replaced my test data set with a real one.



    That's not right, because I would expect to see loads of documents in a real data set. I then try dozens of things, including pointing MongoD to the data folder in its original location, which gives me all the documents from the real collection. Phew, the data is safe. But what is happening in my test system?



    I have noticed that if I rename the folder in my test system to MongoData2 and lanuch mongod pointing at it then I get my proper production data set. but if I rename it back to MongoData and launch mongod pointing at this folder I get 4 documents again.



    What is causing this?









    share

























      0












      0








      0








      I am witnessing a very bizzare behaviour of MongoDB.



      I launch MongoD on a test system (Windows 10, 64bit) like this:



      "C:Program FilesMongoDBServer3.6binmongod.exe" --dbpath "C:MongoData"


      I then shut down the server and replace the MongoData directory with a data set from a production server. I start mongod again, but I get a collection with 4 documents, which is what I used to have before I replaced my test data set with a real one.



      That's not right, because I would expect to see loads of documents in a real data set. I then try dozens of things, including pointing MongoD to the data folder in its original location, which gives me all the documents from the real collection. Phew, the data is safe. But what is happening in my test system?



      I have noticed that if I rename the folder in my test system to MongoData2 and lanuch mongod pointing at it then I get my proper production data set. but if I rename it back to MongoData and launch mongod pointing at this folder I get 4 documents again.



      What is causing this?









      share














      I am witnessing a very bizzare behaviour of MongoDB.



      I launch MongoD on a test system (Windows 10, 64bit) like this:



      "C:Program FilesMongoDBServer3.6binmongod.exe" --dbpath "C:MongoData"


      I then shut down the server and replace the MongoData directory with a data set from a production server. I start mongod again, but I get a collection with 4 documents, which is what I used to have before I replaced my test data set with a real one.



      That's not right, because I would expect to see loads of documents in a real data set. I then try dozens of things, including pointing MongoD to the data folder in its original location, which gives me all the documents from the real collection. Phew, the data is safe. But what is happening in my test system?



      I have noticed that if I rename the folder in my test system to MongoData2 and lanuch mongod pointing at it then I get my proper production data set. but if I rename it back to MongoData and launch mongod pointing at this folder I get 4 documents again.



      What is causing this?







      mongodb





      share












      share










      share



      share










      asked 3 mins ago









      Tony SepiaTony Sepia

      1134




      1134






















          0






          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "182"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdba.stackexchange.com%2fquestions%2f230577%2fmongodb-changing-data-directory-name-changes-data%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Database Administrators Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdba.stackexchange.com%2fquestions%2f230577%2fmongodb-changing-data-directory-name-changes-data%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Szabolcs (Ungheria) Altri progetti | Menu di navigazione48°10′14.56″N 21°29′33.14″E /...

          Discografia di Klaus Schulze Indice Album in studio | Album dal vivo | Singoli | Antologie | Colonne...

          How to make inet_server_addr() return localhost in spite of ::1/128RETURN NEXT in Postgres FunctionConnect to...