Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
netmount not starting, nfs mount time out [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Mgiese
Veteran
Veteran


Joined: 23 Mar 2005
Posts: 1626
Location: indiana

PostPosted: Tue Aug 20, 2024 8:18 pm    Post subject: netmount not starting, nfs mount time out [solved] Reply with quote

hi there,

I recently switched from a 17.1 desktop profile to a current 23 desktop profile. Almost at the same time I lost the capability to mount my NFS shares.

I tried Kernel 6.9.10, 6.10.0, 6.10.6 and nothing changes. When I try to load my network shares in thunar, it reports "Time out running command-line "mount /smth/smth"".

When the system shuts down it gets stuck and telling me "calling to flock failed"

Code:
 # rc-config show
Status of init scripts in runlevel "default"
  NetworkManager            [started]
  bluetooth                 [started]
  cronie                    [started]
  cupsd                     [started]
  dbus                      [started]
  display-manager           [started]
  local                     [started]
  netmount                  [starting]
  syslog-ng                 [started]
  udev                      [started]


"rc-config show" indicates that netmount is not started. I tried to manually start it but to no avail.

When the system starts I see a message saying netmount will be started as soon as NetworkManager starts. Though NetworkManager is not being started in any runlevel it still starts. I tried restarting NetworkManager but I still can not start netmount. I added NetworkManager to the default runlevel but the above mentioned behaviour does not change at all. I guess its just a case of poorly configured dependencies at startup.

Any help is very much appreciated.


PS : also mounting the network share in console takes forever and then shows: "# mount 192.168.x.x:/music /music
mount.nfs: Connection timed out for 192.168.x.x:/music on /music"

btw: I did change nothing in my network environment. Other devices can use the netshare like before.
_________________
I do not have a Superman complex, for I am God not Superman :D

Ryzen9 7950x (powersave governor) ; Geforce 3050 (70w) ; kernel 6.10.6 ; XFCE


Last edited by Mgiese on Wed Aug 21, 2024 11:13 pm; edited 1 time in total
Back to top
View user's profile Send private message
Mgiese
Veteran
Veteran


Joined: 23 Mar 2005
Posts: 1626
Location: indiana

PostPosted: Tue Aug 20, 2024 8:44 pm    Post subject: Reply with quote

I added "CONFIG_NFSD=y" to my kernel config. And I added "nfs" and "nfsclient" to the default runlevel. Didnt change anything.
_________________
I do not have a Superman complex, for I am God not Superman :D

Ryzen9 7950x (powersave governor) ; Geforce 3050 (70w) ; kernel 6.10.6 ; XFCE
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 1908

PostPosted: Tue Aug 20, 2024 10:08 pm    Post subject: Reply with quote

Because of timing with NetworkManager (and possibly DHCP), to ensure that a certain IP is available, configure /etc/conf.d/net-online and add rc_need="network-online" to /etc/conf.d/netmount
Back to top
View user's profile Send private message
Mgiese
Veteran
Veteran


Joined: 23 Mar 2005
Posts: 1626
Location: indiana

PostPosted: Wed Aug 21, 2024 9:00 am    Post subject: Reply with quote

this is my current content of /ect/conf.d/net:

Code:
# cat /etc/conf.d/net
config_enp27s0="192.168.x.x netmask 255.255.254.0"
routes_enp27s0="default 192.168.x.x"
dns_servers="192.168.x.x 8.8.8.8"


do I still need an extra net-online config ? I did not find an example net-online file...
_________________
I do not have a Superman complex, for I am God not Superman :D

Ryzen9 7950x (powersave governor) ; Geforce 3050 (70w) ; kernel 6.10.6 ; XFCE


Last edited by Mgiese on Wed Aug 21, 2024 9:41 am; edited 2 times in total
Back to top
View user's profile Send private message
Mgiese
Veteran
Veteran


Joined: 23 Mar 2005
Posts: 1626
Location: indiana

PostPosted: Wed Aug 21, 2024 9:40 am    Post subject: Reply with quote

after adding "interfaces="enp7s0"" to /etc/conf.d/net-online, "rc_need="network-online"" to /etc/conf.d/netmount and executing "rc-update add NetworkManager" the system now starts netmount. But when starting the system openrc(dont know which service exactly) tries to start all net shares, 4 of them, i have to wait 5 minutes until it throws a timeout error for each net share. So the timeout is not fixed that way. Though I don`t know if adding "interfaces="enp7s0"" to /etc/conf.d/net-online was really what you expected me to do :)
_________________
I do not have a Superman complex, for I am God not Superman :D

Ryzen9 7950x (powersave governor) ; Geforce 3050 (70w) ; kernel 6.10.6 ; XFCE
Back to top
View user's profile Send private message
Mgiese
Veteran
Veteran


Joined: 23 Mar 2005
Posts: 1626
Location: indiana

PostPosted: Wed Aug 21, 2024 9:49 am    Post subject: Reply with quote

Thanks for your help :) it works how it should !!

Earlier, I placed an extra cisco switch between the pc and router which obviously blocks the nfs traffic... Now I only have to find out which ports are required for NFS


Thank you

edit : cisco switch needed a new firmware, and the NFS timeouts are gone
_________________
I do not have a Superman complex, for I am God not Superman :D

Ryzen9 7950x (powersave governor) ; Geforce 3050 (70w) ; kernel 6.10.6 ; XFCE
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum