You are not logged in.

#1 2010-03-25 16:32:53

perbh
Member
From: Republic of Texas
Registered: 2005-03-04
Posts: 765

[solved]arch takes down network _before_ nfs-mounts!!

This used to p... me off no end - until I found the /etc/rc.local.shutdown
Honestly - this is _wrong_; eg slackware always umounts any nfs-mounts first - then it takes down the network!
My own li'l solution (incase anyone else has the same problem):

for d in $(awk '$3 == "nfs" { print $2 }' /etc/mtab); do
  echo -en ":: umounting $d "
  umount $d && echo -e "\t[ok]" || echo -e "\t-- error!"
done

I guess the same is the case for cifs-mounts, but I only use nfs so cant tell.

Last edited by perbh (2010-03-25 20:42:52)

Offline

#2 2010-03-25 16:34:52

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: [solved]arch takes down network _before_ nfs-mounts!!

i think you missed the netfs daemon in rc.conf.


Give what you have. To someone, it may be better than you dare to think.

Offline

#3 2010-03-25 16:36:54

perbh
Member
From: Republic of Texas
Registered: 2005-03-04
Posts: 765

Re: [solved]arch takes down network _before_ nfs-mounts!!

wonder wrote:

i think you missed the netfs daemon in rc.conf.

nope - here it is:

DAEMONS=(syslog-ng network netfs crond hal xinetd rpcbind nfs-common nfs-server sshd gpm cups)

For the sake of clarity - my nfs-mounts _are_ in my /etc/fstab but with the 'noauto' option - then immediately after a boot (I always boot into the cli) I manually mount those I need and before I go into X (some times I forget and do it from a terminal in X - doesn't matter when)

Last edited by perbh (2010-03-25 16:40:31)

Offline

#4 2010-03-25 17:03:29

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: [solved]arch takes down network _before_ nfs-mounts!!

Shouldn't netfs unmount them indeed?

I have "umount -a -t nfs" in /etc/rc.local.shutdown, but I don't use netfs.

Offline

#5 2010-03-25 17:31:53

ruffedgz
Member
From: Michigan
Registered: 2009-07-23
Posts: 54

Re: [solved]arch takes down network _before_ nfs-mounts!!

The script looks good but I'm wondering why you didn't follow the auto mount wiki instructions as the order matters to start up but also shutdown (startup = left to right for starting daemons; shutdown = reverse order).

I'm curious as to why you placed nfs-common & nfs-server away from netfs?


Arch linux i686 | Dell XPS m1530 | Intel Core 2 Duo 2 GHz | 3 GB RAM | 250GB HDD

Offline

#6 2010-03-25 18:56:49

perbh
Member
From: Republic of Texas
Registered: 2005-03-04
Posts: 765

Re: [solved]arch takes down network _before_ nfs-mounts!!

ruffedgz wrote:

The script looks good but I'm wondering why you didn't follow the auto mount wiki instructions as the order matters to start up but also shutdown (startup = left to right for starting daemons; shutdown = reverse order).

I'm curious as to why you placed nfs-common & nfs-server away from netfs?

For one thing - as indicated above, I _do not_ want them automounted; depending on what I'm doing after any boot, I mount one or more and not always the same ones.
But ... I have missed out on that part of the wiki. I never really change anything and those entries go from wayyyyy back - only got updated when nfs-common and nfs-server were introduced - guess I screwed it up a bit :-(
I'll try it out with netfs being _after_ nfs-common and nfs-server ... thanks for the tip.

Offline

#7 2010-03-25 19:34:26

ruffedgz
Member
From: Michigan
Registered: 2009-07-23
Posts: 54

Re: [solved]arch takes down network _before_ nfs-mounts!!

Cool, I am curious as well if that does help with your scenario. Can't wait to hear back on if it helps or not.


Arch linux i686 | Dell XPS m1530 | Intel Core 2 Duo 2 GHz | 3 GB RAM | 250GB HDD

Offline

#8 2010-03-25 20:42:23

perbh
Member
From: Republic of Texas
Registered: 2005-03-04
Posts: 765

Re: [solved]arch takes down network _before_ nfs-mounts!!

Thank you! That worked a treat! No more worries and/or grumpiness. Guess I just didn't quite know what 'netfs' was for ... (I know, silly me)

Offline

Board footer

Powered by FluxBB