I tried to delete the previous sharding from mongos but it’s not deleted,
whenever I execute command sh.status(), it’s showing following two shards.
shards:
{ “_id” : “m103-example”, “host” : “m103-example/192.168.103.100:27011,m103:27012,m103:27013”, “state” : 1, “draining” : true }
{ “_id” : “m103-repl”, “host” : “m103-repl/192.168.103.100:27001,m103:27002,m103:27003”, “state” : 1 }
how to delete these shards permanently so that I can add the shard again. validation command giving me following error
vagrant@m103:~/shard_conf$ validate_lab_first_sharded_cluster
Mongos not configured correctly - make sure you have only added one shard to
your cluster.