Fedora Linux Support Community & Resources Center
  #1  
Old 31st August 2005, 02:47 AM
BMBeeman's Avatar
BMBeeman Offline
Registered User
 
Join Date: Jul 2005
Location: Melbourne, Florida
Age: 24
Posts: 40
Stopping NFS locking failure

Stopping NFS locking [FAIL]

I get that everytime my computer shuts down, should this worry me and it there a way to fix it?
__________________
Brett Beeman
Reply With Quote
  #2  
Old 9th November 2005, 12:31 AM
trinitymx04 Offline
Registered User
 
Join Date: Nov 2005
Age: 33
Posts: 11
I've the same problem, any suggestion?
Reply With Quote
  #3  
Old 11th November 2005, 03:50 PM
Zakarth Offline
Registered User
 
Join Date: Sep 2005
Posts: 29
Its probably not anything to worry about. In fact, unless you intend to mount a network file system (its kind of a type of share online that unix-type OS'es use) then I would recommend just disabling NFS utilities from the startup/shutdown altogether. You can do this from any console by typing "setup" and going to "System Services" and unchecking any NFS related utilities.
Reply With Quote
  #4  
Old 15th November 2005, 10:02 PM
nokollonzo's Avatar
nokollonzo Offline
Registered User
 
Join Date: Aug 2005
Posts: 41
Even if I'm a proud Fedora user, I think that it's better to know how to use LInux without being to stick to a particular distro's tool.
To disable NFS client from command line:
be root
Code:
cd /etc/rc5.d 
mv S57netfs K57netfs 
mv S20nfs K20nfs
mv S86nfslock K86nfslock
in this way you disable not only the lock daemon, but olso nfs client and nfs server. Notice that depending on your installed packages you may not have all the three services present: no problem.
If your default tunlevel is not "5" (raaaaaaaare case,) edit another directory. To know your def runlevel:
Code:
cat /etc/inittab |grep ^id.*initdefault
you should see something like:
Code:
id:5:initdefault:
I want to say that I'm a Unix sysadmin from 2 years, I run FC on my client machines, and I never knew about the "setup" commandline utility. (very similar to the Slackware's one, I now see)
__________________
UNIX System Administrator & proud Linux user
The NokOnline Karma Blog
Reply With Quote
  #5  
Old 15th November 2005, 10:07 PM
Zakarth Offline
Registered User
 
Join Date: Sep 2005
Posts: 29
nokollonzo:

I, like you, came from a very specific background in Slackware which didn't have any of the nifty utilities that Redhat had. Unfortunately, Redhat based distros seem to be going through an unfortunate trend of forcing you more and more to progress towards their services.

Your method of disabling the service from starting up works, but you're doing the "back end" way of doing it. Theres an even easier CLI solution and thats to do:

chkconfig --del nfs

This will take care of the symbolic link management.

or chkconfig nfs off

Will remove it from starting up.
Reply With Quote
  #6  
Old 15th November 2005, 11:56 PM
nokollonzo's Avatar
nokollonzo Offline
Registered User
 
Join Date: Aug 2005
Posts: 41
I've always used Fedora.
But I think is better to stay compatible. Anyway slack has a config tool very similar to "setup".
I'm not sure that the command chkconfig prevents both nfs server, client and lock daemon to start at boot. Are you sure?

If talking about Fedora's tools then...why don't we use system-config-services? I've just finished translating it in italian
Always be part of the project guys!
__________________
UNIX System Administrator & proud Linux user
The NokOnline Karma Blog
Reply With Quote
  #7  
Old 17th November 2005, 09:46 PM
wbishop311 Offline
Registered User
 
Join Date: Aug 2005
Posts: 10
If one were to disable NFS related utilities, does that mean we would have to re-enable them to connect another pc to it (for file or internet connection sharing)?
Reply With Quote
  #8  
Old 18th November 2005, 01:04 AM
Zakarth Offline
Registered User
 
Join Date: Sep 2005
Posts: 29
For filesharing using NFS, yes, for Internet Connection Sharing, i'd certainly hope not. If you're planning on sharing files from linux, you're better off using Samba anyways-- it has a much wider range of support for authentication schemes and what not. NFS is kind of outdated but its supported by a vast array of *nixes so its kept with all distributions.
Reply With Quote
  #9  
Old 29th November 2005, 12:11 AM
robatino Offline
Registered User
 
Join Date: Feb 2004
Posts: 845
This has been fixed in Rawhide but hasn't been pushed to users yet. In the meantime it seems harmless.

https://bugzilla.redhat.com/bugzilla....cgi?id=162446
Reply With Quote
  #10  
Old 29th November 2005, 04:14 PM
traveller Offline
Registered User
 
Join Date: Feb 2005
Posts: 53
nokollonzo and Zakarth:

Thanks for your advice. I have read some of the threads that gave me different approaches to fix this problem such as check /etc/init.d/nfslock to see what it does, I also read some papers how to config NFS on server and client.

My current system with FC4 is a testing server. There is no any client will access and mount file system on it. I have checked /etc/rc5.d/, I even do not have S57netfs, K57netfs, S20nfs, S86nfslock, K86nfslock files. But I do have K20nfs over there. When I boot system, I can see that starting NFS stated OK. Does this mean that NFS locking has been started whth the system booting? Why can not system automatically stopping NFS locking? I do think your way might work for this problem. I just want to make sure this is at least the better way than others. Please give me more tips on this. Thanks a lot.
Reply With Quote
  #11  
Old 9th December 2005, 09:22 AM
nokollonzo's Avatar
nokollonzo Offline
Registered User
 
Join Date: Aug 2005
Posts: 41
You should get:
Code:
bash$ ls /etc/rc5.d |grep nfs
K20nfs
S14nfslock
__________________
UNIX System Administrator & proud Linux user
The NokOnline Karma Blog
Reply With Quote
  #12  
Old 22nd January 2006, 07:19 PM
bjh Offline
Registered User
 
Join Date: Jan 2006
Posts: 56
Thanks!

Zakarth-
I'm relatively new to linux, running FC4 (kernel 2.6.11), and was having the NFS locking problem as well...your fix took care of it, thanks!
btw...nfs services are successfully started at boottime, but locking problem on shutdown is avoided!

Last edited by bjh; 22nd January 2006 at 07:41 PM.
Reply With Quote
  #13  
Old 22nd January 2006, 10:24 PM
sej7278 Offline
Registered User
 
Join Date: Sep 2004
Posts: 2,008
well none of those really fix the problem, they just prevent the service starting, so it won't error as it never has to stop!

i am actually using the nfs server, and i get the error.

nothing has been done about it so far according to bugzilla, although it looks like it is harmless - possibly just an error in the init.d script.
Reply With Quote
  #14  
Old 23rd January 2006, 03:03 AM
GoodOmens Offline
Registered User
 
Join Date: Jan 2006
Posts: 43
As someone pointed out the bugzilla code ... I would assume changing:

file: /etc/init.d/nfslock

Code:
<snip>
stop() {
        # Stop daemons.
        echo -n $"Stopping NFS locking: "
        if [ "$USERLAND_LOCKD" ]; then
           killproc lockd
        else
           killproc lockd -KILL
        fi
        echo
        echo -n $"Stopping NFS statd: "
        killproc rpc.statd
        RETVAL=0
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/nfslock
        return $RETVAL
}
to:
Code:
        echo -n $"Stopping NFS locking: "
        if [ "$USERLAND_LOCKD" ]; then
           killproc lockd
        #else
        #   killproc lockd -KILL
        fi
Would fix the problem. I havent tried it so dont blame me if it doesnt work =p
Reply With Quote
Reply

Tags
failure, locking, nfs, stopping

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Locking assertion failure for Matlab R2008A JVM serendib Using Fedora 2 10th July 2008 06:01 PM
Stopping KDE locking my desktop when idle genci Using Fedora 2 8th September 2007 12:18 PM
Stopping NFS locking failed. Ask this again. traveller Using Fedora 1 28th November 2005 05:06 PM
NFS Locking Failure solderboy Installation and Live Media 2 29th September 2005 04:24 AM
Stopping NFS locking: [FAILED] snoze Using Fedora 2 11th July 2005 11:25 PM


Current GMT-time: 07:24 (Thursday, 23-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat