Cannot make nfs server inside CT [message #52228] |
Wed, 07 October 2015 12:20 |
Andrei
Messages: 3 Registered: October 2015
|
Junior Member |
|
|
Hello
I have a HN with some CTs and need to do a nfs server in one of them. I have followed the wiki, all modules/settings are made however cannot start the nfs inside the CT.
On HN I have the nfs and nfsd modules loaded.
lsmod | grep nfs
pio_nfs 19011 0
ploop 118719 14 pio_kaio,pio_nfs,pio_direct,pfmt_raw,pfmt_ploop1
nfs 445290 6 pio_nfs,vzrst,vzcpt
fscache 55676 1 nfs
nfsd 313774 1
lockd 76070 3 vzrst,nfs,nfsd
nfs_acl 2655 2 nfs,nfsd
auth_rpcgss 46084 2 nfs,nfsd
sunrpc 271776 10 pio_nfs,nfs,nfsd,lockd,nfs_acl,auth_rpcgss
When I start the nfs service inside a CT I get, but as you can see the modules already laded in the HN.
Starting NFS daemon: rpc.nfsd: Unable to access /proc/fs/nfsd errno 2 (No such file or directory).
Please try, as root, 'mount -t nfsd nfsd /proc/fs/nfsd' and then restart rpc.nfsd to correct the problem
The HN and CTs are running centos 6.7 (HN -64bit, CTs 32bit) with latest updates, with kernel Linux 2.6.32-042stab111.12.
Nor sure why the nfsd is not seen inside the CT, what should I check?
Thanks!
|
|
|
|
Re: Cannot make nfs server inside CT [message #52230 is a reply to message #52229] |
Wed, 07 October 2015 15:36 |
Andrei
Messages: 3 Registered: October 2015
|
Junior Member |
|
|
Yes, I have restarted several times, same message that the nfsd is not loaded. The nfs and nfds modules are set to autload at boot time for the HN - added the modprobe nfsd and modprobe nfs to /etc/rc.modules. Also, added to load in to rc.local, same issue.
vzctl version 4.9.4 is used on the HN.
LE
Not sure why nfs4 is used, I have set MOUNTD_NFS_V3="yes" RPCNFSDARGS="-N 4" and NFSD_MODULE="noload" in /etc/sysconfig/nfs inside the CT. Why is loading the v4?
vzctl exec 104 cat /proc/filesystems
nodev cgroup
nodev devpts
nodev mqueue
ext4
nodev nfs
nodev nfs4
ext3
nodev delayfs
nodev devtmpfs
nodev sysfs
nodev proc
nodev tmpfs
nodev binfmt_misc
nodev rpc_pipefs
[Updated on: Wed, 07 October 2015 15:43] Report message to a moderator
|
|
|
Re: Cannot make nfs server inside CT [message #52231 is a reply to message #52230] |
Wed, 07 October 2015 18:38 |
Andrei
Messages: 3 Registered: October 2015
|
Junior Member |
|
|
Installed also the testing kernel 2.6.32-042stab112.7 and despite the modules are loaded in to the HN, the nfs won't start inside the CT.
service nfs restart
Shutting down NFS daemon: [FAILED]
Shutting down NFS mountd: [ OK ]
Shutting down NFS quotas: [ OK ]
Starting NFS services: [ OK ]
Starting NFS quotas: [ OK ]
Starting NFS mountd: [ OK ]
Starting NFS daemon: rpc.nfsd: Unable to access /proc/fs/nfsd errno 2 (No such file or directory).
Please try, as root, 'mount -t nfsd nfsd /proc/fs/nfsd' and then restart rpc.nfsd to correct the problem
[FAILED]
lsmod | grep nfs
pio_nfs 19011 0
ploop 118719 8 pio_kaio,pio_nfs,pio_direct,pfmt_raw,pfmt_ploop1
nfs 447114 6 pio_nfs,vzrst,vzcpt
fscache 55676 1 nfs
nfsd 313454 1
lockd 76070 3 vzrst,nfs,nfsd
nfs_acl 2655 2 nfs,nfsd
auth_rpcgss 46084 2 nfs,nfsd
sunrpc 271712 10 pio_nfs,nfs,nfsd,lockd,nfs_acl,auth_rpcgss
[root@dev ~]# uname -a
Linux dev 2.6.32-042stab112.7 #1 SMP Tue Sep 29 16:45:02 MSK 2015 x86_64 x86_64 x86_64 GNU/Linux
|
|
|