NFS Problem [message #22009] |
Thu, 18 October 2007 14:31 |
mperkel
Messages: 253 Registered: December 2006
|
Senior Member |
|
|
Just wondering if there's something special I have to do to get NFS to work in a VE. It works in the host environment but in the VE I get:
nfsd[4746]: nfssvc: No such device
What am I missing?
Junk Email Filter
http://www.junkemailfilter.com
|
|
|
|
|
|
Re: NFS Problem [message #22019 is a reply to message #22009] |
Thu, 18 October 2007 15:55 |
mperkel
Messages: 253 Registered: December 2006
|
Senior Member |
|
|
Maybe I should ask about what I'm really trying to do.
I'll try to make this short. The MySQL that I'm running insists on going to the socket at /var/lib/mysql/mysql.sock on the current machine. I'm trying to move mysql services to a different machine and I had the idea that maybe if I mounted /var/lib/mysql by NFS that when it goes for the socket it will be talking to MySQL on the other box.
Before anyone suggests using TCP, I don't want to go into a long explanation about why that isn't an option. So - for this thread - forget TCP.
I'm just wondering if a unix socket is mounted NFS if that would allow one to talk to the MySQL on the other box? Would that work?
Junk Email Filter
http://www.junkemailfilter.com
|
|
|
Re: NFS Problem [message #22055 is a reply to message #22019] |
Fri, 19 October 2007 09:33 |
|
So, is your setup like this: two VEs on the same OpenVZ node, one VE is hosting MySQL server, and another VE with MySQL client?
In this case you can bind-mount, say, /var/lib/mysql from the host node to both VEs and enjoy. The script to do that is listed in http://forum.openvz.org/index.php?t=msg&goto=8211&#m sg_num_17 (discussion is in Russian, but just looking at the code should give you the idea).
Note however that in this setup it will not be possible to just migrate one of those VEs to a different box without prior -- have to reconfigure to use TCP first.
Kir Kolyshkin
|
|
|