Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Jun 2015 10:50:56 +0200
From:      "Ranjan1018 ." <214748mv@gmail.com>
To:        Garrett Cooper <yaneurabeya@gmail.com>
Cc:        FreeBSD CURRENT <freebsd-current@freebsd.org>
Subject:   Re: Slow shutdown
Message-ID:  <CACyC=qYHRJwJv4y-8gCWVQLtE76KnvYNtks1pq5G8esb4MOXHw@mail.gmail.com>
In-Reply-To: <D6DC0EEA-3929-4258-986C-3FCBDBC5D9EB@gmail.com>
References:  <CACyC=qY62b5=6=T9dwuWASXeOREMkhafXcUpqt3ctYJHTnJF8A@mail.gmail.com> <D6DC0EEA-3929-4258-986C-3FCBDBC5D9EB@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
2015-05-24 22:33 GMT+02:00 Garrett Cooper <yaneurabeya@gmail.com>:

> On May 24, 2015, at 6:33, Ranjan1018 . <214748mv@gmail.com> wrote:
>
> > On my laptop running r283297, after the message =E2=80=9CAll buffers sy=
nced.=E2=80=9D and
> > before =E2=80=9CUptime: =E2=80=A6..=E2=80=9D it takes more than 55 seco=
nds.
>
> 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
> out?
> - What filesystems do you have mounted (fuse, NFS, UFS, ZFS)?
> - What=E2=80=99s your root media (SSDs, SATA/PATA hard drives, etc)?
>
> Thanks..
>

Solved !

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 =E2=80=98dirty=E2=80=99 patch that dis=
plays  the
unmounted fs at shutdown:

http://pastebin.com/Xfiz9nsv

With this patch shutting down my laptop appear as:

https://drive.google.com/file/d/0BzoWQoMqq1sfcHZyRnlEeTRobFU/view?usp=3Dsha=
ring
.

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

Set the new OID:

# sysctl kern.shutdown.show_umountfs=3D1

Halt the system:

# shutdown -h now

Regards,

Maurizio



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CACyC=qYHRJwJv4y-8gCWVQLtE76KnvYNtks1pq5G8esb4MOXHw>