Skip to content

Commit 6331e93

Browse files
Clarify how to recreate a db using the empty list of seeding servers (#2425)
Co-authored-by: Anna Sjerling <[email protected]> (cherry picked from commit 8770aa0)
1 parent 5fa7158 commit 6331e93

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

modules/ROOT/pages/database-administration/standard-databases/recreate-database.adoc

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,19 +140,30 @@ CALL dbms.recreateDatabase("neo4j", {seedingServers: ["serverId1", "serverId2",
140140
[[undefined-servers]]
141141
Undefined servers::
142142

143-
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.
144-
The store will be replaced by the most up-to-date seeder available in the cluster.
143+
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.
144+
+
145+
Before running the procedure, ensure that all unavailable servers are xref:clustering/servers.adoc#_cordoned_state[cordoned]; otherwise, the procedure will fail.
146+
+
147+
To determine where the database is allocated, use the `SHOW DATABASES` command.
148+
To identify all enabled and available servers hosting the required database, run the `SHOW SERVERS` command.
149+
Servers have to show `health = Available` and `status = Enabled`.
150+
Cordon all unreachable servers by running the `dbms.cluster.cordonServer()` procedure.
151+
+
152+
Then Neo4j will select the most up-to-date seeder available in the cluster to recreate the database.
145153
+
146154
[source, shell]
147155
----
148156
CALL dbms.recreateDatabase("neo4j", {seedingServers: []});
149157
----
150158

159+
151160
[[undefined-servers-backup]]
152161
Undefined servers with fallback backup::
153162

154-
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.
155-
However, if no available servers can be found, the database is recreated based on the backup or the dump defined by the URI.
163+
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.
164+
Unavailable servers must be cordoned.
165+
+
166+
However, if no available servers can be found, the database is recreated based on the backup or the dump specified by the URI.
156167
This means the store is replaced by the most up-to-date seeder if available; otherwise, the backup is used.
157168
+
158169
[source, shell]

0 commit comments

Comments
 (0)