V
V
Vmedmen2016-12-17 14:14:39
Debian
Vmedmen, 2016-12-17 14:14:39

How to properly mount a raid array in an OpenVZ container?

Hi all.
Please help me solve the problem.
On a centos 6 server. It has an OpenVZ container with debian 8 (simfs). The container was created by VMManager
Created a soft raid from two disks - md3
Mounted it in / data
On the date I created the folder
/data/images
Then I mount it on one of the virtual machines in the directory where the site is located
mount --bind /data/images /vz/root/ 106/var/www/site/images
Everything is fine. But it's worth restarting the server, as everything flies
In fstab , I wrote
/data/images /vz/root/106/var/www/site/images none bind 0 0
Still not mounted after a reboot.
And one more strange thing. It crashes even when I restart the virtual machine separately.
I will be grateful for any hints.
Thanks in advance

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Melkij, 2016-12-17
@qualitat

Openvz has scripts to start a container. This is how mount'u and place
https://openvz.org/Bind_mounts

P
Puma Thailand, 2016-12-17
@opium

it is necessary to mount probably not in root but in private

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question