NFS randomly hiccuped, now everything is screwed up

Red Squirrel

No Lifer
May 24, 2003
67,902
12,370
126
www.anyf.ca
On one of my machines NFS randomly took a hit, now everything is screwed up. VirtualBox will not open at all, and if I try to do anything having to do with the NFS shares such as try to cd to the folder, it just locks up that SSH session and I can't do anything.

I tried to restart NFS from another SSH session but it just fails. How to I get out of this mess?

Code:
[root@borg network]# cd vms_lun1
^C^C^C^C^C^C^C


^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C

^C
^C
^C

^C
^C
^C
^C^C
^C

It just stays stuck like that. I can ctrl+c all I want but nothing happens.

I'm guessing this is probably what's stopping virtualbox from opening, since it tries to read a folder in there or something.

I need a way to forcibly unmount everything, maybe that will help. umount -f never works though, it still say resource busy.
 
Last edited:

theevilsharpie

Platinum Member
Nov 2, 2009
2,322
14
81
If a lazy unmount doesn't work, the only other way I know of to clear a hung NFS session is to reboot.
 

Red Squirrel

No Lifer
May 24, 2003
67,902
12,370
126
www.anyf.ca
I just found out about -l command when searching stuff on google and it seems to be more powerful than -f and it did work. -f was not working. I was able to unmount, but if I try to remount it just hangs. Is there any logs somewhere I can check? NFS does not seem to have much logging, if any other than dmesg stuff once in a while.

In dmesg the only thing I have is this: (on client)
Code:
nfsacl: server isengard.loc not responding, timed out
nfs: server isengard.loc not responding, timed out
nfsd: last server has exited, flushing export cache
NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory
NFSD: starting 90-second grace period

I tried restarting NFS on the client but no go. One of the services also fails when I do a restart. I really don't want to have to restart NFS on the server as that will screw up all the other machines that are working fine now.

Code:
[root@borg network]# service nfs stop
Shutting down NFS mountd:                                  [  OK  ]
Shutting down NFS daemon:                                  [  OK  ]
Shutting down NFS quotas:                                  [  OK  ]
Shutting down NFS services:                                [FAILED]
[root@borg network]#
 

Red Squirrel

No Lifer
May 24, 2003
67,902
12,370
126
www.anyf.ca
Well I gave in and just rebooted the server and now everything works. It's always a battle to get that server back up from a reboot though as randomly my config files like resolv.conf get overwritten by stuff. Super annoying. I can't wait to get stuff migrated off that box, FC9 is just ancient and I need to retire it. All the shares are working now though.
 
Feb 25, 2011
16,822
1,493
126
resolv.conf shouldn't get rewritten unless you're trying to use static DNS with a DHCP server.

That's weird.
 

theevilsharpie

Platinum Member
Nov 2, 2009
2,322
14
81
resolv.conf can be overwritten by NetworkManager, as well as the configuration scripts that various distros use. Unless you're using a positively ancient distro, there should be no reason to modify resolv.conf by hand.
 

Red Squirrel

No Lifer
May 24, 2003
67,902
12,370
126
www.anyf.ca
resolv.conf can be overwritten by NetworkManager, as well as the configuration scripts that various distros use. Unless you're using a positively ancient distro, there should be no reason to modify resolv.conf by hand.

How else am I suppose to change DNS? I usually uninstall the networkmanager crap, it does nothing but cause grief by ignoring or overwriting config files. Seems even without it being there some other process likes to randomly overwrite config files though. I find the newer distros are actually worse for this.
 

Red Squirrel

No Lifer
May 24, 2003
67,902
12,370
126
www.anyf.ca
How does one "use" networkmanager, it's just there, and it just overwrites stuff, there's nothing about it that can be "used". It's garbage unless you're running a workstation and using the GUI. Everything I read online when I want to do something like change an IP or do bonding or any other network config tells to edit files. NM just overwrites these files. Though even without NM there seems to be certain distros that have other processes that overwrite stuff. Pain in the ass. Config files should never be overwritten by anything. It defeats the whole purpose of having config files.
 

MrTransistorm

Senior member
May 25, 2003
311
0
0
On my home server (Ubuntu Server 12.04 LTS) resolv.conf is automatically generated. In fact there is a comment at the top of the file that warns against editing it manually. Instead, my DNS server settings are in the /etc/network/interfaces file. In fact the man page (on Debian-based distros) for resolvconf states that this where to store those settings. For example:

Code:
# OpenDNS nameservers
dns-nameservers        208.67.222.222 208.67.220.220
Your distro may be different.

I don't use NetworkManager, but here is some info about its DNS setup. Note that by default it won't configure any interfaces that are defined in /etc/network/interfaces.
 
Last edited:
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |