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

mounting problem 2 RPI's (again)

Fri Nov 11, 2016 9:13 pm

I do try to mount two RPI's to each other using the commandline in /etc/fstab:

Code: Select all

192.168.2.202:/home/ewh /mnt/PI nfs rw 0 0
This worked fine in the past.
But suddenly one of the RPI's is not mounting any more. (The other one still mounting well)
I tried restart both RPI's in different order several times but one RPI (the same) is not mounting.
Very sometimes it is mounting again.
I tried the command "sudo mount -a". This results that It is hanging and I do need to stop the mount command by Ctrl C
What could be the problem?
Is there a file somewhere I can read to find the mount error?
Last edited by Canedje on Wed Nov 16, 2016 8:29 pm, edited 1 time in total.

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

Re: mounting problem 2 RPI's

Sat Nov 12, 2016 9:28 am

I changed the /etc/eports file from:

Code: Select all

/home/ewh 192.168.2.185(rw) 192.168.2.186(rw) 192.168.2.200(rw) 192.168.2.201(rw)
to

Code: Select all

/home/ewh 192.168.2.185(rw)
#192.168.2.186(rw) 192.168.2.200(rw) 192.168.2.201(rw)
Now it works fine.
Strange. It worked before with multiple IP's in one line.
Is it not allowed to put more IP's behind each other, because I do have in the other RPI and that is working fine?

EDIT:
After restart again not running.
After changing /etc/eports some how and put IP's in line again, and saving. Its running??
Last edited by Canedje on Sat Nov 12, 2016 10:17 am, edited 2 times in total.

User avatar
DougieLawson
Posts: 36515
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: mounting problem 2 RPI's

Sat Nov 12, 2016 9:53 am

Is rpcbind running on the client machine?
Note: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

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

Re: mounting problem 2 RPI's

Sat Nov 12, 2016 10:10 am

I didn't do that myself.
How to test or to get it running?

User avatar
DougieLawson
Posts: 36515
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: mounting problem 2 RPI's

Sat Nov 12, 2016 10:38 am

sudo systemctl start rpcbind
sudo systemctl status rpcbind
Note: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

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

Re: mounting problem 2 RPI's

Sat Nov 12, 2016 10:42 am

Thanks.
In my new raspberry pi3b the command is running
at my old RPI 3 the systemctl command is unknown.
Is this a new jessie command?

User avatar
DougieLawson
Posts: 36515
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: mounting problem 2 RPI's

Sat Nov 12, 2016 10:49 am

On Whezzy use sudo /etc/init.d/rpcbind start and sudo /etc/init.d/rpcbind status.

You really need to think about getting rid of Wheezy, it's no longer maintained, you probably don't have the Dirty COW kernel fix on that one.
Note: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

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

Re: mounting problem 2 RPI's

Sat Nov 12, 2016 10:58 am

Thanks again.
Is there a method to convert? Or do you realy need to start from scratch again?
Because it is running a lot of daily used programming for controlling my heating for example

User avatar
DougieLawson
Posts: 36515
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: mounting problem 2 RPI's

Sat Nov 12, 2016 11:27 am

Starting with a fresh copy of Jessie and lifting things from your old Wheezy card is going to be easiest. You'll need a USB SDCard reader to bea able to mount the old Wheezy SDCard.
Note: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

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

Re: mounting problem 2 RPI's

Sat Nov 12, 2016 2:30 pm

I did a upgrade mentioned here:
https://www.raspberrypi.org/magpi/fix-d ... pberry-pi/

Ik took some hours and apache didn't start first.
But now I'm up and running again.

Thanks again for the advise

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

Re: mounting problem 2 RPI's

Wed Nov 16, 2016 8:22 pm

I thought I tackled the problem.
But still the old raspberry is not binding the CIFs. (It did for a while!)

I checked the rpcbind. It was not started after reboot. I started it and now 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

Code: Select all

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 command in /etc/fstab: 192.168.2.202:/home/ewh /mnt/PI nfs rw 0 0 is not executed and the system is waiting here.
because if I swop this command in /etc/fstab before: //192.168.2.100/NetwerkSchijf/Edward/BackupRasp /mnt/NAS cifs defaults,rw,username=admin,password=xxxxx,domain=workgroup 0 0.
This line is also not executed. So the /etc/fstab file will never be finished executing.

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 $
What could be wrong?

Return to “Troubleshooting”