JM
02/20/2023, 4:43 PMAlex Pelagenko
02/20/2023, 6:46 PMJM
02/21/2023, 8:52 AMsudo docker volume create questdb
, copied the files from the original location /opt/questdb
to the volume location /var/lib/docker/volumes/questdb/_data
. Then replaced the flag -v "/opt/questdb:/var/lib/questdb"
with --mount source=questdb,destination=/var/lib/questdb
in the docker run command.
To my knowlegde the usage of -v or --mount should not change anything, I just used the opportunity to switch to the recommended syntax.
As for the ownership, the data belongs to the user and group ID, 10001, which is not assigned to the host. Both before and after the copy, as well as the newly created data. I assume that is the ID of the questdb user within the container?Alex Pelagenko
02/21/2023, 11:12 AMJM
02/21/2023, 11:54 AMAlex Pelagenko
02/21/2023, 1:49 PMNext I set it up in a separate empty bind-mount, all starting nice and tidy. However, stopping and restarting the container led to the same error yet again.
JM
02/21/2023, 4:43 PMsys.column_versions_purge_lock
, telemetry
and telemetry_config
do not exist in the db folder. Therefore it will also start if the mounted directory is empty (fresh install).
If either of those exist, it fails with the given error (observed for qdb version 6.7 and 7.0.0).sys.column_versions_purge_lock
, telemetry
and telemetry_config
from the db folder
5. Copy the complete bind-mount content to the volume location
6. Run a new questdb 7.0.0 container with the volume instead of the bind-mount
7. Open the browser interface of questdb. The transferred tables are not visible on the left and cannot be queried. Newly created tables will appear and their data be queried.sys.column_versions_purge_lock
, telemetry
and telemetry_config
exist.
2. tables and data migrated from bind-mount to volume are not accessible via questdbAlex Pelagenko
02/21/2023, 5:45 PM