Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
en:dpi:dpi_components:qoestor:configuration:disc:split:start [2023/01/10 10:11] – arusnak | en:dpi:dpi_components:qoestor:configuration:disc:split:start [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Setting up storage on a separate disk ====== | ||
- | {{indexmenu_n> | ||
- | By default, all data is stored in the /var section. | ||
- | |||
- | For example you have a separate drive connected to /storage. | ||
- | |||
- | - Work from the root user < | ||
- | - Stop the recievers and DB < | ||
- | fastor-db-stop</ | ||
- | - Create directories in the /storage section< | ||
- | mkdir / | ||
- | mkdir / | ||
- | mkdir / | ||
- | mkdir / | ||
- | </ | ||
- | - Copy tha data on the new drive < | ||
- | cp -r / | ||
- | cp -r / | ||
- | cp -r / | ||
- | </ | ||
- | - Change the folder owner / | ||
- | chown -R clickhouse: | ||
- | chown -R clickhouse: | ||
- | </ | ||
- | - Delete the old directories < | ||
- | rm -rf / | ||
- | rm -rf / | ||
- | rm -rf / | ||
- | </ | ||
- | - Create simlinks < | ||
- | ln -s / | ||
- | ln -s / | ||
- | ln -s / | ||
- | </ | ||
- | - Check the links < | ||
- | readlink -f / | ||
- | readlink -f / | ||
- | readlink -f / | ||
- | </ | ||
- | - Start the DB < | ||
- | - Start the recievers < |