NFSv4 - how to set up at FreeBSD 8.1 ?

Rick Macklem rmacklem at uoguelph.ca
Tue Jan 4 00:06:16 UTC 2011


> Hi all,
> 
> I have installed two VMs (server and client), regular installation
> with
> GENERIC kernel.
> I cannot manage to set up NFSv4 working on them.
> 
> Configuration of server:
> 
> /etc/rc.conf:
> keymap="pl_PL.ISO8859-2"
> hostname="nfs4-server"
> ifconfig_em0="dhcp"
> sshd_enable="YES"
> nfs_server_enable="YES"
> nfsv4_server_enable="YES"
> nfsuserd_enable="YES"
> 
> /etc/exports:
> V4: /
This only states where the root of the nfsv4 tree is. You also need to
export the volume(s) just like for nfsv3. If you are mounting "/" as below
you'd also need something like the line:
/ -maproot=root -network 192.168.183.1 -mask 255.255.255.0
> 
> 
> Configuration of client:
> /etc/rc.conf:
> keymap="pl_PL.ISO8859-2"
> hostname="nfs4-client"
> ifconfig_em0="dhcp"
> sshd_enable="YES"
> nfsuserd_enable="YES"
> nfscbd_enable="YES"
> 
> Trying to mount '/' server share at client:
> nfs4-client# mount_nfs -o nfsv4 192.168.183.131:/ /marek_nfs4/
> nfs4-client# ls /marek_nfs4/
> ls: /marek_nfs4/: Input/output error
> nfs4-client#
> 
> 
> What am I doing wrong? My aim is to mount home directories from server
> to client but currently I am unable to mount any share.
> 


More information about the freebsd-stable mailing list