OpenVZ Forum


Home » General » Support » *SOLVED* mounting nfs-share on debian template
*SOLVED* mounting nfs-share on debian template [message #5905] Tue, 05 September 2006 12:10 Go to next message
mkl0815 is currently offline  mkl0815
Messages: 15
Registered: August 2006
Junior Member
hi,

i set up a HN running Suse 10.0 with a user-space nfs server.
i can mount the exported share from the HN itself, so nfs is working well.
now i want to connect the exported share from a VE (template debian) running on this HN.
root@pesv-111:/# mount 192.168.2.103:/data/wwwdata/ /var/www/
mount: unknown filesystem type 'nfs'

portmap und nfs-common are installed.
what package is missing?

mario.

[Updated on: Tue, 05 September 2006 13:08] by Moderator

Report message to a moderator

Re: mounting nfs-share on debian template [message #5906 is a reply to message #5905] Tue, 05 September 2006 12:15 Go to previous messageGo to next message
masm is currently offline  masm
Messages: 7
Registered: July 2006
Location: Finland
Junior Member
AFAIK NFS-mounts inside a VE are not possible with the default kernel because NFS is not virtualized Sad (yet???).

It's however possible by patching the kernel a bit, there was patches for at least some older kernel version at the forum.

BR,
Mika
Re: mounting nfs-share on debian template [message #5907 is a reply to message #5905] Tue, 05 September 2006 12:42 Go to previous messageGo to next message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
One more good way is to mount needed share on HN, and then
create bind mount inside VE:

root@HN:/# mount <share_ip>:/to/share/ /mnt/nfs/
(the command below only after VE started)
root@HN:/# mount --bind /mnt/nfs/ /vz/root/<VEID>/var/www

Re: mounting nfs-share on debian template [message #5909 is a reply to message #5906] Tue, 05 September 2006 12:47 Go to previous messageGo to next message
mkl0815 is currently offline  mkl0815
Messages: 15
Registered: August 2006
Junior Member
... hmm, bad news. but thanks for answering.

is there any possibility to share a data-directory from the HN between all VEs?

NFS was my favorite idea, cause it can handle concurrent accesses. and its no problem to seperate the VEs on different HN in the future.

it seems that i need a filesystem based solution.

any ideas out there?

mario.
Re: mounting nfs-share on debian template [message #5910 is a reply to message #5907] Tue, 05 September 2006 12:49 Go to previous message
mkl0815 is currently offline  mkl0815
Messages: 15
Registered: August 2006
Junior Member
thanks, this is exactly the thing i was looking for.

Previous Topic: ATM support...?
Next Topic: *SOLVED* Problem with X11 and VNC
Goto Forum:
  


Current Time: Sun Jul 21 19:12:26 GMT 2024

Total time taken to generate the page: 0.02383 seconds