OpenVZ Forum


Home » General » Support » *RESOLVED* nfs and openvz
*RESOLVED* nfs and openvz [message #14689] Fri, 06 July 2007 03:21 Go to next message
duelster is currently offline  duelster
Messages: 3
Registered: July 2007
Junior Member
Hello All. New user of openvz. I have an openvz server VE that used to be able to mount an nfs share on a remote system. VE Server lost power and nfs hasn't worked since. Have not been able to mount this nfs share. Have read and googled but can't get nfs to work. I have files on another server that I need to access from this VE and can't get the nfs share to mount. Error is:

# mount /media
mount: fs type nfs not supported by kernel

# service nfs start
Starting NFS services: OK ]
Starting NFS quotas: OK ]
Starting NFS daemon: FAILED]
Starting NFS mountd: OK ]
Starting RPC idmapd: Error: RPC MTAB does not exist.

# tail -f /var/log/messages
Jul 5 08:07:18 mydomain nfs: Starting NFS services: succeeded
Jul 5 08:07:18 mydomain nfs: rpc.rquotad startup succeeded
Jul 5 08:07:18 mydomain nfsd[32573]: nfssvc: No such device
Jul 5 08:07:18 mydomain nfs: rpc.nfsd startup failed
Jul 5 08:07:18 mydomain nfs: rpc.mountd startup succeeded

I've restart portmap
I've modprobe sunrpc

# service rpcidmapd start
Starting RPC idmapd: Error: RPC MTAB does not exist.

]# service netfs start
Mounting NFS filesystems: mount: fs type nfs not supported by kernel [FAILED]
Mounting other filesystems: mount: none already mounted or /dev/pts busy
mount: according to mtab, devpts is already mounted on /dev/pts [FAILED]


uname -a: Linux mydomain.serv 2.6.18-8.el5.028stab031.1 #1 SMP Sat Apr 28 00:38:07 MSD 2007 i686 i686 i386 GNU/Linux


HN: grep nfs /proc/filesystems
nodev nfsd
nodev nfs
nodev nfs4


HN: /etc/sysctl.conf
net.ipv4.ip_forward = 1
net.ipv4.conf.default.proxy_arp = 0
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.default.accept_source_route = 0
kernel.sysrq = 1
net.ipv4.tcp_syncookies = 1
net.ipv4.conf.default.send_redirects = 1
net.ipv4.conf.all.send_redirects = 0
kernel.ve_allow_kthreads=1

HN: /etc/vz/conf/101.conf
FEATURES="nfs:on"

VE: grep nfs /proc/filesystems
(NOTHING IN THIS FILE)

VE: /etc/sysctl.conf
net.ipv4.ip_forward = 0
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.default.accept_source_route = 0
kernel.sysrq = 0
kernel.core_uses_pid = 1
kernel.ve_allow_kthreads=1




It was working before I lost power to the server. Any ideas?


Noel

[Updated on: Wed, 11 July 2007 10:07] by Moderator

Report message to a moderator

Re: nfs and openvz [message #14698 is a reply to message #14689] Fri, 06 July 2007 10:10 Go to previous messageGo to next message
ataraxis is currently offline  ataraxis
Messages: 19
Registered: August 2006
Junior Member
Hi,
this happens to me, when the VE was started, while the nfs kernel module was not loaded in the HN.
Did you try to restart the VE?

Cheers,
Kai
SOLVED ** Re: nfs and openvz [message #14700 is a reply to message #14698] Fri, 06 July 2007 14:13 Go to previous messageGo to next message
duelster is currently offline  duelster
Messages: 3
Registered: July 2007
Junior Member
thanks ataraxis!

your post hinted to me that the problem may not be at the VE at all. I started "netfs" on the HN and it works now.


Noel

[Updated on: Fri, 06 July 2007 14:57]

Report message to a moderator

Re: SOLVED ** Re: nfs and openvz [message #33299 is a reply to message #14700] Mon, 06 October 2008 09:47 Go to previous messageGo to next message
ittec is currently offline  ittec
Messages: 41
Registered: February 2008
Member
Hi all

i have same problem. I have experience with OpenVZ but I never tried NFS with VPS. Today was first time. And i couldn't let it runing. My intention is to run NFS server in container if is possible. So I did next steps:

1) I created new VPS
2) With vzyum, installed nfs
# vzyum VPSID install nfs*
3) Setup NFS inside VPS (export, hosts.allow)
4) Inside VPS, tried to run services
# /etc/init.d/portmap
# /etc/initd./nfs

Starting NFS services:                                     [  OK  ]
Starting NFS daemon:                                       [FAILED]


output /var/log/messages
Oct  6 11:43:38 52 nfsd[5290]: nfssvc: No such device


I read this thread and installed a NFS utils on HNode and then restarted VPS without success. When i try to run NFS on HN it happens:

Oct  6 12:21:01 hn10 mountd[31545]: Caught signal 15, un-registering and exiting.
Oct  6 12:21:01 hn10 kernel: nfsd: last server has exited
Oct  6 12:21:01 hn10 kernel: nfsd: unexporting all filesystems
Oct  6 12:21:01 hn10 kernel: NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory
Oct  6 12:21:01 hn10 kernel: NFSD: starting 90-second grace period


IPtables on HN are disabled. And the rest of services works properly.
Kernel is:

Linux 2.6.18-92.1.1.el5.028stab057.2PAE

I checked kernel config file on /boot and nothin is returned

# cat config-2.6.18-92.1.1.el5.028stab057.2PAE |grep "CONFIG_NFDS"


Nothing returned :/

Can anybody give some idea? Do I have to recompile kernel with NFS support? or are there another way ?

Thanks!

[Updated on: Mon, 06 October 2008 10:27]

Report message to a moderator

Re: SOLVED ** Re: nfs and openvz [message #34511 is a reply to message #33299] Tue, 13 January 2009 19:16 Go to previous message
dowdle is currently offline  dowdle
Messages: 261
Registered: December 2005
Location: Bozeman, Montana
Senior Member
Have you read the wiki pages on NFS?

You can't run the kernel-based NFS server inside of a container. That has been made clear from the beginning.

You can however:

1) Run a userspace NFS server (haven't tried it myself)

2) Have a container that is an NFS client


--
TYL, Scott Dowdle
Belgrade, Montana, USA
Previous Topic: VZ not starting automatically
Next Topic: [answered] NFS4 in a VE
Goto Forum:
  


Current Time: Thu Nov 14 22:55:24 GMT 2024

Total time taken to generate the page: 0.03379 seconds