Previous page

Next page

Locate page in Contents

Print this page

Enabling NFSv4 Support for Containers

To enable support for NFSv4 mounts in Containers, run the following command on the Hardware Node:

# sysctl –w fs.nfs.nfs4_ct_enable=1

To make sure the NFSv4 support remains enabled after Node reboot, add this line to /etc/sysctl.conf:

fs.nfs.nfs4_ct_enable=1

Next time a resource is mounted, Virtuozzo will automatically choose the latest NFS version supported by both the server and client.

To see support for which versions of NFS is currently enabled, check /proc/fs/nfsd/versions. For example:

# cat /proc/fs/nfsd/versions

+2 +3 +4 -4.1

Note: For this to work, you need to have started the nfs service on the Hardware Node at least once.

In our example, the support for NFS versions 2, 3, and 4 is enabled, while the support for NFS version 4.1 is disabled. To enable it:

  1. Run the following command:

    # echo "+4.1" > /proc/fs/nfsd/versions

  2. Restart the Hardware Node.