wiki:manuals/nfsv41
Last modified 8 years ago Last modified on 08/16/10 18:08:18
  • Install dCache >= 1.9.3 with Chimera
  • stop nfsv3 server if you run one
  • start nfsv4.1 door
    /opt/d-cache/jobs/nfsv41 start
    

or better add it into list of enabled services in /opt/d-cache/etc/node_config file:

SERVICES= ... nfsv41

That's all!

Of course, you need a client to access it. Currently, there are two clients available - OpenSolaris and Linux.

To install OpenSolaris one please have a look at HowTo Enable pNFS client on OpenSolaris?

The Linux client installation

While Linux vanilla kernel doesn't contains NFSv4.1 support yet, you need to use a custom build:

  • Take the kernel from RedHat development builds kernel-RPM kernel-SRPM YUM-repo made by (Steve Dickson).
  • enable the nfsv4.1 file layout driver:
    modprobe nfslayoutdriver
    
  • mount dCache:
    mount -t nfs4 -o minorversion=1 dcache:/pnfs /pnfs
    

Brave people may build kernel:

  • first of all get the latest kernel from nfs developers:
    $ git clone git://linux-nfs.org/~bhalevy/linux-pnfs.git
    
  • checkout pNFS branch
    git checkout origin/pnfs-all-latest
    
  • configure kernel ( make configure ). Enable experimental modules and enable NFSv4.1 and pNFS.
  • build and install new kernel on the client host

As an option, you may try to run a VirtuaBox image (tested on 3.2.8):

  • Download and install VirtualBox
  • Download the VM image
  • unpack disk image and add it into VmBox as SATA drive
  • create a new virtual machine
  • start the machine

The machine is based on SL5.5 x86_64 kernel 2.6.35 with NFSv4.1 patch. The root password is: pnfs.

Now you should be able to read and write files into dCache by using regular file system commands, e.g. cp, less, vi. Please note that dCache still doesn't allow modifying existing files.

References

NFSv4.1 protocol specification

Linux pNFS implementation

OpenSolaris pNFS implementation