Check rs.status() and remove unreachable members:
1) rs-app_shardCD-ipv6-1:PRIMARY> rs.status()
{
"set" : "rs-app_shardCD-ipv6-1",
...
},
"members" : [
{
"_id" : 0,
"name" : "[2606:ae00:3001:8311:172:16:244:a8]:27021",
"health" : 1,
"state" : 1,
"stateStr" : "PRIMARY",
"uptime" : 407
},
{
"_id" : 1,
"name" : "[2606:ae00:3001:8311:172:16:244:57]:27021",
"health" : 1,
"state" : 7,
"stateStr" : "ARBITER",
"uptime" : 385
},
{
"_id" : 2,
"name" : "[2606:ae00:3001:8311:172:16:244:11]:27021",
"health" : 0,
"state" : 8,
"stateStr" : "(not reachable/healthy)",
"uptime" : 0,
"lastHeartbeat" : ISODate("2023-02-22T07:16:50.589Z"),
"lastHeartbeatRecv" : ISODate("1970-01-01T00:00:00Z"),
"pingMs" : NumberLong(0),
"lastHeartbeatMessage" : "remote host has incompatible wire version: Server min and max wire version (0,8) is incompatible with client min wire version (9,9).You (client) are attempting to connect to a node (server) with a binary version with which you (client) no longer accept connections. Please upgrade the server’s binary version.",
"syncSourceHost" : "",
"syncSourceId" : -1,
"infoMessage" : "",
"configVersion" : -1,
"configTerm" : -1
},
{
"_id" : 3,
"name" : "[2606:ae00:3001:8311:172:16:244:a9]:27021",
"health" : 1,
"state" : 2,
"stateStr" : "SECONDARY",
"uptime" : 381
},
{
"_id" : 4,
"name" : "[2606:ae00:3001:8311:172:16:244:9]:27021",
"health" : 0,
"state" : 8,
"stateStr" : "(not reachable/healthy)",
"uptime" : 0,
"lastHeartbeat" : ISODate("2023-02-22T07:16:50.588Z"),
"lastHeartbeatRecv" : ISODate("1970-01-01T00:00:00Z"),
"pingMs" : NumberLong(0),
"lastHeartbeatMessage" : "remote host has incompatible wire version: Server min and max wire version (0,8) is incompatible with client min wire version (9,9).You (client) are attempting to connect to a node (server) with a binary version with which you (client) no longer accept connections. Please upgrade the server’s binary version.",
"syncSourceHost" : "",
"syncSourceId" : -1,
"infoMessage" : "",
"configVersion" : -1,
"configTerm" : -1
},
{
"_id" : 5,
"name" : "[2606:ae00:3001:8311:172:16:244:b8]:27021",
"health" : 1,
"state" : 2,
"stateStr" : "SECONDARY",
"uptime" : 377,
},
{
"_id" : 6,
"name" : "[2606:ae00:3001:8311:172:16:244:b9]:27021",
"health" : 1,
"state" : 2,
"stateStr" : "SECONDARY",
"uptime" : 371,
"optime" : {
"ts" : Timestamp(1677050206, 1),
"t" : NumberLong(1)
}
],
"ok" : 1,
"$clusterTime" : {
}}
"[2606:ae00:3001:8311:172:16:244:11]:27021" and "[2606:ae00:3001:8311:172:16:244:9]:27021" members are not able to connect.
2) Remove the members with below command
rs-app_shardCD-ipv6-1:PRIMARY> rs.remove("[2606:ae00:3001:8311:172:16:244:11]:27021")
{
"ok" : 1,
"$clusterTime" : {
"clusterTime" : Timestamp(1677050239, 1),
"signature" : {
"hash" : BinData(0,"AAAAAAAAAAAAAAAAAAAAAAAAAAA="),
"keyId" : NumberLong(0)
}
},
"operationTime" : Timestamp(1677050239, 1)
}
rs-app_shardCD-ipv6-1:PRIMARY> rs.remove("[2606:ae00:3001:8311:172:16:244:9]:27021")
{
"ok" : 1,
"$clusterTime" : {
"clusterTime" : Timestamp(1677050245, 1),
"signature" : {
"hash" : BinData(0,"AAAAAAAAAAAAAAAAAAAAAAAAAAA="),
"keyId" : NumberLong(0)
}
},
"operationTime" : Timestamp(1677050245, 1)
}
After all unreachable members are removed from rs, fcv
is automatically by backend CLI. The following details appear in fcv
logs for respective shards.
cps@fPAS-site2-master-1:~$ docker exec -it orchestrator bash -c "tail -f /var/log/broadhop/fcv.log"
2023-02-22 05:35:15 INFO Successfully set featureCompatibilityVersion for app_shardCD-ipv6-1
in app-based-session-ipv6-CD cluster
Repeat the step 1 and step 2 for remaining shards, then proceed for next step.