Canedje
Posts: 265
Joined: Thu Mar 26, 2015 7:18 am

mount 2 RPI not working anymore(Solved?)

Thu Nov 17, 2016 10:34 am

I'll try to mount to RPI's
one direction is working.
The other way not. Both RPI are the same way configured for mounting (Except the IP adresses offcourse)
It worked in the past.
But now one is not mounting.

I checked the rpcbind. It started and its running on both machines.:

Code: Select all

ewh@raspberrypi-1 ~ $ sudo systemctl status rpcbind
● rpcbind.service - LSB: RPC portmapper replacement
   Loaded: loaded (/etc/init.d/rpcbind)
  Drop-In: /run/systemd/generator/rpcbind.service.d
           └─50-rpcbind-$portmap.conf
   Active: active (running) since wo 2016-11-16 21:08:26 CET; 10min ago
  Process: 410 ExecStart=/etc/init.d/rpcbind start (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/rpcbind.service
           └─434 /sbin/rpcbind -w

nov 16 21:08:26 raspberrypi-1 systemd[1]: Starting LSB: RPC portmapper replacement...
nov 16 21:08:26 raspberrypi-1 rpcbind[410]: Starting rpcbind daemon....
nov 16 21:08:26 raspberrypi-1 systemd[1]: Started LSB: RPC portmapper replacement.
nov 16 21:08:29 raspberrypi-1 systemd[1]: Started LSB: RPC portmapper replacement.
nov 16 21:11:04 raspberrypi-1 systemd[1]: Started LSB: RPC portmapper replacement.


Code: Select all

ewh@raspberrypi-3:~ $ sudo systemctl status rpcbind
● rpcbind.service - LSB: RPC portmapper replacement
   Loaded: loaded (/etc/init.d/rpcbind)
  Drop-In: /run/systemd/generator/rpcbind.service.d
           └─50-rpcbind-$portmap.conf
   Active: active (running) since wo 2016-11-16 21:17:32 CET; 1min 42s ago
  Process: 1746 ExecStart=/etc/init.d/rpcbind start (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/rpcbind.service
           └─1756 /sbin/rpcbind -w

nov 16 21:17:32 raspberrypi-3 rpcbind[1746]: Starting rpcbind daemon....
nov 16 21:17:32 raspberrypi-3 systemd[1]: Started LSB: RPC portmapper replacement.

raspberrypi-3 is mounting. correct.
raspberrypi-1 not:
Code: Select all
ewh@raspberrypi-3:~ $ df -h
Bestandssysteem                                 Grootte Gebruikt Besch Geb% Aangekoppeld op
/dev/root                                           14G     4,0G  8,7G  32% /
devtmpfs                                           459M        0  459M   0% /dev
tmpfs                                              463M        0  463M   0% /dev/shm
tmpfs                                              463M     6,6M  457M   2% /run
tmpfs                                              5,0M     4,0K  5,0M   1% /run/lock
tmpfs                                              463M        0  463M   0% /sys/fs/cgroup
/dev/mmcblk0p6                                      66M      21M   46M  31% /boot
192.168.2.185:/home/ewh                             14G     3,7G  9,2G  29% /mnt/PI
//192.168.2.100/NetwerkSchijf/Edward/BackupRasp    1,8T     1,5T  304G  84% /mnt/NAS
tmpfs                                               93M        0   93M   0% /run/user/1001
tmpfs                                               93M        0   93M   0% /run/user/1000
/dev/mmcblk0p5                                      30M     445K   28M   2% /media/ewh/SETTINGS
ewh@raspberrypi-1 ~ $ df -h
Bestandssysteem Grootte Gebruikt Besch Geb% Aangekoppeld op
/dev/root 14G 3,7G 9,2G 29% /
devtmpfs 459M 0 459M 0% /dev
tmpfs 463M 0 463M 0% /dev/shm
tmpfs 463M 6,8M 457M 2% /run
tmpfs 5,0M 4,0K 5,0M 1% /run/lock
tmpfs 463M 0 463M 0% /sys/fs/cgroup
/dev/mmcblk0p5 60M 20M 40M 33% /boot
//192.168.2.100/NetwerkSchijf/Edward/BackupRasp 1,8T 1,5T 304G 84% /mnt/NAS
tmpfs 93M 0 93M 0% /run/user/106
tmpfs 93M 0 93M 0% /run/user/1001


The line in fstab is:

Code: Select all

192.168.2.202:/home/ewh /mnt/PI nfs rw 0 0
nmap -sn 192.168.2.202 gives:

Code: Select all

Starting Nmap 6.47 ( http://nmap.org ) at 2016-11-16 22:03 CET
Nmap scan report for 192.168.2.202
Host is up (0.011s latency).
Nmap done: 1 IP address (1 host up) scanned in 0.06 seconds
I do see a difference at the mount directory between both RPI's. At the one the owner is ewh at the other root root:

Code: Select all

drwxrwxrwx 2 root root  4096 apr  1  2015 PI
ewh@raspberrypi-1:/mnt $

drwxrwxrwx 5 ewh   1004 4096 okt 22 16:57 PI
ewh@raspberrypi-3:/mnt $
If I try sudo mount -a.
I have to use CTR C to stop the command and mount is not happening.

Where can I find mount error login?
The strange part is that it worked fine in the past?
What could be wrong?
Last edited by Canedje on Thu Nov 17, 2016 7:03 pm, edited 1 time in total.

Canedje
Posts: 265
Joined: Thu Mar 26, 2015 7:18 am

Re: mount 2 RPI not working anymore

Thu Nov 17, 2016 5:24 pm

Now even none is mounting anymore.
I tried everything, but nothing helped.
doing manual mount gives:

Code: Select all

sudo mount -v -t nfs 192.168.2.202:/home/ewh /mnt/PI
mount.nfs: timeout set for Thu Nov 17 19:12:47 2016
mount.nfs: trying text-based options 'vers=4,addr=192.168.2.202,clientaddr=192.168.2.185'
mount.nfs: mount(2): Connection refused


Maybe the network is causing problems?

Is there an other way to mount two RPI directorys to each other?
Mounting the NAS is working fine

Canedje
Posts: 265
Joined: Thu Mar 26, 2015 7:18 am

Re: mount 2 RPI not working anymore

Thu Nov 17, 2016 7:02 pm

It looks like it is solved.
I reinstalled the nfs-kernel server on both RPI's:

Code: Select all

sudo apt-get install nfs-kernel-server
After that it is running again on both machines

Return to “Troubleshooting”