[Bug 200784] Slow shutdown on r283297 amd64

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Jun 11 09:43:58 UTC 2015


            Bug ID: 200784
           Summary: Slow shutdown on r283297 amd64
           Product: Base System
           Version: 11.0-CURRENT
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: 214748mv at gmail.com

Created attachment 157630
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=157630&action=edit
FreeBSD 11-CURRENT shutdown.patch

The slow shutdown is caused by some remote smbfs shares mounted via openvpn:
the remote drives are unmounted after the openvpn daemon termination, this
induces some long timeouts. The solution is to unmount the smbfs shares in a
shutdown script before the openvpn daemon termination. I have discovered this
issue with this ‘dirty’ patch that displays  the unmounted fs at shutdown.

For testing the the patch apply it in /sys/kern, rebuild and install the

Set the new OID:

# sysctl kern.shutdown.show_umountfs=1

Halt the system:

# shutdown -h now

The full history at:


You are receiving this mail because:
You are the assignee for the bug.

More information about the freebsd-bugs mailing list