Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I some machines that have NFS mounts. I can mount them without any problems. However, while shutting down the system, it will get as far as 'unmounting file systems' and hang.
Behavior is quite consistent and i tried to force/lazy unmount NFS shares but the system still hangs at the stage where it says unmounting NFS file systems.
Does anyone have any ideas as to what I should be checking to find the cause of the problem?
I've seen a lot of threads before creating this thread but didnt find any working solution. I saw that 'soft' mount or autofs is one of the possible solution but we cant use both the options. Is there anyway to mention some kind of a timeout option to get the system rebooted ignoring the NFS mounts ?
This is not a bug. The system is telling you it can't umount because the device is in use.
There are one or more processes with a file or directory open on the NFS mount.
For example, a user's CWD will have that directory open.
You need to stop the processes which are using the volume and cd any users off the volume.
DO NOT force the umount unless you have good backups and lots of free time.
I dont see any active processes running on that mount point though. It just takes a lot of time to unmount the NFS file system which is strange. Thats why i'm curious to find out if there is anyway to force the unmount. The hosts just hangs at "Unmounting NFS Filesystems" and its in the same state for hours. Finally i have to force reset the host to get it rebooted.
I some machines that have NFS mounts. I can mount them without any problems. However, while shutting down the system, it will get as far as 'unmounting file systems' and hang.
Do you unmount your NFS mount points before starting the system shutdown?
If you can mount it manually, you should also be able to dismount it manually.
A failure would imply that the mountd service on the server has failed.
I dont have any issues with mouting though. Only umount seems to be the problem. Here is the verbose output of the umount.
Quote:
Trying to umount /filesystem
mount: trying XX.XX.XX.XX prog 100005 vers 3 prot tcp port 1234
mount: Unable to connect to XX.XX.XX.XX:1234, errno 111 (Connection refused)
could there possibly be an accidental firewall blocking udp on port 1234? (I think UDP is used for the dismount as there is no need for further data, but I'm not sure without digging into the sources).
I usually see these services on port 20048 instead of 1234. (1234 is supposed to be set aside for the Infoseek search agent, and 20048 is set aside for mountd)
could there possibly be an accidental firewall blocking udp on port 1234? (I think UDP is used for the dismount as there is no need for further data, but I'm not sure without digging into the sources).
I usually see these services on port 20048 instead of 1234. (1234 is supposed to be set aside for the Infoseek search agent, and 20048 is set aside for mountd)
Thanks jpollard.
Not sure why 1234 is used but i compared other systems and that looks like the same across the environment. I can mount the file system successfully though. So mount uses a tcp vs umount uses udp ? I think i forgot to mention that the problems exists only on servers under firewall. the private ones are just fine.
Quote:
[root@XXXXXX ~]# mount -vvvv /file/system
mount: trying XX.XX.XX.XX prog 100003 vers 3 prot tcp port 2049
mount: trying XX.XX.XX.XX prog 100005 vers 3 prot udp port 1234
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.