Unexpected NFS Auto-unmount?

Discussion in general that pertains to Sabayon Linux - Must Pertain to Sabayon Linux

Moderator: Moderators

Re: Kernel Fault?

Postby kayasaman » Sun Feb 10, 2013 11:50

At this point I'm trying the

Code: Select all
timeo=1200


option, though to renew the IP via dhcp doesn't take that long (2 minutes) but still.... perhaps it might work?
kayasaman
Young Hen
 
Posts: 29
Joined: Wed Feb 06, 2013 5:14

Re: Kernel Fault?

Postby sabayonino » Sun Feb 10, 2013 12:10

Where sabayon is installed ? Laptop ? Desktop ? ...

is connection Wired or Wireless ?
User avatar
sabayonino
Sagely Hen
 
Posts: 1559
Joined: Sun Sep 21, 2008 1:12
Location: Italy

Re: Kernel Fault?

Postby kayasaman » Sun Feb 10, 2013 12:14

On laptop wireless

On desktop wired
kayasaman
Young Hen
 
Posts: 29
Joined: Wed Feb 06, 2013 5:14

Re: Kernel Fault?

Postby sabayonino » Sun Feb 10, 2013 12:31

kayasaman wrote:On laptop wireless

On desktop wired


and both have the same problem ...

On your Desktop , can you remove NetworkManager service (not uninstall) and run dhcpcd only ?
Code: Select all
# rc-update del NetworkManager default


dhcpcd sould be enabled
Code: Select all
# rc-update add dhcpcd default


reboot and check if this solution works

If not , enable Networkmanager again
Code: Select all
# rc-update add NetworkManager default

Code: Select all
# /etc/init.d/NetworkManager start --nodeps
User avatar
sabayonino
Sagely Hen
 
Posts: 1559
Joined: Sun Sep 21, 2008 1:12
Location: Italy

Re: Kernel Fault?

Postby kayasaman » Sun Feb 10, 2013 13:02

I will definitely try that, but then what of the laptop which is also on 24 hours a day and doesn't get turned off very often or put to sleep?

I mean I would still need NetworkManager in case I went "roaming".

In the meantime I think I've found something interesting:

Code: Select all
#!/bin/sh

# these are the args passed by NetworkManager
MY_DEV_NAME="$1"
MY_NM_ACTION="$2"

# restart network mounts service in any case, networking setup is changed
# FIXME, remove: just restart myself, do not restart
# services that depend on me
net_fs="afs,cifs,coda,davfs,fuse,fuse.sshfs,gfs,glusterfs,lustre,ncpfs,nfs,nfs4,ocfs2,shfs,smbfs"
if [ "${MY_NM_ACTION}" = "up" ]; then
   mount -at ${net_fs} &
   MY_PID=$!

   # give script 20 seconds then kill
   # it happens with unavailable servers
   sleep 20
   MY_PID_ALIVE=$(kill -0 ${MY_PID} &> /dev/null)
   # kill if alive
   if [ "${MY_PID_ALIVE}" = "0" ]; then
      kill ${MY_PID} || kill -9 ${MY_PID}
      umount -at ${net_fs} -l
   fi

else # down

   # Lazy umount all filesystems
   umount -at ${net_fs} -l

fi


taken from:

Code: Select all
/etc/NetworkManager/dispatcher.d
01-netmount-up-down.rc  10-openrc-status


Does the above mean that NetworkManager will just restart itself and not the services mentioned? - could that be the cause of my issue?
kayasaman
Young Hen
 
Posts: 29
Joined: Wed Feb 06, 2013 5:14

Re: Kernel Fault?

Postby sabayonino » Sun Feb 10, 2013 13:17

ooh. it could be.

could you try "wicd" instead NetworkManager ?

net-misc/wicd
Available versions: 1.7.2.4-r2 {{X ambiance +gtk ioctl libnotify mac4lin ncurses nls +pm-utils}}
Homepage: https://launchpad.net/wicd
Description: A lightweight wired and wireless network manager for Linux


remember : remove NetworkManager service before running wicd

You could try on your pc-desktop :bom:
User avatar
sabayonino
Sagely Hen
 
Posts: 1559
Joined: Sun Sep 21, 2008 1:12
Location: Italy

Re: Kernel Fault?

Postby kayasaman » Sun Feb 10, 2013 13:40

could you try "wicd" instead NetworkManager ?


I could, though I've always experienced problems with "wicd" but that may have just been a Fedora bug :)

My favorite part though "wicd-cli" I mean come on that's what UNIX is all about :alien:

I'll let you know soon what happens.
kayasaman
Young Hen
 
Posts: 29
Joined: Wed Feb 06, 2013 5:14

Re: Kernel Fault?

Postby kayasaman » Tue Feb 12, 2013 3:37

It looks like wicd fixed the issue....

so far I haven't had any NFS dropouts meaning that the culpret was NetworkManager so either it's a bug or programmed behaviour but either way not expected behaviour.
kayasaman
Young Hen
 
Posts: 29
Joined: Wed Feb 06, 2013 5:14

Re: Kernel Fault?

Postby sabayonino » Tue Feb 12, 2013 13:06

kayasaman wrote:It looks like wicd fixed the issue....

so far I haven't had any NFS dropouts meaning that the culpret was NetworkManager so either it's a bug or programmed behaviour but either way not expected behaviour.


Oh Well.

I suggest file a Bug and report your issue and link to this topic for more info

Maybe NM is buggy or some sets are bad

Thanks

:wink:

[edit] please can you rename the topic title ? It isn't a kernel Fault ( I hope !)
User avatar
sabayonino
Sagely Hen
 
Posts: 1559
Joined: Sun Sep 21, 2008 1:12
Location: Italy

Re: Unexpected NFS Auto-unmount?

Postby kayasaman » Sun Feb 17, 2013 20:39

Title fixed and also a bug report submitted!

Thanks for all the help :)
kayasaman
Young Hen
 
Posts: 29
Joined: Wed Feb 06, 2013 5:14

PreviousNext

Return to Sabayon Linux General Discussion

Who is online

Users browsing this forum: No registered users and 0 guests