Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -128,19 +128,30 @@ CALL dbms.cluster.recreateDatabase("neo4j", {seedingServers: ["serverId1", "serv
[[undefined-servers]]
Undefined servers::

If you provide an empty list of seeding servers and do not specify a `seedURI`, Neo4j automatically selects all available allocations of the database as seeders.
The store will be replaced by the most up-to-date seeder available in the cluster.
If you provide an empty list of seeding servers and do not specify a `seedURI`, Neo4j will select all allocations of the database (primaries and secondaries) on currently enabled and non-cordoned servers to act as seeders.
+
Before running the procedure, ensure that all unavailable servers are xref:clustering/servers.adoc#_cordoned_state[cordoned]; otherwise, the procedure will fail.
+
To determine where the database is allocated, use the `SHOW DATABASES` command.
To identify all enabled and available servers hosting the required database, run the `SHOW SERVERS` command.
Servers have to show `health = Available` and `status = Enabled`.
Cordon all unreachable servers by running the `dbms.cluster.cordonServer()` procedure.
+
Then Neo4j will select the most up-to-date seeder available in the cluster to recreate the database.
+
[source, shell]
----
CALL dbms.cluster.recreateDatabase("neo4j", {seedingServers: []});
----


[[undefined-servers-backup]]
Undefined servers with fallback backup::

If both an empty list of seeding servers and a `seedURI` are provided, Neo4j finds all available allocations of the database and use those as seeders.
However, if no available servers can be found, the database is recreated based on the backup or the dump defined by the URI.
If both an empty list of seeding servers and a `seedURI` are provided, Neo4j finds all allocations of the database and use those as seeders.
Unavailable servers must be cordoned.
+
However, if no available servers can be found, the database is recreated based on the backup or the dump specified by the URI.
This means the store is replaced by the most up-to-date seeder if available; otherwise, the backup is used.
+
[source, shell]
Expand Down