*SOLVED* OpenVZ mount script works incorrectly [message #37789] |
Thu, 22 October 2009 13:58  |
cray
Messages: 11 Registered: October 2009
|
Junior Member |
|
|
MySQL database works on host. I want to share /var/run/mysqld/ directory to guest system.
Here is my 101.mount script
#!/bin/bash
mount --bind -n /var/run/mysqld /home/vz/root/${VEID}/var/run/mysqld
When I run
it wipes whole host directory /var/run/mysqld, and mysql went down. So I have no '/var/run/mysqld' and no '/home/vz/root/${VEID}/var/run/mysqld'.
When I'm trying to mount this directory manually after the guest system was started - everything works fine.
What is wrong?
I'm running Debian Lenny Linux host 2.6.26-2-openvz-686 #1 SMP Wed Aug 19 07:30:34 UTC 2009 i686 GNU/Linux
vzctl --version
vzctl version 3.0.22
[Updated on: Thu, 22 October 2009 15:04] by Moderator Report message to a moderator
|
|
|
|
|
|
|