View previous topic :: View next topic |
Author |
Message |
jyoung Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 20 Mar 2007 Posts: 471
|
Posted: Thu Sep 05, 2019 7:01 am Post subject: nfs unmount at shutdown |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
C5ace Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 23 Dec 2013 Posts: 489 Location: Brisbane, Australia
|
Posted: Thu Sep 05, 2019 10:01 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
jyoung Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 20 Mar 2007 Posts: 471
|
Posted: Sat Sep 07, 2019 4:34 am Post subject: |
|
|
Thanks!
Reading the README, this does seem like a good place to have started. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|
|
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
|
|