Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
nfs unmount at shutdown
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
jyoung
Guru
Guru


Joined: 20 Mar 2007
Posts: 471

PostPosted: Thu Sep 05, 2019 7:01 am    Post subject: nfs unmount at shutdown Reply with quote

I'm have a strange situation where several machines get stuck while shutting down, frozen at the step where they unmount a NFS directory. I'm looking for a way to avoid this, and force the machines to shutdown.

There are actually a lot of threads out there about related problems, but there's a real range of answers. For instance, some threads suggest making the mount a soft mount, while others advocate avoiding this for NFS shares. It's really not clear what the best answer is.

This problem is intermittent, and only occurs ~5% of the time, so it may be difficult to test out possible solutions. The machines in question are running rc as an init system.

Thanks!
Back to top
View user's profile Send private message
C5ace
Guru
Guru


Joined: 23 Dec 2013
Posts: 489
Location: Brisbane, Australia

PostPosted: Thu Sep 05, 2019 10:01 am    Post subject: Reply with quote

Code:
/etc/local.d/1-nsf.stop

#!/bin/sh

/bin/umount -a -f -t nfs,nfs4


See /etc/local.d/README
_________________
Observation after 30 years working with computers:
All software has known and unknown bugs and vulnerabilities. Especially software written in complex, unstable and object oriented languages such as perl, python, C++, C#, Rust and the likes.
Back to top
View user's profile Send private message
jyoung
Guru
Guru


Joined: 20 Mar 2007
Posts: 471

PostPosted: Sat Sep 07, 2019 4:34 am    Post subject: Reply with quote

Thanks!

Reading the README, this does seem like a good place to have started.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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