Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-27291

Can't start mongod if there's no config server(csrs) connections are available

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.2.10
    • Component/s: Replication
    • Labels:
      None
    • ALL
    • Hide

      1) Setup sharded cluster (CSRS)
      2) Insert some data to cluster
      3) Take backup (snapshot or cold file copy backup) from one member
      4) Shutdown all mongod and config server
      5) Start mongod with backup data files without replication options

      Show
      1) Setup sharded cluster (CSRS) 2) Insert some data to cluster 3) Take backup (snapshot or cold file copy backup) from one member 4) Shutdown all mongod and config server 5) Start mongod with backup data files without replication options

      If there's no config servers (CSRS) are available, we can't start mongod even without replication configuration options.

      I have seen the SERVER-23041. And My case is little bit different.
      I want to start mongod as standalone with backup data (backup was taken from sharded cluster member). Mongodb is trying to initialize something on config server (old config server). But config server doesn't exist or host name is changed or not accessible at the time of recovery old backup copy.

      Mongod print this message all the time, and refuse mongo client connection.

      SHARDING [ShardingState initialization] Error initializing sharding state, sleeping for 2 seconds and trying again ...
      

            Assignee:
            kelsey.schubert@mongodb.com Kelsey Schubert
            Reporter:
            sunguck.lee@gmail.com 아나 하리
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: