O
O
orrgw2018-12-13 13:36:24
linux
orrgw, 2018-12-13 13:36:24

Is it possible to store mysql database on two different disks?

Good afternoon.
There is a server, a large (almost 150 gigabytes) database is spinning on it. It is slowly growing, and will soon completely clog the disc. Unfortunately, 150 gigabytes is the limit for a hoster, it does not provide larger disks (but you can take a second one of the same size).
Therefore, it became necessary to split this database into two disks.
How can this be done?
Is a simple ln -s enough for the largest files?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
B
Boris Syomov, 2018-12-13
@orrgw

You can read this: https://dev.mysql.com/doc/refman/5.7/en/general-ta... create a tablespace on different disks and group tables by them so as to evenly use disk space and performance.

R
revko, 2018-12-14
@revko

you can assemble disks in lvm and cut volumes of the desired size

A
Alexey Svistunov, 2018-12-20
@svalx

It is possible to create btrfs on top of both drives.

I
iddqd3, 2018-12-23
@iddqd3

ln -s on large tables will be enough.
The main thing is that the disk is mounted before the muscle starts

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question