OpenVZ Forum


Home » General » Support » Is NFS virtualized fully?
Is NFS virtualized fully? [message #2367] Fri, 31 March 2006 02:57 Go to next message
Groening is currently offline  Groening
Messages: 2
Registered: March 2006
Location: Russia, Khabarovsk
Junior Member
What parts of NFS are not virtualized for today?

[Updated on: Fri, 31 March 2006 02:59]

Report message to a moderator

Re: Is NFS virtualized fully? [message #2371 is a reply to message #2367] Fri, 31 March 2006 09:52 Go to previous messageGo to next message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

There are 2 possible ways of using NFS within VPS:
1. mount in host and bindmount to VPS
2. it is possible to be able to mount NFS from within VPS, but this requires 2-3 small patches. I had them somewhere for 2.6.8. They enable kernel_threads in VPS and do such similar things.


http://static.openvz.org/userbars/openvz-developer.png
Re: Is NFS virtualized fully? [message #2635 is a reply to message #2371] Wed, 12 April 2006 22:23 Go to previous messageGo to next message
dowdle is currently offline  dowdle
Messages: 261
Registered: December 2005
Location: Bozeman, Montana
Senior Member
Ok, I have the desired NFS mounts mounted on the physical host and I want to "bind mount" them inside of a VPS.

Er... how do I go about doing this?

I read the OpenVZ User's Guide and I saw bind mount mentioned a few times but it wasn't really clear.

HELP!


--
TYL, Scott Dowdle
Belgrade, Montana, USA
Re: Is NFS virtualized fully? [message #2640 is a reply to message #2635] Thu, 13 April 2006 06:15 Go to previous messageGo to next message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

Suggested by Babyface on IRC:

<Babyface> mount --bind /path /to/path
<Babyface> for example
<dowdle> That command is within the VPS?
<Babyface> mount --bind /nfsroot /vz/root/<vpsid>/mnt
<Babyface> no on hostnode
<dowdle> Ok, cool. Thanks I'll try that now.
<Babyface> and vps must be started before
<Babyface> or mounted
<Babyface> so better to create some kind of /etc/sysconfig/vz-scripts/<vpsid>.mount and .umount files Smile
<Babyface> then on vps startup it is automatically mounted
<dowdle> Wow... that worked like instantly! Thanks very much.
<dowdle> Ok, sure... about the mount and unmount scripts... as I want that to be automatic. So, if I create scripts with those names, they will be automati
cally parsed upon VPS startup?
<Babyface> yes
<dowdle> Right on.
<dowdle> Thanks Babyface!
<-- ckoehn has quit ("7:42pm| (@DenisGe) ich schneid nie wieder samstags nachts 2 uhr haare alleine")
<Babyface> mount file should look like
<Babyface> #!/bin/bash
<Babyface> # if one of these files does not exist then something is really broken
<Babyface> [ -f "${VE_CONFFILE}" ] || exit 1
<Babyface> # mount nfsroot.
<Babyface> mount --bind /nfsroot /vz/root/<vpsid>/mnt
<Babyface> exit ${?}
<Babyface> and must be executable
<Babyface> umount like
<Babyface> #!/bin/bash
<Babyface> # if one of these files does not exist then something is really broken
<Babyface> [ -f "${VE_CONFFILE}" ] || exit 1
<Babyface> # umount nfsroot.
<Babyface> umount /vz/root/<vpsid>/mnt
<Babyface> exit ${?}
<Babyface> also executable Smile


http://static.openvz.org/userbars/openvz-developer.png
Re: Is NFS virtualized fully? [message #2673 is a reply to message #2640] Fri, 14 April 2006 17:22 Go to previous message
jonsmirl is currently offline  jonsmirl
Messages: 11
Registered: April 2006
Junior Member
What about NFS servers? My application needs to simulate a cluster of NFSv4 servers for testing purposes. The kernel has support for NFSv4 servers but you need to turn on experimental drivers to see it.
Previous Topic: Using the same IP as VPS0 (HOST)
Next Topic: vps memory leak
Goto Forum:
  


Current Time: Thu Jul 11 03:25:45 GMT 2024

Total time taken to generate the page: 0.02492 seconds