Skip to content

Commit 90f927a

Browse files
authored
Update the steps for changing the store format in a cluster (#1526) (#1530)
Cherry-picked from #1526
1 parent d38fb63 commit 90f927a

File tree

2 files changed

+2343
-11
lines changed

2 files changed

+2343
-11
lines changed

modules/ROOT/pages/database-internals/store-formats.adoc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ Changing the store format can be a time-consuming operation, depending on the si
6868
==== In a standalone server
6969

7070
Changing the store format of an existing database in a standalone server requires the database to be offline.
71-
The following steps assume that you want to migrate the database called `mydb` to `block` format.
71+
The following steps assume that you want to migrate the database called `mydb` to `block` format but the same steps apply to other formats.
7272

7373
. Stop the database using the Cypher command `STOP DATABASE mydb`.
7474
. Change the store format of the stopped database using one of the following options:
@@ -95,7 +95,7 @@ bin/neo4j-admin database copy --to-format="block" mydb blockdb
9595

9696
Changing the store format of an existing database in a cluster requires that you restore a backup of the database that you want to migrate on one of the servers, and then, use that server as a xref:clustering/databases.adoc#cluster-designated-seeder[designated seeder] for the other cluster members to copy that database from.
9797

98-
The following steps assume that you want to migrate the database called `mydb` to `block` format.
98+
The following steps assume that you want to migrate the database called `mydb` to `block` format but the same steps apply to other formats.
9999
The database is hosted on three servers in primary mode.
100100

101101
**On one of the servers, `server01`**
@@ -124,7 +124,7 @@ bin/neo4j-admin database backup mydb --to-path=/path/to/your-backup-folder --inc
124124
+
125125
[source,shell]
126126
----
127-
bin/neo4j-admin database restore --from-path=/path/to/mydb-backup-dir mydb
127+
bin/neo4j-admin database restore --from-path=/path/to/your-backup-folder/mydb-2024-03-05T11-26-38.backup mydb
128128
----
129129
. Migrate the restored database to `block` format:
130130
+
@@ -141,9 +141,9 @@ Use any database to connect.
141141
SHOW SERVERS YIELD serverId, name, address, state, health, hosting;
142142
----
143143

144-
**On a different server, `server02`:**
144+
**On one of the servers:**
145145

146-
. In Cypher Shell, create the migrated database using the Cypher command `CREATE DATABASE`.
146+
. Use the `system` database and create the migrated database `mydb` using the server ID of `server01`.
147147
The topology of `mydb` is stored in the `system` database and when you create it, it is allocated according to the default topology (which can be shown with `CALL dbms.showTopologyGraphConfig`).
148148
For more information, see xref:clustering/databases.adoc#cluster-designated-seeder[Designated seeder].
149149
+

0 commit comments

Comments
 (0)