Finally I wiped the data file directories and it works now.
However, the result of validate_lab_initialize_local_replica_set is:
{
“set” : “m103-rpl”,
“date” : ISODate(“2020-04-08T07:54:38.248Z”),
“myState” : 1,
“term” : NumberLong(1),
“syncingTo” : “”,
“syncSourceHost” : “”,
“syncSourceId” : -1,
“heartbeatIntervalMillis” : NumberLong(2000),
“optimes” : {
“lastCommittedOpTime” : {
“ts” : Timestamp(1586332469, 1),
“t” : NumberLong(1)
},
“readConcernMajorityOpTime” : {
“ts” : Timestamp(1586332469, 1),
“t” : NumberLong(1)
},
“appliedOpTime” : {
“ts” : Timestamp(1586332469, 1),
“t” : NumberLong(1)
},
“durableOpTime” : {
“ts” : Timestamp(1586332469, 1),
“t” : NumberLong(1)
}
},
“members” : [
{
“_id” : 0,
“name” : “192.168.103.100:27001”,
“health” : 1,
“state” : 1,
“stateStr” : “PRIMARY”,
“uptime” : 899,
“optime” : {
“ts” : Timestamp(1586332469, 1),
“t” : NumberLong(1)
},
“optimeDate” : ISODate(“2020-04-08T07:54:29Z”),
“syncingTo” : “”,
“syncSourceHost” : “”,
“syncSourceId” : -1,
“infoMessage” : “”,
“electionTime” : Timestamp(1586331888, 2),
“electionDate” : ISODate(“2020-04-08T07:44:48Z”),
“configVersion” : 3,
“self” : true,
“lastHeartbeatMessage” : “”
},
{
“_id” : 1,
“name” : “192.168.103.100:27002”,
“health” : 1,
“state” : 2,
“stateStr” : “SECONDARY”,
“uptime” : 114,
“optime” : {
“ts” : Timestamp(1586332469, 1),
“t” : NumberLong(1)
},
“optimeDurable” : {
“ts” : Timestamp(1586332469, 1),
“t” : NumberLong(1)
},
“optimeDate” : ISODate(“2020-04-08T07:54:29Z”),
“optimeDurableDate” : ISODate(“2020-04-08T07:54:29Z”),
“lastHeartbeat” : ISODate(“2020-04-08T07:54:36.473Z”),
“lastHeartbeatRecv” : ISODate(“2020-04-08T07:54:36.946Z”),
“pingMs” : NumberLong(0),
“lastHeartbeatMessage” : “”,
“syncingTo” : “192.168.103.100:27001”,
“syncSourceHost” : “192.168.103.100:27001”,
“syncSourceId” : 0,
“infoMessage” : “”,
“configVersion” : 3
},
{
“_id” : 2,
“name” : “192.168.103.100:27003”,
“health” : 1,
“state” : 2,
“stateStr” : “SECONDARY”,
“uptime” : 106,
“optime” : {
“ts” : Timestamp(1586332469, 1),
“t” : NumberLong(1)
},
“optimeDurable” : {
“ts” : Timestamp(1586332469, 1),
“t” : NumberLong(1)
},
“optimeDate” : ISODate(“2020-04-08T07:54:29Z”),
“optimeDurableDate” : ISODate(“2020-04-08T07:54:29Z”),
“lastHeartbeat” : ISODate(“2020-04-08T07:54:36.474Z”),
“lastHeartbeatRecv” : ISODate(“2020-04-08T07:54:36.949Z”),
“pingMs” : NumberLong(0),
“lastHeartbeatMessage” : “”,
“syncingTo” : “192.168.103.100:27002”,
“syncSourceHost” : “192.168.103.100:27002”,
“syncSourceId” : 1,
“infoMessage” : “”,
“configVersion” : 3
}
],
“ok” : 1,
“operationTime” : Timestamp(1586332469, 1),
“$clusterTime” : {
“clusterTime” : Timestamp(1586332469, 1),
“signature” : {
“hash” : BinData(0,“i1fA/iPdHfpsjcgcYMCSdh8aG5g=”),
“keyId” : NumberLong(“6813243583856902145”)
}
}
}