ZFS on Linux for RHEL/OEL NFS Sharing

I'm trying ZFS on Linux for Oracle Linux (OLE) 6.1 (Red Hat RHEL 6.1 compatible clone). I successfully compiled and installed spl and zfs on it for Oracle Unbreakable Kernel. Zfs is working and I created mirror by

zpool create -f -o ashift=12 tank mirror sdb sdc

Now I'm trying to share my zfs pool caled "tank/nfs" as mentioned at zfsonlinux site.

zfs set sharenfs=on tank/nfs

So I created tank/nfs and set nfs to on.

Now I'm trying to mount nfs share at local host to test it by

mount -t nfs4 127.0.0.1:/tank/nfs /mnt

But I get mount.nfs4: mount system call failed

So question is:

How to share NFS Folder or iSCSI Volumes at OLE rightly and mount it with Linux Client via ZFS on Linux.

the answer is mount 127.0.0.1:/tank/nfs /mnt


Solution 1:

There must be something wrong with your nfs server configuration.

Please try following this howto for setting up RHEL 6 as an nfs server.

Solution 2:

In order to establish an NFS mount, you need to have the portmap service running before attempting the mount.

Run /sbin/service portmap start and retry your NFS mount.

For RHEL6 and newer, this is in rpcbind - /sbin/service rpcbind start