Hi
Chapter 3: Sharding Lab - Shard a Collection
Any suggestion for that error?
MongoDB Enterprise mongos> sh.addShard(“m103-repl-2/192.168.103.100:27004”)
{
“ok” : 0,
“errmsg” : “can’t add shard ‘m103-repl-2/192.168.103.100:27004’ because a local database ‘m103’ exists in another m103-repl-2”,
“code” : 96,
“codeName” : “OperationFailed”,
“operationTime” : Timestamp(1559574111, 1),
“$clusterTime” : {
“clusterTime” : Timestamp(1559574111, 1),
“signature” : {
“hash” : BinData(0,“PO6WacVMiAdBgpiNjb5umH3vM88=”),
“keyId” : NumberLong(“6684910515103203355”)
}
}
}