From owner-freebsd-current@freebsd.org Tue Mar 28 21:15:49 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AFBEDD233C4 for ; Tue, 28 Mar 2017 21:15:49 +0000 (UTC) (envelope-from mailing-machine@vniz.net) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 8B9F2FA0 for ; Tue, 28 Mar 2017 21:15:49 +0000 (UTC) (envelope-from mailing-machine@vniz.net) Received: by mailman.ysv.freebsd.org (Postfix) id 8AFA9D233C3; Tue, 28 Mar 2017 21:15:49 +0000 (UTC) Delivered-To: current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8A9C0D233C2 for ; Tue, 28 Mar 2017 21:15:49 +0000 (UTC) (envelope-from mailing-machine@vniz.net) Received: from mail-lf0-f67.google.com (mail-lf0-f67.google.com [209.85.215.67]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 241F8F9F for ; Tue, 28 Mar 2017 21:15:49 +0000 (UTC) (envelope-from mailing-machine@vniz.net) Received: by mail-lf0-f67.google.com with SMTP id x137so11681680lff.1 for ; Tue, 28 Mar 2017 14:15:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to; bh=TkDikrL2+uNavosi4i7aWfVYLqcgsECs+EXN7W9H4z0=; b=Sgraq7TAbplhJvE7bMr8q2jD82rGU7hjEJQnyZ4NmQNMN5RmNnKXUQ2GUZ87G2y6TS PaHEvlti3Lv/t/KjItOlGZCVLBu9Fgi2eIPPWWyT0aNiLGB+CM0g3PYkrMSt5UpAu6Zw 4PKN/6WahBcqvNryVxofmARn614n8QSIr8u9MOyQvEmUkD1k74QfOM5SI2fev7qHLnwz QcpMRU7vCdR5jXg1f/Tbc0TBDUtG7udI5HCAYrobk1Dxmz+Dn9pusdaeHyD9L/+MJLxh YQ1M0YTf7l8Fu93R7N+b7xUa1HfZF3PbmL+BQ9cjsu0QdQySIO2/5DRLG1VDbUr+jFjB M1iQ== X-Gm-Message-State: AFeK/H3/Tn/nZLmv1xCbmxS3VeW4orATwfB0yEBIcl7rQPAZdxr4qHOzrhX+faj6IF0/og== X-Received: by 10.46.33.209 with SMTP id h78mr2479481lji.53.1490735746908; Tue, 28 Mar 2017 14:15:46 -0700 (PDT) Received: from [192.168.1.2] ([89.169.173.68]) by smtp.gmail.com with ESMTPSA id w78sm902713lfi.23.2017.03.28.14.15.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 Mar 2017 14:15:46 -0700 (PDT) Subject: Re: shutdown -r doesn't execute rc.d sequence To: "Ngie Cooper (yaneurabeya)" References: <7d5bbbf0-6908-185c-2ee0-29e0a4f60591@freebsd.org> Cc: current@freebsd.org From: Andrey Chernov Message-ID: <5587c798-d36c-9074-1060-30e206db5571@freebsd.org> Date: Wed, 29 Mar 2017 00:15:44 +0300 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="G0adDj5hAqRloaD3cHOBCakL6tBkAbxCI" X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Mar 2017 21:15:49 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --G0adDj5hAqRloaD3cHOBCakL6tBkAbxCI Content-Type: multipart/mixed; boundary="CK2fkpXM9bT4TmFnq0JCrtDEAKU1HNwNq"; protected-headers="v1" From: Andrey Chernov To: "Ngie Cooper (yaneurabeya)" Cc: current@freebsd.org Message-ID: <5587c798-d36c-9074-1060-30e206db5571@freebsd.org> Subject: Re: shutdown -r doesn't execute rc.d sequence References: <7d5bbbf0-6908-185c-2ee0-29e0a4f60591@freebsd.org> In-Reply-To: --CK2fkpXM9bT4TmFnq0JCrtDEAKU1HNwNq Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 28.03.2017 22:33, Ngie Cooper (yaneurabeya) wrote: >=20 >> On Mar 28, 2017, at 12:30, Andrey Chernov wrote: >> >> With latest -current amd64, reboot happens almost immediately, leaving= >> FS dirty. No proper backward rc.d or /usr/local/etc/rc.d sequence >> execution is shown. No deactivating GELI swap too. >=20 > Hi Andrey, > Do you have a typescript demonstrating this? Adding rc_debug=3Dyes to = /etc/rc.conf would be super helpful, along with `boot -v`, to see whether= the issue is in userspace or rc(5). > I=E2=80=99ll double check my amd64/i386 VMs too (if possible, redirect= the output over serial to a typescript for analysis). > Are you using vanilla FreeBSD, a fork, or a packaged variant (mfsbsd, = nanobsd, etc)? > Thanks! > -Ngie >=20 Using rc_debug=3Dyes I see that it is the kernel problem, not rc problem.= Sometimes rc backward sequence executed even fully, sometimes only partly, but in unpredictable moment inside rc sequence the kernel decide to reboot quickly (or even deadly hang in rare cases). Always without any "Syncing buffers..." leaving FS dirty. No zfs etc. just normal UFS, no EFI, no GPT. I change GELI swap to normal one, but it does not help. The same untouched config works for years, I see this bug for the first time in FreeBSD. --CK2fkpXM9bT4TmFnq0JCrtDEAKU1HNwNq-- --G0adDj5hAqRloaD3cHOBCakL6tBkAbxCI Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBCAAGBQJY2tKBAAoJEKUckv0MjfbKCB8IAI8A8AATbhyAr34Bk0SWl1UZ qGjXKgyBR0FuySkwxqDpZhR5f/UlrWZcw17nrxF13EC1tNW1LI/elYnxuUTBhxe9 VkpOrk/UvqniKoP8VbAU8+K7ssQbRaxJCC7Oczewj+JsaP0rk4fsymA4w4M0LQ/t k3k5m1lLWoRJUjdprmLDSxeqpZeT4Ns0aBhWeYTVoRTq6BsxUgKsTWFCuM1l9Zdn MNq6vEPbjMGKBqmkkrUMBUAocr0s1C8Hkp7WhHMkMtyMFmvlzesR8N300Pn9B06f NrQhI9SSIWwOGvsE9jKRbLl1c2cKvyzESFGIb+f8+dkABFXYMLsfJOm/z7lkEbE= =zJ5L -----END PGP SIGNATURE----- --G0adDj5hAqRloaD3cHOBCakL6tBkAbxCI--