OpenVZ Forum


Home » General » Support » NFS Problem
NFS Problem [message #22009] Thu, 18 October 2007 14:31 Go to next message
mperkel is currently offline  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?


Re: NFS Problem [message #22015 is a reply to message #22009] Thu, 18 October 2007 15:04 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

http://wiki.openvz.org/NFS_in_VE Wink

Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: NFS Problem [message #22016 is a reply to message #22015] Thu, 18 October 2007 15:08 Go to previous messageGo to next message
mperkel is currently offline  mperkel
Messages: 253
Registered: December 2006
Senior Member
Links to an empty page. Typo?

Thanks in advance.


Re: NFS Problem [message #22017 is a reply to message #22009] Thu, 18 October 2007 15:31 Go to previous messageGo to next message
mperkel is currently offline  mperkel
Messages: 253
Registered: December 2006
Senior Member
Found the link:

http://wiki.openvz.org/NFS_server_inside_VE

Now have to see if I can make it work.


Re: NFS Problem [message #22019 is a reply to message #22009] Thu, 18 October 2007 15:55 Go to previous messageGo to next message
mperkel is currently offline  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?


Re: NFS Problem [message #22055 is a reply to message #22019] Fri, 19 October 2007 09:33 Go to previous message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

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
http://static.openvz.org/userbars/openvz-developer.png
Previous Topic: Vzdump --snapshot FAILURE - possible bug?? (long post)
Next Topic: forcedeth problems with 2.6.18-028stab045.1
Goto Forum:
  


Current Time: Sat Nov 16 13:09:30 GMT 2024

Total time taken to generate the page: 0.03575 seconds