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: / 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. -- Marek Salwerowicz
Monday 03 of January 2011 23:48:16 Marek Salwerowicz napisa?(a):> /etc/exports: > V4: /> 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.Maybe it's only incorrect exports file?? In my case (NFSv3) it looks: /data -maproot=root 192.168.0.10 -- Maciej
> 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. >
On Wednesday, January 05, 2011 5:55:53 am perryh@pluto.rain.com wrote:> Rick Macklem <rmacklem@uoguelph.ca> wrote: > > > ... one of the fundamental principals for NFSv2, 3 was a stateless > > server ... > > Only as long as UDP transport was used. Any NFS implementation that > used TCP for transport had thereby abandoned the stateless server > principle, since a TCP connection itself requires that state be > maintained on both ends.Not filesystem cache coherency state, only socket state. And even NFS UDP mounts maintain their own set of "socket" state to manage retries and retransmits for UDP RPCs. The filesystem is equally incoherent for both UDP and TCP NFSv[23] mounts. TCP did not change any of that. -- John Baldwin