Changes

Jump to: navigation, search

NFS server inside container

509 bytes added, 19:47, 23 October 2012
Kernel NFS server
== Kernel NFS server ==
Kernel-space NFS server is supported by latest RHEL5 and RHEL6 based kernels and since vzctl-3.0.24. NB! Currently only NFSv3 is supported - no NFSv4 support yet.
In order to run an NFS server inside a container, make sure:
* nfsd kernel module is loaded on host system before starting a container
* nfsd feature for a container is turned on (<code>vzctl set $CTID --feature nfsd:on --save</code>)
 
Setup NFSv3 inside RHEL6/CentOS6/SL6 container:
* Make sure that rpcbind service is started before nfs service: <code>chkconfig rpcbind on && service rpcbind start</code>
* Disable NFSv4 and nfsd module loading warnings in /etc/sysconfig/nfs:<code>
vi /etc/sysconfig/nfs
 
--- MODIFY ---
 
MOUNTD_NFS_V3="yes"
 
RPCNFSDARGS="-N 4"
 
NFSD_MODULE="noload"
 
--- MODIFY ---
</code>
* Start NFS service:<code>chkconfig nfs on && service nfs start</code>
== User-space NFS server ==
5
edits

Navigation menu