214748mv at gmail.com
Thu Jun 11 08:50:57 UTC 2015
2015-05-24 22:33 GMT+02:00 Garrett Cooper <yaneurabeya at gmail.com>:
> On May 24, 2015, at 6:33, Ranjan1018 . <214748mv at gmail.com> wrote:
> > On my laptop running r283297, after the message “All buffers synced.” and
> > before “Uptime: …..” it takes more than 55 seconds.
> Not a lot of info here to diagnose your issue...
> - What happens if you hit control-t, i.e. what wait channel does it print
> - What filesystems do you have mounted (fuse, NFS, UFS, ZFS)?
> - What’s your root media (SSDs, SATA/PATA hard drives, etc)?
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 timeout. 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:
With this patch shutting down my laptop appear as:
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
More information about the freebsd-current