*RESOLVED* nfs and openvz [message #14689] |
Fri, 06 July 2007 03:21 |
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: SOLVED ** Re: nfs and openvz [message #33299 is a reply to message #14700] |
Mon, 06 October 2008 09:47 |
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 |
|
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
|
|
|