SOLVED NFS Mount error : mount system call failed

doubledip

Dabbler
Joined
Jan 7, 2016
Messages
11
Hello all,

I'm currently trying to share some of my files with a Ubuntu virtual machine and i'm getting the following error :

Code:
raoul@docker1:/mnt$ sudo mount -a
mount.nfs: mount system call failed
mount.nfs: mount system call failed


I'm completly lost and dont know where i could find more detailed informations of what's going on, i would love some help on this please.

Currently running FreeNAS-11.3-U2.1

Here is my current files setup. I want to share the two "medias" dataset.


fvuUAwL.png



Dataset's owner is me (raoul / UID=1000) and i created an user with the same UID on client machine :

C9KMEoT.png


Code:
raoul@docker1:/mnt$ cat /etc/passwd | grep raoul
raoul:x:1000:1000:Raoul Hernandez:/home/raoul:/bin/bash


I created the shares through the web interface, here is my /etc/exports :

Code:
root@dakar[~]# cat /etc/exports
/mnt/zpool.1/medias -alldirs
/mnt/zpool.2/medias -alldirs


Here is the fstab file on the client machine :

Code:
raoul@docker1:/mnt$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/vda2 during curtin installation
/dev/disk/by-uuid/6f9c21fe-41e6-43e6-acb3-0f45cd3955cf / ext4 defaults 0 0
# /boot/efi was on /dev/vda1 during curtin installation
/dev/disk/by-uuid/3BDC-1553 /boot/efi vfat defaults 0 0
/swap.img       none    swap    sw      0       0

192.168.1.36:/mnt/zpool.1/medias/       /mnt/medias.1/  nfs     rw      0       0
192.168.1.36:/mnt/zpool.2/medias/       /mnt/medias.2/  nfs     rw      0       0


Thanks by advance for your help,
Raoul
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
Is the NFS service running?
 

doubledip

Dabbler
Joined
Jan 7, 2016
Messages
11
Yes it was running, with no particular options.

I just tried to check the "Enable NFSv4" option though, and got the following errors :

Code:
raoul@docker1:/mnt$ sudo mount -a
mount.nfs: access denied by server while mounting 192.168.1.36:/mnt/zpool.1/medias/
mount.nfs: access denied by server while mounting 192.168.1.36:/mnt/zpool.2/medias/


Maybe i have a permissions problem, but i can't figure it out ...
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
How are your NFS mounts defined? You probably have to set your mapall user to raoul, and your mapall group to media.
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
This is because the NFS server runs as nobody:nobody, unless you tell it otherwise.
 
Top