I took down the full cluster and started again to see if maybe a reset
would fix it but now both replica sets say sharding isn't enabled.
maildumpset1:PRIMARY> db.runCommand( {"shardingState": 1} )
{ "enabled" : false, "ok" : 1 }
maildumpset2:PRIMARY> db.runCommand( {"shardingState": 1} )
{ "enabled" : false, "ok" : 1 }
mongos> sh.status()
--- Sharding Status ---
sharding version: {
"_id" : 1,
"minCompatibleVersion" : 5,
"currentVersion" : 6,
"clusterId" : ObjectId("52bdc08bcec41b622f955288")
}
shards:
{ "_id" : "maildumpset1", "host" :
"maildumpset1/
maildump1.gwtc.net:27018,
maildump2.gwtc.net:27018" }
{ "_id" : "maildumpset2", "host" :
"maildumpset2/
maildump5.gwtc.net:27018,
maildump6.gwtc.net:27018" }
balancer:
Currently enabled: no
Currently running: no
Failed balancer rounds in last 5 attempts: 0
Migration Results for the last 24 hours:
No recent migrations
databases:
{ "_id" : "admin", "partitioned" : false, "primary" : "config" }
{ "_id" : "mail", "partitioned" : true, "primary" : "maildumpset1" }
mail.message_data
shard key: { "message_identifier" : 1 }
chunks:
maildumpset1 21583
maildumpset2 21580
too many chunks to print, use verbose if you
want to force print
{ "_id" : "system", "partitioned" : false, "primary" :
"maildumpset1" }
{ "_id" : "test", "partitioned" : false, "primary" : "maildumpset1" }
mongos> db.message_data.stats()
{
"sharded" : true,
"paddingFactorNote" : "paddingFactor is unused and
unmaintained in 3.0. It remains hard coded to 1.0 for compatibility
only.",
"userFlags" : 2,
"capped" : false,
"ns" : "mail.message_data",
"count" : 1244603433,
"numExtents" : 18323,
"size" : NumberLong("39083076010236"),
"storageSize" : NumberLong("39248852941216"),
"totalIndexSize" : 253195545344,
"indexSizes" : {
"_id_" : 48499623200,
"message_identifier_1_chunk_1" : 204695922144
},
"avgObjSize" : 31402.03134104323,
"nindexes" : 2,
"nchunks" : 43163,
"shards" : {
"maildumpset1" : {
"ns" : "mail.message_data",
"count" : 805690107,
"size" : NumberLong("25047604843804"),
"avgObjSize" : 31088,
"numExtents" : 11761,
"storageSize" : NumberLong("25204314784352"),
"lastExtentSize" :
2146426864,
"paddingFactor" : 1,
"paddingFactorNote" : "paddingFactor is unused
and unmaintained in 3.0. It remains hard coded to 1.0 for
compatibility only.",
"userFlags" : 2,
"capped" : false,
"nindexes" : 2,
"totalIndexSize" : 160857395664,
"indexSizes" : {
"_id_" : 29505066416,
"message_identifier_1_chunk_1" : 131352329248
},
"ok" : 1
},
"maildumpset2" : {
"ns" : "mail.message_data",
"count" : 438913326,
"size" : NumberLong("14035471166432"),
"avgObjSize" : 31977,
"numExtents" : 6562,
"storageSize" : NumberLong("14044538156864"),
"lastExtentSize" :
2146426864,
"paddingFactor" : 1,
"paddingFactorNote" : "paddingFactor is unused
and unmaintained in 3.0. It remains hard coded to 1.0 for
compatibility only.",
"userFlags" : 2,
"capped" : false,
"nindexes" : 2,
"totalIndexSize" : 92338149680,
"indexSizes" : {
"_id_" : 18994556784,
"message_identifier_1_chunk_1" : 73343592896
},
"ok" : 1
}
},
"ok" : 1
> To view this discussion on the web visit
https://groups.google.com/d/msgid/mongodb-user/CAOe6dJCitJ-%3DH286zNyqHgUmsbj7tnrwpYttH7vrGu9F3uj92w%40mail.gmail.com.