View previous topic :: View next topic |
Author |
Message |
Napalm Llama Guru
Joined: 04 Jun 2005 Posts: 533 Location: Cardiff, UK
|
Posted: Thu Jul 20, 2006 3:13 pm Post subject: Unmounting NFS causes shutdown freeze |
|
|
I've got a curious problem. Whenever I shut down or reboot the my system, I get stuck on the following message:
* Unmounting network filesystems ...
* Failed to simply unmount filesystems [ !! ]
Unmounting network filesystems (retry #1) ...
_
...and that's it. I just get a flashing cursor. I can type stuff, (Backspace doesn't work, and Return doesn't act like it would in a shell), but otherwise the machine is totally unresponsive and I'm forced to reset it. Interestingly, the problem is solved if I unmount the network filesystems manually before powering off.
The only filesystem I have imported is one from my own system - it simplifies managing my music collection if I have one central storage location which is accessed in the same way for all machines on the network. Also, using NFS allows me to keep all music files under the ownership of music:music, rather than the local user who happened to add a new track.
Anyway, I digress: it all used to work fine - I'd get the same message as detailed above, but the first retry would succeed and the shutdown would continue as normal.
I don't use Samba.
What's going on?
[edit:]
Ooh, that was my 200th post! _________________ Ryzen 5600x; Asus TUF Gaming B550-Plus; Geforce 1660 Super
Registered Linux User #381314
# killall humans |
|
Back to top |
|
|
KaZeR Apprentice
Joined: 04 Feb 2004 Posts: 291 Location: Au fond, à droite.
|
Posted: Fri Jul 21, 2006 12:35 pm Post subject: |
|
|
This kind of things happened to me if my nfs server is halted before my nfs client. Is this your case? _________________ Foo. |
|
Back to top |
|
|
Napalm Llama Guru
Joined: 04 Jun 2005 Posts: 533 Location: Cardiff, UK
|
Posted: Fri Jul 21, 2006 1:37 pm Post subject: |
|
|
Could well be. I've certainly noticed crashiness in that event (if I shutdown the NFS server first then df freezes up).
Question is, how do I make sure the filesystem is unmounted first? _________________ Ryzen 5600x; Asus TUF Gaming B550-Plus; Geforce 1660 Super
Registered Linux User #381314
# killall humans |
|
Back to top |
|
|
KaZeR Apprentice
Joined: 04 Feb 2004 Posts: 291 Location: Au fond, à droite.
|
Posted: Fri Jul 21, 2006 2:19 pm Post subject: |
|
|
netstat -an |grep <your nfs exported share> maybe ? _________________ Foo. |
|
Back to top |
|
|
Napalm Llama Guru
Joined: 04 Jun 2005 Posts: 533 Location: Cardiff, UK
|
Posted: Fri Jul 21, 2006 2:34 pm Post subject: |
|
|
Sorry, I should have been clearer. I meant, how do I make sure my computer unmounts the filesystem before stopping the NFS server? _________________ Ryzen 5600x; Asus TUF Gaming B550-Plus; Geforce 1660 Super
Registered Linux User #381314
# killall humans |
|
Back to top |
|
|
KaZeR Apprentice
Joined: 04 Feb 2004 Posts: 291 Location: Au fond, à droite.
|
Posted: Fri Jul 21, 2006 3:11 pm Post subject: |
|
|
Is you nfs client and server the same computer?
If it's not, then you may need a bit of hacking to do this. Like, running some script on the server which checks if there's no more nfs client connected (using netstats maybe), then if there's some left, either warn you or if you set up key based authentication it could ssh as root and umount.. But this may be a hammer to kill the bug
Maybe a manual check (like shut down all computers before server) would do the trick? _________________ Foo. |
|
Back to top |
|
|
Napalm Llama Guru
Joined: 04 Jun 2005 Posts: 533 Location: Cardiff, UK
|
Posted: Fri Jul 21, 2006 4:28 pm Post subject: |
|
|
The client and server are the same machine. There are other clients on the network that might experience problems, but I don't care about them _________________ Ryzen 5600x; Asus TUF Gaming B550-Plus; Geforce 1660 Super
Registered Linux User #381314
# killall humans |
|
Back to top |
|
|
|