Jump to content

Armbian : problems with NFS


Guest Spooky4672

Recommended Posts

Guest Spooky4672

Hi,

 

I am trying to mount a NFS share from a NAS, it work flawlessly on my pc (Arch) but on my odroid (Armbian), only NFSv3 works, not NFSv4.

$ sudo mount.nfs -vvv 10.10.0.131:/volume1/Owncloud data rw       
mount.nfs: timeout set for Wed Jun  1 12:01:19 2016
mount.nfs: trying text-based options 'vers=4,addr=10.10.0.131,clientaddr=10.10.0.130'
mount.nfs: mount(2): No such file or directory
mount.nfs: trying text-based options 'addr=10.10.0.131'
mount.nfs: prog 100003, trying vers=3, prot=6
mount.nfs: trying 10.10.0.131 prog 100003 vers 3 prot TCP port 2049
mount.nfs: prog 100005, trying vers=3, prot=17
mount.nfs: trying 10.10.0.131 prog 100005 vers 3 prot UDP port 42889

Maybe a package is missing ? I have installed nfs-common, I think that's all I need but I have noticed I have 'gvfs-nfs' also installed on my Arch, I don't know what it is.

 

Another problem is that the owner of the mounted directory is set to 999, I don't know what user it is. It weird because on my pc it's just root or "me" if I add the 'user' option. How can I get the username that 999 refer to ? Is it a user of the NAS or of local system ?

Link to comment
Share on other sites

@Spooky4672

 

no idea, but what do you get with

zcat /proc/config.gz | grep NFS

 

 

 

gr@bpi:~$ zcat /proc/config.gz | grep NFS
# CONFIG_USB_FUNCTIONFS is not set
CONFIG_KERNFS=y
CONFIG_NFS_FS=y
CONFIG_NFS_V2=y
CONFIG_NFS_V3=y
CONFIG_NFS_V3_ACL=y
CONFIG_NFS_V4=y
CONFIG_NFS_SWAP=y
CONFIG_NFS_V4_1=y
CONFIG_NFS_V4_2=y
CONFIG_PNFS_FILE_LAYOUT=y
CONFIG_PNFS_BLOCK=m
CONFIG_PNFS_FLEXFILE_LAYOUT=m
CONFIG_NFS_V4_1_IMPLEMENTATION_ID_DOMAIN="kernel.org"
# CONFIG_NFS_V4_1_MIGRATION is not set
CONFIG_ROOT_NFS=y
# CONFIG_NFS_USE_LEGACY_DNS is not set
CONFIG_NFS_USE_KERNEL_DNS=y
CONFIG_NFSD=y
CONFIG_NFSD_V2_ACL=y
CONFIG_NFSD_V3=y
CONFIG_NFSD_V3_ACL=y
CONFIG_NFSD_V4=y
# CONFIG_NFSD_PNFS is not set
# CONFIG_NFSD_FAULT_INJECTION is not set
CONFIG_NFS_ACL_SUPPORT=y
CONFIG_NFS_COMMON=y

 

 

Link to comment
Share on other sites

The quick and dirty way to find the user id assigned to that number is to do the following as root

 

getent passwd "999" | cut -d: -f1

 

 

 

can you post the output of /etc/exports

 

the default for most nfs installs is v4, when i install nfs and configure it i do it the following way.

 

apt-get update ; apt-get upgrade ; apt-get install autofs nfs-kernel-server nfs-common --install-recomends -f -y ; sync ; reboot ;

 

 

BTW - im currently working on a howto around NFS over on the doozan forums so if you want to have a look there that may help as well

http://forum.doozan.com/read.php?2,28351

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines