Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Unmounting NFS causes shutdown freeze
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Napalm Llama
Guru
Guru


Joined: 04 Jun 2005
Posts: 533
Location: Cardiff, UK

PostPosted: Thu Jul 20, 2006 3:13 pm    Post subject: Unmounting NFS causes shutdown freeze Reply with quote

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
View user's profile Send private message
KaZeR
Apprentice
Apprentice


Joined: 04 Feb 2004
Posts: 291
Location: Au fond, à droite.

PostPosted: Fri Jul 21, 2006 12:35 pm    Post subject: Reply with quote

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
View user's profile Send private message
Napalm Llama
Guru
Guru


Joined: 04 Jun 2005
Posts: 533
Location: Cardiff, UK

PostPosted: Fri Jul 21, 2006 1:37 pm    Post subject: Reply with quote

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
View user's profile Send private message
KaZeR
Apprentice
Apprentice


Joined: 04 Feb 2004
Posts: 291
Location: Au fond, à droite.

PostPosted: Fri Jul 21, 2006 2:19 pm    Post subject: Reply with quote

netstat -an |grep <your nfs exported share> maybe ?
_________________
Foo.
Back to top
View user's profile Send private message
Napalm Llama
Guru
Guru


Joined: 04 Jun 2005
Posts: 533
Location: Cardiff, UK

PostPosted: Fri Jul 21, 2006 2:34 pm    Post subject: Reply with quote

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
View user's profile Send private message
KaZeR
Apprentice
Apprentice


Joined: 04 Feb 2004
Posts: 291
Location: Au fond, à droite.

PostPosted: Fri Jul 21, 2006 3:11 pm    Post subject: Reply with quote

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
View user's profile Send private message
Napalm Llama
Guru
Guru


Joined: 04 Jun 2005
Posts: 533
Location: Cardiff, UK

PostPosted: Fri Jul 21, 2006 4:28 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum