OpenVZ Forum


Home » General » Support » [solved] Can't mount NFS partitions from the HN
[solved] Can't mount NFS partitions from the HN [message #33795] Mon, 10 November 2008 16:26 Go to next message
silentninja is currently offline  silentninja
Messages: 37
Registered: September 2007
Member
I've followed this tutorial...
http://wiki.openvz.org/NFS

And now the NFS Server does work, I'm sharing one folder (webserver-home):

[root@webserver /]# rpcinfo -p 192.168.0.25
   program vers proto   port
    100000    2   tcp    111  portmapper
    100000    2   udp    111  portmapper
    100024    1   udp    626  status
    100024    1   tcp    629  status


But the fact is that on the VE I cannot mount it, and the nfs service refuses to start:

[root@webserver /]# mount -v -t nfs -o rw,vers=3,rsize=32768,wsize=32768,hard,proto=tcp,timeo=600,retrans=2,sec=sys,addr=192.168.0.25 192.168.0.25:/mnt/webserver-home /home
mount: mount to NFS server '192.168.0.25' failed: RPC Error: Program not registered.


[root@webserver /]# service nfs restart  
Shutting down NFS mountd:                                  [FAILED]
Shutting down NFS daemon:                                  [FAILED]
Shutting down NFS services:                                [FAILED]
Starting NFS services:                                     [  OK  ]
Starting NFS quotas: Cannot register service: RPC: Unable to receive; errno = Connection refused
rpc.rquotad: unable to register (RQUOTAPROG, RQUOTAVERS, udp).
[FAILED]
Starting NFS daemon:                                       [FAILED]


[root@webserver /]# rpcinfo -p localhost   
rpcinfo: can't contact portmapper: RPC: Remote system error - Connection refused

[root@webserver /]# modprobe nfs
FATAL: Could not load /lib/modules/2.6.18-92.1.13.el5.028stab059.3/modules.dep: No such file or directory


This is the info of the HN:
[root@localhost ~]# vzctl --version
vzctl version 3.0.22

[root@localhost ~]# uname -a
Linux localhost.localdomain 2.6.18-92.1.13.el5.028stab059.3 #1 SMP Wed Oct 15 13:33:44 MSD 2008 x86_64 x86_64 x86_64 GNU/Linux

[root@localhost ~]# cat /etc/*release
CentOS release 5 (Final)

[root@localhost ~]# cat /etc/exports 
/mnt/webserver-home	192.168.0.35(rw,no_subtree_check)


(HN is .25 and VE is .35)

[Updated on: Tue, 11 November 2008 09:10] by Moderator

Report message to a moderator

Re: Can't mount NFS partitions from the HN [message #33797 is a reply to message #33795] Mon, 10 November 2008 16:47 Go to previous messageGo to next message
silentninja is currently offline  silentninja
Messages: 37
Registered: September 2007
Member
Also, nfs is enabled on the HN...
[root@localhost ~]# lsmod | grep nfs
nfs                   288184  0 
lockd                 100880  1 nfs
nfs_acl                36608  1 nfs
sunrpc                200648  4 nfs,lockd,nfs_acl


And nfs is on in the VE...
[root@webserver /]# cat /proc/filesystems | grep nfs
nodev	nfs

Re: Can't mount NFS partitions from the HN [message #33798 is a reply to message #33795] Mon, 10 November 2008 17:28 Go to previous message
silentninja is currently offline  silentninja
Messages: 37
Registered: September 2007
Member
Oh, that was just too silly, jeh..
[root@localhost ~]# service nfs restart

On the HN and tadá, the mount worked after that
Previous Topic: Limiting CPU for tasks on HN ?
Next Topic: Unregister_netdevice and ram usage
Goto Forum:
  


Current Time: Tue Jul 23 12:26:33 GMT 2024

Total time taken to generate the page: 0.02407 seconds