Skip to content

Commit 3e0beaa

Browse files
committed
DOC-5038 RS: Added preserve_roles to upgrade DB examples
1 parent e67e91f commit 3e0beaa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

content/operate/rs/installing-upgrading/upgrading/upgrade-database.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,12 @@ To upgrade a database:
8181

8282
1. _(Optional)_ Back up the database to minimize the risk of data loss.
8383

84-
1. Use [`rladmin`]({{< relref "/operate/rs/references/cli-utilities/rladmin/upgrade" >}}) to upgrade the database. During the upgrade process, the database will restart without losing any data.
84+
1. Use [`rladmin`]({{< relref "/operate/rs/references/cli-utilities/rladmin/upgrade" >}}) to upgrade the database. During the upgrade process, the database will restart without losing any data. Use the `preserve_roles` option to keep the database's current state, including primary shard placement.
8585
8686
- To upgrade a database and its modules:
8787
8888
``` shell
89-
rladmin upgrade db <database name | database ID>
89+
rladmin upgrade db <database name | database ID> preserve_roles
9090
```
9191
9292
Example of a successful upgrade:
@@ -104,7 +104,7 @@ To upgrade a database:
104104
- To upgrade the database to a version other than the default version, use the `redis_version` parameter:
105105
106106
```sh
107-
rladmin upgrade db <database name | database ID> redis_version <version>
107+
rladmin upgrade db <database name | database ID> redis_version <version> preserve_roles
108108
```
109109
110110
1. Check the Redis database compatibility version for the database to confirm the upgrade.

0 commit comments

Comments
 (0)