0

version: v3.00.3 2025.05.15 LINUX x86_64

I'm running a single-node DolphinDB (Community Edition) instance, and I recently needed to migrate the entire data directory from /mnt/data2/DolphinDB to /mnt/data3/DolphinDB due to low disk space.

Here’s what I did:

# Stopped DolphinDB:
sudo systemctl stop dolphindb.service

# Verified the process was fully stopped:
ps aux | grep dolphindb

# Copied the entire directory using rsync:
sudo rsync -av --progress /mnt/data2/DolphinDB/ /mnt/data3/DolphinDB/

# Updated my systemd service file (/etc/systemd/system/dolphindb.service) by
# changing WorkingDirectory from /mnt/data2/DolphinDB/server to /mnt/data3/DolphinDB/server.
# Reloaded and restarted the service:
sudo systemctl daemon-reload
sudo systemctl start dolphindb.service

The server starts successfully, and newly created tables work fine. However, existing DFS tables (especially TSDB tables) are now corrupted in metadata. For example, when I try to drop an old table:

dropTable("dfs://forward_return", "zombie_close_neutralized")

I get this error:

Storage can't find volume for path [/mnt/data2/DolphinDB/server/local8848/storage/CHUNKS/forward_return/201001M_201101M/kTcm]

It seems the metadata still references the old path (/mnt/data2/...) even though all files have been moved to /mnt/data3/....

As a side question — for a single physical machine, would deploying a 2-node cluster (Community Edition) provide better performance than a single-node setup?

Any advice on safe migration practices or metadata recovery would be greatly appreciated!

1 Answer 1

0

This method of migration is not recommended. Generally, we advise migrating via the backup/restore approach. If you intend to migrate by copying the entire directory, you must ensure that the path of the migrated cluster is completely consistent with the original cluster. The reason is that the absolute path of the data is stored in the metadata. If the paths are inconsistent, the system will be unable to locate the original database and table data.

If disk space is insufficient, you can add a new disk by expanding the volumes configuration item. Simply append the new directory to the original configuration value, with directories separated by commas.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.