Lestrad wrote: 
> Thanks. Here's the result:
> 
> [root@soa-wandboard /]# mount -v -t nfs4 -o nolock 192.168.0.14:/c/media
> media/netdrive                               mount.nfs4: timeout set for
> Wed Apr  1 15:08:17 2015
> mount.nfs4: trying text-based options
> 'nolock,vers=4.2,addr=192.168.0.14,clientaddr=192.168.0.13'
> mount.nfs4: mount(2): Invalid argument
> mount.nfs4: an incorrect mount option was specified
> 

What's causing the "invalid argument error"? Is it a client or server
side error? Without seeing both the NFS exports file and NFS config
files on your NAS, I'd be guessing. ( These are /etc/exports and
/etc/default/nfs-kernel-server on a default debian install for example,
waht are they no your NAS). 

Here's the output from my RPi running SOA using a mount command at CLI:


Code:
--------------------
    
  [root@soa-rpi /]# mount -v  -t nfs4  192.168.0.20:/media/musdata/Test 
/mnt/disk1
  mount.nfs4: timeout set for Wed Apr  1 13:49:10 2015
  mount.nfs4: trying text-based options 
'vers=4.2,addr=192.168.0.20,clientaddr=192.168.0.205'
  mount.nfs4: mount(2): Protocol not supported
  mount.nfs4: trying text-based options 
'vers=4.1,addr=192.168.0.20,clientaddr=192.168.0.205'
  
--------------------



Notice how the mount command shows the actual options used to mount the
NFS share. Those not specifed in the "mount -t nf4..." command default
to the values shown. This includes nolock as " local_lock=none". 


Code:
--------------------
    
  [root@soa-rpi /]# mount
  /dev/mmcblk0p2 on / type ext4 (rw,relatime,data=ordered)
  devtmpfs on /dev type devtmpfs 
(rw,relatime,size=217344k,nr_inodes=54336,mode=755)
  sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
  proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
  securityfs on /sys/kernel/security type securityfs 
(rw,nosuid,nodev,noexec,relatime)
  tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
  devpts on /dev/pts type devpts 
(rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
  tmpfs on /run type tmpfs (rw,nosuid,nodev,mode=755)
  tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
  cgroup on /sys/fs/cgroup/systemd type cgroup 
(rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd)
  cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup 
(rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
  cgroup on /sys/fs/cgroup/cpuset type cgroup 
(rw,nosuid,nodev,noexec,relatime,cpuset)
  cgroup on /sys/fs/cgroup/perf_event type cgroup 
(rw,nosuid,nodev,noexec,relatime,perf_event)
  cgroup on /sys/fs/cgroup/freezer type cgroup 
(rw,nosuid,nodev,noexec,relatime,freezer)
  cgroup on /sys/fs/cgroup/blkio type cgroup 
(rw,nosuid,nodev,noexec,relatime,blkio)
  cgroup on /sys/fs/cgroup/bfqio type cgroup 
(rw,nosuid,nodev,noexec,relatime,bfqio)
  cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup 
(rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
  cgroup on /sys/fs/cgroup/devices type cgroup 
(rw,nosuid,nodev,noexec,relatime,devices)
  systemd-1 on /proc/sys/fs/binfmt_misc type autofs 
(rw,relatime,fd=22,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
  sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw,relatime)
  tmpfs on /tmp type tmpfs (rw)
  debugfs on /sys/kernel/debug type debugfs (rw,relatime)
  mqueue on /dev/mqueue type mqueue (rw,relatime)
  configfs on /sys/kernel/config type configfs (rw,relatime)
  /dev/mmcblk0p1 on /boot type vfat 
(rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro)
  tmpfs on /run/user/0 type tmpfs 
(rw,nosuid,nodev,relatime,size=44320k,mode=700)
  192.168.0.20:/MEDIA/MUSDATA/TEST ON /MNT/DISK1 TYPE NFS4 
(RW,RELATIME,VERS=4.1,RSIZE=1048576,WSIZE=1048576,NAMLEN=255,HARD,PROTO=TCP,PORT=0,TIMEO=600,RETRANS=2,SEC=SYS,CLIENTADDR=192.168.0.205,LOCAL_LOCK=NONE,ADDR=192.168.0.20)
  
--------------------


------------------------------------------------------------------------
Krisbee's Profile: http://forums.slimdevices.com/member.php?userid=59080
View this thread: http://forums.slimdevices.com/showthread.php?t=101624

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to