Skip to content

Commit 9c7da5f

Browse files
committed
Note that WAL failover path may *not* be relocated
Fixes DOC-10998
1 parent c2c3c3f commit 9c7da5f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/current/v25.3/wal-failover.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,14 @@ No, the secondary (failover) disk **must be durable and retain its data across V
476476

477477
Always provision the failover disk with the same persistence guarantees as the primary store.
478478

479+
### 14. Can I relocate or rename the WAL directory?
480+
481+
No. When WAL failover is enabled, the WAL directory path is stored as an absolute path in the [store]({% link {{ page.version.version}}/cockroach-start.md %}#store)'s data. It is not treated as a relative path. As a result, it is not sufficient to stop CockroachDB, move or rename that directory, and restart with a different `--wal-failover` path.
482+
483+
Instead, to change the WAL directory path, you must first [disable WAL failover]({% link {{ page.version.version }}/cockroach-start.md %}#disable-wal-failover), [restart the node(s)]({% link {{ page.version.version }}/node-shutdown.md %}#stop-and-restart-a-node), and then [re-enable WAL failover with the new path]({% link {{ page.version.version }}/cockroach-start.md %}#enable-wal-failover).
484+
485+
Using filesystem indirection such as symlinks or mount-point changes may appear to work but is not supported or tested by Cockroach Labs.
486+
479487
## Video demo: WAL failover
480488

481489
For a demo of WAL Failover in CockroachDB and what happens when you enable or disable it, play the following video:

0 commit comments

Comments
 (0)