Skip to content

Commit 39e6db8

Browse files
Clarify how to recreate a db using the empty list of seeding servers (neo4j#2425)
Co-authored-by: Anna Sjerling <[email protected]>
1 parent d04e453 commit 39e6db8

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
@@ -128,19 +128,30 @@ CALL dbms.cluster.recreateDatabase("neo4j", {seedingServers: ["serverId1", "serv
128128
[[undefined-servers]]
129129
Undefined servers::
130130

131-
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.
132-
The store will be replaced by the most up-to-date seeder available in the cluster.
131+
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.
132+
+
133+
Before running the procedure, ensure that all unavailable servers are xref:clustering/servers.adoc#_cordoned_state[cordoned]; otherwise, the procedure will fail.
134+
+
135+
To determine where the database is allocated, use the `SHOW DATABASES` command.
136+
To identify all enabled and available servers hosting the required database, run the `SHOW SERVERS` command.
137+
Servers have to show `health = Available` and `status = Enabled`.
138+
Cordon all unreachable servers by running the `dbms.cluster.cordonServer()` procedure.
139+
+
140+
Then Neo4j will select the most up-to-date seeder available in the cluster to recreate the database.
133141
+
134142
[source, shell]
135143
----
136144
CALL dbms.cluster.recreateDatabase("neo4j", {seedingServers: []});
137145
----
138146

147+
139148
[[undefined-servers-backup]]
140149
Undefined servers with fallback backup::
141150

142-
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.
143-
However, if no available servers can be found, the database is recreated based on the backup or the dump defined by the URI.
151+
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.
152+
Unavailable servers must be cordoned.
153+
+
154+
However, if no available servers can be found, the database is recreated based on the backup or the dump specified by the URI.
144155
This means the store is replaced by the most up-to-date seeder if available; otherwise, the backup is used.
145156
+
146157
[source, shell]

0 commit comments

Comments
 (0)