MySQL Shell 9.3
This section describes how to check a ReplicaSet for consistency
using
.
replicaSet
.rescan()
operation does the following:
replicaSet
.rescan()
Ensures the replication accounts of each member are stored in the metadata.
also checks for missing replication users and prompts you to
run
replicaSet
.status()
to add any missing accounts to the metadata.
replicaSet
.rescan()
Checks for unmanaged members and adds them if configured to do so. Unmanaged members are instances which are part of the ReplicaSet but are not present in the metadata.
Checks for obsolete members and removes them if configured to do so. Obsolete members are instances which are not part of the ReplicaSet but are present in the metadata. Invalidated instances are ignored.
Ensures the values of server_id
and
server_uuid
are stored in the metadata for
each member of the ReplicaSet.
can be configured to add unmanaged instances by setting the
option replicaSet
.rescan()addUnmanaged
to
true
. By default, this option is set to
false
and lists all unmanaged instances, but
makes no changes to the ReplicaSet.
If
is run in interactive mode, the unmanaged instances are listed
and you are prompted to add them to the ReplicaSet.
replicaSet
.rescan()
can be configured to remove obsolete instances by setting the
option replicaSet
.rescan()removeObsolete
to
true
. By default, this option is set to
false
and lists all obsolete instances, but
makes no changes to the ReplicaSet.
If
is run in interactive mode, the obsolete instances are listed
and you are prompted to remove them.
replicaSet
.rescan()