Re: Mysql Sockets? [message #35795 is a reply to message #35776] |
Wed, 22 April 2009 23:14   |
althalus
Messages: 12 Registered: April 2009
|
Junior Member |
|
|
Sorry, I wanted to include some more information in my previous reply, but did not have access to the machine.
Ok, so if mounting has to be done after the container starts, then logically unmounting must be done before the machine is unmounted? Ok, I wasn't sure on the order of those things, I haven't found anything that explains exactly what needs to be done in what steps. In that case, ignore my comment about vzquota. Using mount and unmount scripts makes sure everything happens in the right order?
mount -o bind /var/lib/vz/share /var/lib/vz/private/101/share
Works exactly as expected. The mount is exactly where I expect it. I can see the files of /var/lib/vz/share inside /var/lib/vz/private/101/share, as I expect to.
When I then do
The /share folder is empty. If I create a file in this /share folder and then quit back out to the host machine, I can not see that file I just created in the container inside the share folder. I can stop and restart the container, and that file is still there, even though it's still not appearing in the /var/lib/vz/private/101/share folder on the host.
This seems contrary to how the file system seems to work with openvz...
BTW, running Ubuntu 8.04, and the latest versions of the openvz kernel and tools included in apt. (2.6.24-23-openvz for kernel)
EDIT: Ah, the files are appearing in /var/lib/vz/root... On closer examination I should have seen that the examples I was looking at were also putting the mount in root...
Ok, Can you explain the differences and purposes between the vz/private and vz/root directories? Both seem to be copies of the file system. If I wanted to edit something in a container from the host, in which cases would I make the changes where?
EDIT2: Can you define a default mount script that all machines will use automatically, or does there need to be a specific mount script (or link to a pre-existing one) for each machine?
EDIT3: What I want isn't possible short of applying a patch that seems like it could cause unwanted stability issues?
http://bugzilla.openvz.org/show_bug.cgi?id=985
[Updated on: Thu, 23 April 2009 01:26] Report message to a moderator
|
|
|