MongoDB Error2: 分片串联节点失败

MongoDB Error2: 分片串联节点失败

配置分片集群报错

MongoDB6.0报错,5.0不报错
notion image
[direct: mongos] admin> sh.addShard("shard1/192.168.92.159:27001,192.168.92.160:27001,192.168.92.161:27001") MongoServerError: Cannot add shard1/192.168.92.159:27001,192.168.92.160:27001,192.168.92.161:27001 as a shard since the implicit default write concern on this shard is set to {w : 1}, because number of arbiters in the shard's configuration caused the number of writable voting members not to be strictly more than the voting majority. Change the shard configuration or set the cluster-wide write concern using the setDefaultRWConcern command and try again. [direct: mongos] admin> sh.addShard("shard2/192.168.92.160:27002,192.168.92.161:27002,192.168.92.159:27002") MongoServerError: Cannot add shard2/192.168.92.160:27002,192.168.92.161:27002,192.168.92.159:27002 as a shard since the implicit default write concern on this shard is set to {w : 1}, because number of arbiters in the shard's configuration caused the number of writable voting members not to be strictly more than the voting majority. Change the shard configuration or set the cluster-wide write concern using the setDefaultRWConcern command and try again. [direct: mongos] admin> sh.addShard("shard1/192.168.92.159:27001,192.168.92.160:27001,192.168.92.161:27001") MongoServerError: Cannot add shard1/192.168.92.159:27001,192.168.92.160:27001,192.168.92.161:27001 as a shard since the implicit default write concern on this shard is set to {w : 1}, because number of arbiters in the shard's configuration caused the number of writable voting members not to be strictly more than the voting majority. Change the shard configuration or set the cluster-wide write concern using the setDefaultRWConcern command and try again.