-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
network shares hang on restart / shutdown - consequence: hard shutdown required #16
Comments
I wonder if anybody uses |
Most init systems are able to I'm not sure if this would be possible with runit, |
Maybe the fix should be within runit, to enable chrooting back into the initramfs? |
Not sure if the reporter even has / on NFS ... perhaps that should be a second issue. From what I understand, the hang is here: Line 46 in 0566391
Even if stage 3 went through a chroot back into the initramfs, that is orthogonal to the problem reported. Networking services would still be down long before that point is reached. One way to solve the issue with NFS shares is to have two runsvdir instances. The first would be run after existing runit core-services are started, and would supervise networking services. Then certain tasks related to mounting network shares would be run, then the rest of the services would be run. At shutdown the non-network services would be brought down, then the network shares unmounted, then the network services. The idea could use some more brainstorming. |
|
@rjl6789 provided script works well for me. You need to hook the pre-shutdown script manually into runit3 before services are stopped. Here's the beggining of my
I have also added
In tandem these have worked well so far to avoid the interrupts. |
@D-Nice thanks for the clarification, I was just able to reboot with this workaround now. Will it break again on a package update? |
If you use the xbps preserve config option, then it should be fine. |
@svenper the system config file in question is in |
@CameronNemo how often, or when do the runit scripts ever get changed, and if the preserve option is used, are we notified of a conflict? |
files in |
Is there a way to use
|
@svenper best path forward IMO is to propose a patch to this repository with that line in it. In the meantime hold the runit package and manually reapply the patch on the quite infrequent updates. |
workaround void-linux#16
Hi,
If I have mounted network shares (nfs, nfs4, cifs), these are unable to be unmounted / re-mounted as read during shutdown / restart, consequently the shutdown process hangs and I need to do a forced shutdown. The reason is that in
/etc/runit/3
the network services are taken offline before before the drives are unmounted / re-mounted as read occurs.I've created my own
/etc/rc.pre-shutdown
script (below) that is called by/etc/runit/3
before the services are closed that unmounts / re-mounts as read the network shares. This works.Apologies if I've missed an obvious option / setting that renders my "fix" not needed, I'm just an enthusiastic Linux user, as opposed to developer.
Hope this is useful for someone.
Rob
The text was updated successfully, but these errors were encountered: