6,534
edits
Changes
add troubleshooting + some reformatting
== 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.
NB! Currently only NFSv3 is supported - no NFSv4 support yet.
=== Prerequisites ===
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 ===* 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 by uncommenting the following lines: MOUNTD_NFS_V3="yes" RPCNFSDARGS="-N 4" NFSD_MODULE="noload"* Start NFS service:: <code>chkconfig nfs on && service nfs start</code> === Troubleshooting === Make sure that:# you have enabled nfsd feature for your container# nfsd kernel module is loaded before you started the container ==== rpcbind ==== If you see this:<pre># service nfs start...Starting NFS services: [ OK ]Starting NFS quotas: Cannot register service: RPC: Unable to receive; errno = Connection refusedrpc.rquotad: unable to register (RQUOTAPROG, RQUOTAVERS, udp).</pre>
</pre>
== User-space NFS server ==