From nobody Wed Oct 04 11:23:45 2023 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4S0sl60N1sz4vkZ4; Wed, 4 Oct 2023 11:23:46 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4S0sl56j51z4bvf; Wed, 4 Oct 2023 11:23:45 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1696418625; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Haaok4PZuxstGosXfTr0GsJD3okoIUryjRe0Y7Bft04=; b=xvD3f15oCSUDOzqgLmgQ9gr/tPK9dyqUY4eAfyOiaQ3rH648ajIbMZruOT3FcVo6tvsj1s LrQDI2WozEoToGH3UtijKps47TFVaekxnJ4TpJZrsE/THXm6mOWqNf5p/bM4+9JND3TV30 UTMoJaJoz1EzvQPSZjW4PDlFUIuI4oiPUDjQvcNTO586h3UxsCcGB+lEPPhaJMcS1L/BRH wkrVX+A/4PUvHrTOz46wfOmynoWNRIZvo6J3VJQe/ULbQzt7C6qt13hjZP8xYB9FoLIIEI usyztuuveUAe3uhWJqn1GMpYEud2Ae4F6JvS9Ya7hbHLY46Z/4ltma8e6MWKNg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1696418625; a=rsa-sha256; cv=none; b=AUQgEype5x5MULW+epxCuGpFmwhoP3HUE1Sy1coXDO30+tJhmlMVhyESkRAKPLLoHB//AV W5EwxVCtsUQKBBn97yFvNfsDIMBY7AmNiMsW2lqy4wxkpGhkUDWh7qHnIt0IjFXhoaqBeD oiqZdXZuWE6kwYnSXmslJx75SZEy0IteHT8grkZ/vETKdXAn5bz9xp2lBJx8gyK0Gp8aR6 hxrrM9fnUnKb3pGcoCg6ybBs7PRCBP44/rS2cXvX1brCXrE4HzJX7Oq00t3xO0dshZyy74 ELeOs3ur8aryy43Rf1s9/r2qDIBPwXCbyMrCXijaXAl9GFVPEasFUAm/hjtS2A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1696418625; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Haaok4PZuxstGosXfTr0GsJD3okoIUryjRe0Y7Bft04=; b=P+yOKVZiu+WMHgr33bp4boHac0HSqze350+K6FaIDObaAL7Ip8bRF/HWhyCogHp1WxXkkh jhfMWjzFBHDVujU/vwLjOuR5993Q+sZZLYWt7PbsGU/Hvg0V38Bx0jk8vAbkMEcCIlxu32 mg3A76nWvp5CtKj8oP67FAJYL2HMKaWuS1xuoOL5Qvc5kxVaGPZ+iIVfpWeqHNkMRE4b4z 3irujBNp5IChFBBnZLFkqalPRNByKggg9XqaLgdB5K6jiwNgKI8cOney9z23CRELGOutgN 8+b5Eg4LvJ1LJA6RFeRSxIj2rRDY1xI5TmoVx3z6h5uoqMIbF7AsRCDG20mcOA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4S0sl55Vd9zbK6; Wed, 4 Oct 2023 11:23:45 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 394BNjAO084777; Wed, 4 Oct 2023 11:23:45 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 394BNjJP084775; Wed, 4 Oct 2023 11:23:45 GMT (envelope-from git) Date: Wed, 4 Oct 2023 11:23:45 GMT Message-Id: <202310041123.394BNjJP084775@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mateusz Piotrowski <0mp@FreeBSD.org> Subject: git: a22d61c6918c - stable/13 - gmirror.8: Remove references rc.early List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: 0mp X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: a22d61c6918c0f76ac7af2c82bc2a87a780f70b9 Auto-Submitted: auto-generated The branch stable/13 has been updated by 0mp: URL: https://cgit.FreeBSD.org/src/commit/?id=a22d61c6918c0f76ac7af2c82bc2a87a780f70b9 commit a22d61c6918c0f76ac7af2c82bc2a87a780f70b9 Author: Mateusz Piotrowski <0mp@FreeBSD.org> AuthorDate: 2022-07-21 19:43:14 +0000 Commit: Mateusz Piotrowski <0mp@FreeBSD.org> CommitDate: 2023-10-04 11:11:41 +0000 gmirror.8: Remove references rc.early The manual page of gmirror describes how gmirror providers can be used for kernel dumps. Unfortunately, the instruction references /etc/rc.early, which is no longer a part of rc(8). Remove references to rc.early and suggest creating an rc(8) service script instead. Future work: In the Problem Report on Bugzilla, Lawrence Chen suggested adding example rc(8) scripts to the gmirror. However, those examples need to be tested before they become official reference examples in the base. Also, those scripts should probably land directly to /etc/rc.d, /usr/share/examples/rc.d, or /usr/share/examples/gmirror instead of the gmirror manual page. PR: 178818 Reported by: Lawrence Chen Fixes: dd2b024a336f Removal of early.sh MFC after: 1 week (cherry picked from commit a848315f68047ae46a5d96cbc7a890e645ce646f) --- lib/geom/mirror/gmirror.8 | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/lib/geom/mirror/gmirror.8 b/lib/geom/mirror/gmirror.8 index 22639646a4b5..af9ad87f22d0 100644 --- a/lib/geom/mirror/gmirror.8 +++ b/lib/geom/mirror/gmirror.8 @@ -22,7 +22,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd November 30, 2017 +.Dd July 21, 2022 .Dt GMIRROR 8 .Os .Sh NAME @@ -386,21 +386,26 @@ Reading a dump from the mirror on boot will only work if the balance algorithm is used (that way .Nm will read only from the component with the highest priority). -If you use a different balance algorithm, you should add: +If you use a different balance algorithm, you should create an +.Xr rc 8 +script that sets the balance algorithm to +.Cm prefer , +for example with the following command: .Bd -literal -offset indent gmirror configure -b prefer data .Ed .Pp -to the -.Pa /etc/rc.early -script and: +Make sure that +.Xr rcorder 8 +schedules the new script before +.Xr savecore 8 . +The desired balance algorithm can be restored later on +by placing the following command in +.Xr rc.local 8 : .Bd -literal -offset indent gmirror configure -b round-robin data .Ed .Pp -to the -.Pa /etc/rc.local -script. The decision which component to choose for dumping is made when .Xr dumpon 8 is called.