#support

Fixing File Corruption after VM Shutdown in ClickHouse

TLDR Fernando encountered a corrupted ClickHouse system after a VM shutdown. Srikanth suggested a way to reinstall the system without losing user data, which resolved the issue.

Powered by Struct AI
Jun 26, 2023 (5 months ago)
Fernando
Photo of md5-c8fc89377edf2cd7c2b1529bff756350
Fernando
07:33 PM
Image 1 for
Srikanth
Photo of md5-ce04a9988e2fd758a659dc55be6f2543
Srikanth
08:24 PM
Did you make any changes to filesystem or did anything that lead to corrupt files for ClickHouse?
Fernando
Photo of md5-c8fc89377edf2cd7c2b1529bff756350
Fernando
08:32 PM
No. The system was working normally.
08:33
Fernando
08:33 PM
This is the second time this has happened. After a sudden VM shutdown, Clickhouse corrupts.
08:34
Fernando
08:34 PM
Is it possible to reinstall the system from scratch, without losing users/passwords?
Srikanth
Photo of md5-ce04a9988e2fd758a659dc55be6f2543
Srikanth
08:37 PM
> After a sudden VM shutdown, Clickhouse corrupts
Yes, and if you can avoid this that would be great.
> Is it possible to reinstall the system from scratch, without losing users/passwords?
You can purge the ClickHouse data but retain the rest. delete the ClickHouse data under deploy/docker/clickhouse-setup/data/clickhouse*
Fernando
Photo of md5-c8fc89377edf2cd7c2b1529bff756350
Fernando
08:39 PM
I'll try. Thank you Srikanth!!
09:11
Fernando
09:11 PM
Perfect Srikanth!!! You rock!!!

SigNoz Community

Built with ClickHouse as datastore, SigNoz is an open-source APM to help you find issues in your deployed applications & solve them quickly | Knowledge Base powered by Struct.AI

Indexed 1023 threads (61% resolved)

Join Our Community