NFS mount

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

NFS mount

Postby jul16ares » Thu Feb 14, 2013 7:27 am

Hello please i need help with that damn NFS.

I try to mount /srv/nfs from pogoV2 (192.168.1.100) to /media/Data on Ubuntu 12.04 (192.168.1.101)

I try a lot of things various exports options, disable ufw...Don't find any hosts.allow and osts.deny assume no kind of files with systemd

/etc/exports :

/srv/nfs/ 192.168.0.0/24(no_subtree_check,rw,all_squash,anonuid=1000,anongid=1000,sync)
#/srv/nfs/ 192.168.1.101(rw,sync)

$this->bbcode_second_pass_code('', 'sudo systemctl restart nfsd.service')

output no errors

$this->bbcode_second_pass_code('', 'sudo exports -ra ')

give me :
exportfs: could not open /var/lib/nfs/.etab.lock for locking: errno 13 (Permission denied)
exportfs: can't lock /var/lib/nfs/etab for writing

But works with root

$this->bbcode_second_pass_code('', 'rpcinfo -p')

On server give me :
program vers proto port service
100000 4 tcp 111 portmapper
100000 3 tcp 111 portmapper
100000 2 tcp 111 portmapper
100000 4 udp 111 portmapper
100000 3 udp 111 portmapper
100000 2 udp 111 portmapper
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs
100003 4 tcp 2049 nfs
100227 2 tcp 2049 nfs_acl
100227 3 tcp 2049 nfs_acl
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100003 4 udp 2049 nfs
100227 2 udp 2049 nfs_acl
100227 3 udp 2049 nfs_acl
100021 1 udp 42010 nlockmgr
100021 3 udp 42010 nlockmgr
100021 4 udp 42010 nlockmgr
100021 1 tcp 42010 nlockmgr
100021 3 tcp 42010 nlockmgr
100021 4 tcp 42010 nlockmgr

On client give me :
program vers proto port service
100000 4 tcp 111 portmapper
100000 3 tcp 111 portmapper
100000 2 tcp 111 portmapper
100000 4 udp 111 portmapper
100000 3 udp 111 portmapper
100000 2 udp 111 portmapper
100024 1 udp 57728 status
100024 1 tcp 47742 status

$this->bbcode_second_pass_code('', 'showmount -e 192.168.1.100')

On both client and server :
clnt_create: RPC: Program not registered

But still
$this->bbcode_second_pass_code('', 'sudo mount -t nfs 192.168.1.100:/srv/nfs /media/Data')
mount.nfs: access denied by server while mounting 192.168.1.100:/srv/nfs

Thanks
Last edited by jul16ares on Sat Mar 02, 2013 6:09 pm, edited 2 times in total.
jul16ares
 
Posts: 7
Joined: Thu Feb 14, 2013 6:57 am

Re: NFS mount

Postby sethjvm » Thu Feb 14, 2013 8:16 am

It is not clear to me which is the server and which is the client.
Pogo Plug Pro with ALARM SATA rootfs
success: wireless, samba, sabnzbd, sickbeard, transmission, lamp with Gallery3 and newznab+, rsync server, tor
still trying: avahi, minidlna
up next: asterisk, openvpn, proxy server of some sort
gave up: nfs and lvm
sethjvm
 
Posts: 53
Joined: Wed Oct 19, 2011 7:36 am

Re: NFS mount

Postby jul16ares » Thu Feb 14, 2013 9:11 am

Thx for repply


SERVER POGOPLUG :192.168.1.100
CLIENT DESKTOP:192.168.1.101

Much better today, i get my server mounted

I did a hosts.allow on server, and also specify STATD_OPTS="--no-notify" in /etc/conf.d/nfs-common.conf
but don't know if it helps.

plus put rpcbind: 192.168.1.100 in ubuntu's hosts.allow
Last edited by jul16ares on Thu Feb 14, 2013 11:43 am, edited 1 time in total.
jul16ares
 
Posts: 7
Joined: Thu Feb 14, 2013 6:57 am

Re: NFS mount

Postby pepedog » Thu Feb 14, 2013 10:09 am

hosts.allow was for tcpwrappers which should be obsolete in arch, you sure you have that installed? Who owns it?
$this->bbcode_second_pass_quote('', 'p')acman -Qo /etc/hosts.allow
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: NFS mount

Postby jul16ares » Thu Feb 14, 2013 11:37 am

Ok then i'll delete it, looking for errors

$this->bbcode_second_pass_code('', 'user@machine~$ sudo systemctl start nfsd.service rpc-idmapd.service rpc-mountd.service rpcbind.service')

this command
do'nt launch nfs server

but root do, so when i start the pogo i'have to lauch by root...Not very annoying
jul16ares
 
Posts: 7
Joined: Thu Feb 14, 2013 6:57 am

Re: NFS mount

Postby winestock » Thu Feb 14, 2013 10:38 pm

$this->bbcode_second_pass_quote('jul16ares', 'O')k then i'll delete it, looking for errors

$this->bbcode_second_pass_code('', 'user@machine~$ sudo systemctl start nfsd.service rpc-idmapd.service rpc-mountd.service rpcbind.service')

this command
do'nt launch nfs server

but root do, so when i start the pogo i'have to lauch by root...Not very annoying


$this->bbcode_second_pass_code('', '
sudo systemctl start rpc-idmapd rpc-mountd rpcbind nfsd
')
rpcbind has to be running first before you start nfsd.
Pogoplug Series 4 / Linux-Kirkwood 3.10.10-2
winestock
 
Posts: 134
Joined: Mon Nov 05, 2012 12:03 am

Re: NFS mount

Postby yeehaa » Fri Feb 15, 2013 1:05 am

why dont you try systemctl enable .... on all services so that they will load after the system boots up.. also in your exports it should be 192.168.1.1/24 NOT 192.168.0.0/24

also i could never get the anonuid and anongid to work on my setup.. i broke down and changed the uid and gid on my archlinux to match my mac user who was accessing the arch server..
yeehaa
 
Posts: 43
Joined: Mon May 21, 2012 7:54 pm

Re: NFS mount

Postby jul16ares » Tue Feb 19, 2013 10:27 pm

Ok thank all for replies,

I don't know much about IP/Mask, but it work now

Jul
jul16ares
 
Posts: 7
Joined: Thu Feb 14, 2013 6:57 am

Re: NFS mount

Postby jul16ares » Sat Mar 02, 2013 6:17 pm

And something else, my nfs deamons deosn't start on boot...

And through htop i get /usr/sbin/rpc.mountd -p 42002, does port 42002 is normal

Thanks
jul16ares
 
Posts: 7
Joined: Thu Feb 14, 2013 6:57 am

Re: NFS mount

Postby winestock » Sat Mar 02, 2013 6:25 pm

$this->bbcode_second_pass_quote('jul16ares', 'A')nd something else, my nfs deamons deosn't start on boot...

And through htop i get /usr/sbin/rpc.mountd -p 42002, does port 42002 is normal

Thanks


Did you:
$this->bbcode_second_pass_code('', '
systemctl enable rpcbind
systemctl enable smbd
')
Unless you enable both rpcbind and smbd they won't start at boot.

What did you put in /etc/exports? Here is what I use:
$this->bbcode_second_pass_code('', '
media/Media1 10.0.1.0/24(rw,sync,no_root_squash,no_subtree_check,nohide,insecure)
/media/Media2 10.0.1.0/24(rw,sync,no_root_squash,no_subtree_check,nohide,insecure)
')
Pogoplug Series 4 / Linux-Kirkwood 3.10.10-2
winestock
 
Posts: 134
Joined: Mon Nov 05, 2012 12:03 am
Top

Next

Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 7 guests