LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-11-2021, 01:50 PM   #1
The_Evil_One
LQ Newbie
 
Registered: Sep 2021
Posts: 4

Rep: Reputation: Disabled
Unhappy Sharing /home directories symmetrically with 2 computers only works one way.


I have 2 working computers that I use at the moment, they are named
md-tower-001.localdomain & note-book-002.localdomain. md-tower-001 contains a Gigabyte
B450M DS3H mainboard with a RYZEN5 CPU and note-book-002 is an ASUS VivoBook X540M
note book with an Intel Pentium Silver CPU

The 2 working computers have Fedora Workstation 34 X86_64 installed and software is up to date as of a few days ago.

I have had no problem sharing directories /home RO and /home/Backups RW of note-book-002 with md-tower-001 but nothing I try to allow note-book-002 to share directories /home RO and /home/Backups RW of md-tower-001 works.

Everything that matters in /etc exports, fstab & hosts is set up the same on both systems except that any entry inconsistent with a machine is commented out.

/etc/exports on all machines:-
#
# exports on all machines as at 2021/09/12 00:44
#
/home *.localdomain(ro,nohide)
/home/backups *.localdomain(rw,nohide)

/etc/fstab on md-tower-001
#
# /etc/fstab for md-tower-001
# Created by anaconda on Tue Aug 18 13:47:02 2020
#
# Accessible filesystems, by reference, are maintained under '/dev/disk/'.
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.
#
# After editing this file, run 'systemctl daemon-reload' to update systemd
# units generated from this file.
#
/dev/mapper/fedora_HDD042-root / ext4 defaults 1 1
UUID=32a61d5d-1a82-4b59-b150-2794b0879df4 /boot ext4 defaults 1 2
UUID=1BB7-AD0A /boot/efi vfat umask=0077,shortname=winnt 0 2
/dev/mapper/fedora_HDD042-home /home ext4 defaults 1 2
/dev/mapper/fedora_HDD042-var /var ext4 defaults 1 2
/dev/mapper/fedora_HDD042-swap none swap defaults 0 0
#
# NFS MOUNTS
#
# md-tower-001.localdomain:/home /mnt/md-tower-001/home/ nfs defaults 0 0
# md-tower-001.localdomain:/home/backups /mnt/md-tower-001/home/backups/ nfs defaults 0 0
note-book-001.localdomain:/home /mnt/note-book-001/home/ nfs defaults 0 0
note-book-001.localdomain:/home/backups /mnt/note-book-001/home/backups/ nfs defaults 0 0
note-book-002.localdomain:/home /mnt/note-book-002/home/ nfs defaults 0 0
note-book-002.localdomain:/home/backups /mnt/note-book-002/home/backups/ nfs defaults 0 0

The version on /note-book-002 is identical except that the lines for note-book-002 are commented out and those for md-tower-001 are not

/etc/hosts
# /etc/hosts for both systens
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.0.11 md-tower-001.localdomain
192.168.0.10 note-book-002.localdomain

If I attempt to mount one of these files the command hangs for a while and then times out
[root@note-book-002 Carl]# mount /mnt/md-tower-001/home
mount.nfs: Connection refused
[root@note-book-002 Carl]#
 
Old 09-14-2021, 04:23 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 21,816

Rep: Reputation: 4252Reputation: 4252Reputation: 4252Reputation: 4252Reputation: 4252Reputation: 4252Reputation: 4252Reputation: 4252Reputation: 4252Reputation: 4252Reputation: 4252
Possibilities.

How are the IP addresses configured? Are you using static or DHCP reservations? Can you still ping by hostname?

Are the NFS and RPC ports open on the mid-tower firewall? You need 2049 and 111 for both TCP and UDP.

IS rpcbind running on the note book?
 
1 members found this post helpful.
Old 09-18-2021, 02:49 AM   #3
The_Evil_One
LQ Newbie
 
Registered: Sep 2021
Posts: 4

Original Poster
Rep: Reputation: Disabled
Your questions yielde interesting answers michaelk.

Quote:
Originally Posted by michaelk View Post
Possibilities.

How are the IP addresses configured? Are you using static or DHCP reservations? Can you still ping by hostname?

IPV4 addresses are static in the router. Originally assigned by DHCP but used router control facility to assign them permanently. Can ping both ways.


Are the NFS and RPC ports open on the mid-tower firewall? You need 2049 and 111 for both TCP and UDP.

Have not looked yet as answers to your next question turned out to be more fruitful.

IS rpcbind running on the note book?
rpcbind & 4 other rpc programs running on note-book-002 but none running on md-tower-001. I suspect that this is a helpful clue. Thanks michaelk.

I have since examined logs for both machines and find evidence of rpc related programs starting sucessfully on note-book-002 and failing to start on md-tower-001.Now I have to make sense of the log messages on md-tower-001 to interpret them.
 
Old 09-18-2021, 11:47 PM   #4
The_Evil_One
LQ Newbie
 
Registered: Sep 2021
Posts: 4

Original Poster
Rep: Reputation: Disabled
In my last reply I intended to answer all michaelk's questions.

I thought it made sense to quote michaelk's post and put my answers after each question, it did not work and the post only contained the answer to the last one.

This is what I meant to post:-


How are the IP addresses configured? Are you using static or DHCP reservations? Can you still ping by hostname?

IPV4 addresses are static in the router. Originally assigned by DHCP but used router control facility to assign them permanently. Can ping both ways.


Are the NFS and RPC ports open on the mid-tower firewall? You need 2049 and 111 for both TCP and UDP.

Have not looked yet as answers to your next question turned out to be more fruitful.

IS rpcbind running on the note book?

Running on notebook but not on mdtower. Logs show sucessful start on notebook but failure on mdtower.
 
Old Today, 12:01 AM   #5
The_Evil_One
LQ Newbie
 
Registered: Sep 2021
Posts: 4

Original Poster
Rep: Reputation: Disabled
Now I am studying how to print off segments from journal created by systemd-journald. The Gnome log viewer is nice if one does not want to copy/paste long extracts but as far as I can see from my reading so far to do so effectively one needs to use the command line tool journaldctl.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
sharing computers on a home network Pedroski Linux - Networking 13 06-02-2016 07:48 AM
scp - Two computers, can only transfer files one way jqweezy Linux - Networking 2 02-13-2009 02:12 PM
LXer: FSF works with Los Alamos Computers to provide free computers LXer Syndicated Linux News 0 07-29-2008 10:12 PM
How to enable 2 ssh server : one for /home and one for /home/theuser only? frenchn00b Linux - Server 14 05-06-2008 05:37 PM
Two computers to one printer,one of them windows and one Puppy Linux and Windows 2000 birdbrained Linux - Newbie 1 11-09-2007 12:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration