From owner-freebsd-rc@freebsd.org Tue Sep 22 11:39:31 2015 Return-Path: Delivered-To: freebsd-rc@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 2EB90A05093 for ; Tue, 22 Sep 2015 11:39:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1AD741A25 for ; Tue, 22 Sep 2015 11:39:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id t8MBdUSM023098 for ; Tue, 22 Sep 2015 11:39:30 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-rc@FreeBSD.org Subject: [Bug 188109] [periodic.conf] [patch] ASSERTION FAILED running individual periodic scripts on 10/11 branches Date: Tue, 22 Sep 2015 11:39:30 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: conf X-Bugzilla-Version: 10.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: commit-hook@freebsd.org X-Bugzilla-Status: In Progress X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: freebsd-rc@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Sep 2015 11:39:31 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=188109 --- Comment #9 from commit-hook@freebsd.org --- A commit references this bug: Author: jlh Date: Tue Sep 22 11:38:59 UTC 2015 New revision: 288107 URL: https://svnweb.freebsd.org/changeset/base/288107 Log: Long overdue MFC r285444: Allow again periodic scripts to be run from command-line. PR: 188109 Submitted by: Jason Unovitch Changes: _U stable/10/ stable/10/etc/defaults/periodic.conf -- You are receiving this mail because: You are the assignee for the bug. From owner-freebsd-rc@freebsd.org Tue Sep 22 13:16:59 2015 Return-Path: Delivered-To: freebsd-rc@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 31A69A02C02 for ; Tue, 22 Sep 2015 13:16:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 19B2B1566 for ; Tue, 22 Sep 2015 13:16:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id t8MDGw5q057158 for ; Tue, 22 Sep 2015 13:16:58 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-rc@FreeBSD.org Subject: [Bug 188109] [periodic.conf] [patch] ASSERTION FAILED running individual periodic scripts on 10/11 branches Date: Tue, 22 Sep 2015 13:16:59 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: conf X-Bugzilla-Version: 10.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jlh@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: freebsd-rc@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Sep 2015 13:16:59 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=188109 --- Comment #10 from Jeremie Le Hen --- Sorry for the late MFC, I've little time for FreeBSD nowadays. Considering this bug as fixed. Thanks again for reporting it. -- Jeremie -- You are receiving this mail because: You are the assignee for the bug. From owner-freebsd-rc@freebsd.org Tue Sep 22 13:17:32 2015 Return-Path: Delivered-To: freebsd-rc@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 CB38FA02C3D for ; Tue, 22 Sep 2015 13:17:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B74451595 for ; Tue, 22 Sep 2015 13:17:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id t8MDHWei057696 for ; Tue, 22 Sep 2015 13:17:32 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-rc@FreeBSD.org Subject: [Bug 188109] [periodic.conf] [patch] ASSERTION FAILED running individual periodic scripts on 10/11 branches Date: Tue, 22 Sep 2015 13:17:32 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: conf X-Bugzilla-Version: 10.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jlh@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: freebsd-rc@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: resolution bug_status Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Sep 2015 13:17:32 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=188109 Jeremie Le Hen changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|In Progress |Closed -- You are receiving this mail because: You are the assignee for the bug. From owner-freebsd-rc@freebsd.org Wed Sep 23 14:38:26 2015 Return-Path: Delivered-To: freebsd-rc@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 18F99A06403; Wed, 23 Sep 2015 14:38:26 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id D410B1076; Wed, 23 Sep 2015 14:38:21 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from porto.starpoint.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id RAA24194; Wed, 23 Sep 2015 17:38:18 +0300 (EEST) (envelope-from avg@FreeBSD.org) Received: from localhost ([127.0.0.1]) by porto.starpoint.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1ZelBa-000Bks-8j; Wed, 23 Sep 2015 17:38:18 +0300 To: FreeBSD Current , freebsd-rc@FreeBSD.org From: Andriy Gapon Subject: dumpdev in loader.conf vs rc.d/dumpon X-Enigmail-Draft-Status: N1110 Cc: =?UTF-8?Q?Dag-Erling_Sm=c3=b8rgrav?= Message-ID: <5602B922.20703@FreeBSD.org> Date: Wed, 23 Sep 2015 17:37:22 +0300 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Sep 2015 14:38:26 -0000 I have recently discovered 'dumpdev' kernel environment variable that is settable, for example, from loader.conf. To me it *seems* that this variable has to be set to a device name / path without the leading '/dev'. If that's so, then rc.d/dumpon must prepend '/dev' when passing the value of 'dumpdev' to dumpon(8). -- Andriy Gapon From owner-freebsd-rc@freebsd.org Wed Sep 23 15:59:37 2015 Return-Path: Delivered-To: freebsd-rc@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 A962EA071A7; Wed, 23 Sep 2015 15:59:37 +0000 (UTC) (envelope-from cse.cem@gmail.com) Received: from mail-yk0-f178.google.com (mail-yk0-f178.google.com [209.85.160.178]) (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 70DCB1361; Wed, 23 Sep 2015 15:59:37 +0000 (UTC) (envelope-from cse.cem@gmail.com) Received: by ykft14 with SMTP id t14so46073753ykf.0; Wed, 23 Sep 2015 08:59:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=xFTHiojqDGnvg/oIqaa8T4ujaGRG4Qd5OB/bwybyslA=; b=fIXCIJj2CBtWew9T9P+t1LmZ7u1rvw8+t1Y/yW8XO0RzTCmbMkpSlcMLcjcGAvvs7K LBnQu5xEt6HxPmMXQWWvZfHOfG0coNztFjxU81WhmrETg85wKz5sLlNzIQMVSfDz1bKh bB62r9c47ttWZwGrzDUkG6xGAcY/nOuKV0u9832DTZQ4r0bQDT4B4YT6+9VeomeJRejz diu+LLt+O5FRE7+8MAx9OnGVLXw+rRb+GblM//w8SV4eVeEd+00yljviMFB01qlEWnt0 O43+O9L5sKBHj7dfCZ1bzlwjjJBda72WTEy52ggl03oXxPn/DXI8BYlvoTqLZSM7OV8+ IXkw== X-Received: by 10.170.49.147 with SMTP id 141mr26516121ykr.26.1443023976050; Wed, 23 Sep 2015 08:59:36 -0700 (PDT) Received: from mail-yk0-f170.google.com (mail-yk0-f170.google.com. [209.85.160.170]) by smtp.gmail.com with ESMTPSA id i187sm4717581ywg.41.2015.09.23.08.59.35 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 23 Sep 2015 08:59:35 -0700 (PDT) Received: by ykdz138 with SMTP id z138so45918402ykd.2; Wed, 23 Sep 2015 08:59:35 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.13.246.70 with SMTP id g67mr25282041ywf.116.1443023975496; Wed, 23 Sep 2015 08:59:35 -0700 (PDT) Reply-To: cem@FreeBSD.org Received: by 10.37.60.198 with HTTP; Wed, 23 Sep 2015 08:59:35 -0700 (PDT) In-Reply-To: <5602B922.20703@FreeBSD.org> References: <5602B922.20703@FreeBSD.org> Date: Wed, 23 Sep 2015 08:59:35 -0700 Message-ID: Subject: Re: dumpdev in loader.conf vs rc.d/dumpon From: Conrad Meyer To: Andriy Gapon Cc: FreeBSD Current , freebsd-rc@freebsd.org Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Sep 2015 15:59:37 -0000 On Wed, Sep 23, 2015 at 7:37 AM, Andriy Gapon wrote: > > I have recently discovered 'dumpdev' kernel environment variable that is > settable, for example, from loader.conf. To me it *seems* that this variable > has to be set to a device name / path without the leading '/dev'. Why? > If that's so, > then rc.d/dumpon must prepend '/dev' when passing the value of 'dumpdev' to > dumpon(8). dumpon(8) opens the configured file (accessible in the normal namespace, i.e. "/dev/ada0s1b") and uses a magical ioctl on the device to configure it as the dump device. This is all documented in dumpon(8). Additionally, dumpon.c is short and quite legible. I don't see etc/rc.d/dumpon prepending /dev to anything. Best, Conrad From owner-freebsd-rc@freebsd.org Wed Sep 23 16:06:16 2015 Return-Path: Delivered-To: freebsd-rc@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 5626AA075B4; Wed, 23 Sep 2015 16:06:16 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 3C8CE1B83; Wed, 23 Sep 2015 16:06:14 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from porto.starpoint.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id TAA25307; Wed, 23 Sep 2015 19:06:13 +0300 (EEST) (envelope-from avg@FreeBSD.org) Received: from localhost ([127.0.0.1]) by porto.starpoint.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1ZemYf-000BqE-17; Wed, 23 Sep 2015 19:06:13 +0300 Subject: Re: dumpdev in loader.conf vs rc.d/dumpon To: cem@FreeBSD.org References: <5602B922.20703@FreeBSD.org> Cc: FreeBSD Current , freebsd-rc@FreeBSD.org From: Andriy Gapon Message-ID: <5602CDBC.7080906@FreeBSD.org> Date: Wed, 23 Sep 2015 19:05:16 +0300 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Sep 2015 16:06:16 -0000 On 23/09/2015 18:59, Conrad Meyer wrote: > On Wed, Sep 23, 2015 at 7:37 AM, Andriy Gapon wrote: >> >> I have recently discovered 'dumpdev' kernel environment variable that is >> settable, for example, from loader.conf. To me it *seems* that this variable >> has to be set to a device name / path without the leading '/dev'. > > Why? Because that's how I read the code in sys/geom/geom_dev.c. Especially init_dumpdev() - I believe that devtoname() returns a device name without '/dev/'. >> If that's so, >> then rc.d/dumpon must prepend '/dev' when passing the value of 'dumpdev' to >> dumpon(8). > > dumpon(8) opens the configured file (accessible in the normal > namespace, i.e. "/dev/ada0s1b") and uses a magical ioctl on the device > to configure it as the dump device. This is all documented in > dumpon(8). Additionally, dumpon.c is short and quite legible. Indeed. > I don't see etc/rc.d/dumpon prepending /dev to anything. Right, that's why I posted my message (bug report). -- Andriy Gapon From owner-freebsd-rc@freebsd.org Wed Sep 23 16:44:07 2015 Return-Path: Delivered-To: freebsd-rc@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 07167A0698A; Wed, 23 Sep 2015 16:44:07 +0000 (UTC) (envelope-from cse.cem@gmail.com) Received: from mail-yk0-f179.google.com (mail-yk0-f179.google.com [209.85.160.179]) (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 C14231322; Wed, 23 Sep 2015 16:44:06 +0000 (UTC) (envelope-from cse.cem@gmail.com) Received: by ykft14 with SMTP id t14so47468019ykf.0; Wed, 23 Sep 2015 09:44:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=EaCfrisNwx8ne2wQ3bQA1DR0vDDUh4FggmLurriqsAo=; b=TD5sYV5SI2YkVAfCfgmKw+EmeOLY13JEElaIIlOxCjTK6pcoM3e1n/KVd49uDvkh9k unIUeu6snYEfjl+W7tjVVFWSCeMG7/yKwkJtlvRzbaFfT3hw7aYieQRJ9Tku0qkhwafB gH8Ve7qNV5E7FmagOZkPLdn1AKIYn4qI+j4FcIO7gxtaw8g+I19Jr6+kqyoJFV9Xl4OI Eumq+9Hh9URTSeV5R+oTjI/xGk6ZUfZqHZxdOyCOYBZTa4/rXnwxptye46wdKHQ9eGUm j73avHSEMjpd42YyppVExzuoSK2p71qdVouicd+lUEI90hIYpleNghtbqbmIglaH0qF+ RYpg== X-Received: by 10.129.91.196 with SMTP id p187mr17747868ywb.106.1443026645412; Wed, 23 Sep 2015 09:44:05 -0700 (PDT) Received: from mail-yk0-f176.google.com (mail-yk0-f176.google.com. [209.85.160.176]) by smtp.gmail.com with ESMTPSA id e68sm4840033ywd.34.2015.09.23.09.44.05 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 23 Sep 2015 09:44:05 -0700 (PDT) Received: by ykdz138 with SMTP id z138so47318628ykd.2; Wed, 23 Sep 2015 09:44:04 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.13.209.69 with SMTP id t66mr7861076ywd.95.1443026644974; Wed, 23 Sep 2015 09:44:04 -0700 (PDT) Reply-To: cem@FreeBSD.org Received: by 10.37.60.198 with HTTP; Wed, 23 Sep 2015 09:44:04 -0700 (PDT) In-Reply-To: <5602CDBC.7080906@FreeBSD.org> References: <5602B922.20703@FreeBSD.org> <5602CDBC.7080906@FreeBSD.org> Date: Wed, 23 Sep 2015 09:44:04 -0700 Message-ID: Subject: Re: dumpdev in loader.conf vs rc.d/dumpon From: Conrad Meyer To: Andriy Gapon Cc: FreeBSD Current , freebsd-rc@freebsd.org Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Sep 2015 16:44:07 -0000 On Wed, Sep 23, 2015 at 9:05 AM, Andriy Gapon wrote: > On 23/09/2015 18:59, Conrad Meyer wrote: >> On Wed, Sep 23, 2015 at 7:37 AM, Andriy Gapon wrote: > Because that's how I read the code in sys/geom/geom_dev.c. Especially > init_dumpdev() - I believe that devtoname() returns a device name without '/dev/'. I don't think that's the primary use of the variable. >> I don't see etc/rc.d/dumpon prepending /dev to anything. > > Right, that's why I posted my message (bug report). I think the use of the variable "dumpdev" in GEOM probably could/should be dropped. Alternatively (perhaps it is a mechanism for collecting crash dumps before init / /etc/rc start?) the GEOM dumpdev code could skip over a "/dev/" prefix when comparing against devname(), so that the GEOM use of the variable matches the etc/rc.d/dumpon use of the variable. Best, Conrad From owner-freebsd-rc@freebsd.org Wed Sep 23 16:59:23 2015 Return-Path: Delivered-To: freebsd-rc@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 2861AA0726D; Wed, 23 Sep 2015 16:59:23 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 089CA1EBD; Wed, 23 Sep 2015 16:59:21 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from porto.starpoint.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id TAA25908; Wed, 23 Sep 2015 19:59:20 +0300 (EEST) (envelope-from avg@FreeBSD.org) Received: from localhost ([127.0.0.1]) by porto.starpoint.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1ZenO3-000Btj-Rl; Wed, 23 Sep 2015 19:59:19 +0300 Subject: Re: dumpdev in loader.conf vs rc.d/dumpon To: cem@FreeBSD.org References: <5602B922.20703@FreeBSD.org> <5602CDBC.7080906@FreeBSD.org> Cc: FreeBSD Current , freebsd-rc@FreeBSD.org From: Andriy Gapon X-Enigmail-Draft-Status: N1110 Message-ID: <5602DA17.7060501@FreeBSD.org> Date: Wed, 23 Sep 2015 19:57:59 +0300 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Sep 2015 16:59:23 -0000 On 23/09/2015 19:44, Conrad Meyer wrote: > On Wed, Sep 23, 2015 at 9:05 AM, Andriy Gapon wrote: >> On 23/09/2015 18:59, Conrad Meyer wrote: >>> On Wed, Sep 23, 2015 at 7:37 AM, Andriy Gapon wrote: >> Because that's how I read the code in sys/geom/geom_dev.c. Especially >> init_dumpdev() - I believe that devtoname() returns a device name without '/dev/'. > > I don't think that's the primary use of the variable. See below. >>> I don't see etc/rc.d/dumpon prepending /dev to anything. >> >> Right, that's why I posted my message (bug report). > > I think the use of the variable "dumpdev" in GEOM probably > could/should be dropped. The way I found this variable was that I needed to set up a dump device before init. GEOM can do that, if dumpdev is set in kenv, as soon as a configured device is available. If a system survives until rc.d/dumpon can run, then why bother with setting dumpdev in kenv - dumpdev in rc.conf would work. > Alternatively (perhaps it is a mechanism for collecting crash dumps > before init / /etc/rc start?) Exactly. > the GEOM dumpdev code could skip over a > "/dev/" prefix when comparing against devname(), so that the GEOM use > of the variable matches the etc/rc.d/dumpon use of the variable. Yes, that's another option. But, IMO, dumpdev in kenv is only really useful if rc.d/dumpon doesn't have a chance to run. So, when rc.d/dumpon is able to run it can make a tiny concession to the way GEOM works. I do not have a strong opinion. Either option, rc.d/dumpon change or geom_dev change, is fine with me. -- Andriy Gapon From owner-freebsd-rc@freebsd.org Thu Sep 24 08:30:12 2015 Return-Path: Delivered-To: freebsd-rc@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 70240A080B1; Thu, 24 Sep 2015 08:30:12 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from forward13.mail.yandex.net (forward13.mail.yandex.net [IPv6:2a02:6b8:0:801::3]) by mx1.freebsd.org (Postfix) with ESMTP id 1FAAE17CC; Thu, 24 Sep 2015 08:30:12 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from smtp11.mail.yandex.net (smtp11.mail.yandex.net [IPv6:2a02:6b8:0:801:1::10]) by forward13.mail.yandex.net (Yandex) with ESMTP id 9E76B140C9A; Thu, 24 Sep 2015 11:30:02 +0300 (MSK) Received: from smtp11.mail.yandex.net (localhost [127.0.0.1]) by smtp11.mail.yandex.net (Yandex) with ESMTP id C74247E02C5; Thu, 24 Sep 2015 11:30:01 +0300 (MSK) Received: by smtp11.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id 7JiYmfwcXS-U1AmbXng; Thu, 24 Sep 2015 11:30:01 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1443083401; bh=KOpqSTRGOn99cwTyvCa4X8j/sXgyHYuxl0+MKaz+hps=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject: References:In-Reply-To:Content-Type; b=LFQY7/LT3KyIegGjwco9x/leq3KDxgjsH6uL+N5HxtLGAL9Ii3GMYp3kzlsDgl0AB tUs5U9klMHSodKu/Mo6NKKlWWLKiECgGzz2KpJjM2zf6aQjt+xg0H9x0OxofhXuSmq aKzQzP1XcI8TrrRGgge6T9Nnlnz6c4WEB7z9wPT4= Authentication-Results: smtp11.mail.yandex.net; dkim=pass header.i=@yandex.ru X-Yandex-ForeignMX: US Message-ID: <5603B415.2090405@yandex.ru> Date: Thu, 24 Sep 2015 11:28:05 +0300 From: "Andrey V. Elsukov" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Andriy Gapon , cem@FreeBSD.org CC: FreeBSD Current , freebsd-rc@FreeBSD.org Subject: Re: dumpdev in loader.conf vs rc.d/dumpon References: <5602B922.20703@FreeBSD.org> <5602CDBC.7080906@FreeBSD.org> <5602DA17.7060501@FreeBSD.org> In-Reply-To: <5602DA17.7060501@FreeBSD.org> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="JF4KUS8RR6FS8MD9jwnb8bB10TCCUQJHl" X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Sep 2015 08:30:12 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --JF4KUS8RR6FS8MD9jwnb8bB10TCCUQJHl Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 23.09.2015 19:57, Andriy Gapon wrote: > I do not have a strong opinion. Either option, rc.d/dumpon change or g= eom_dev > change, is fine with me. I added the ability to set dumpdev via loader. But I wasn't aware that it was used in rc.d script. If you have set dumpdev kenv, it will be already enabled in the time when rc.d/dumpon will be run. So, I think it is useless to try to enable dumpdev again. I prefer remove this old code from rc.d script. --=20 WBR, Andrey V. Elsukov --JF4KUS8RR6FS8MD9jwnb8bB10TCCUQJHl Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJWA7QZAAoJEAHF6gQQyKF6Qw8IALHq7V0EkHpSQKRUgOdPn44T tXjBHiQyFL7Va6JyNuCUX3c1FI2TlFvkZQpP8aXZivhhLWwLBVUQ3DRUyt+DjkO3 6ufRr9d1VZrypI/VJCfbmvTUHomaooxZ/1CO+rlxmLYbNJH/VAVAxs+TVgdqEXCQ Sf0y9RhrrhWtD0A+esE0kZAQyjsM0IPcIAsJsscFo+8rJC0UVhMR9KziGqDWwEE7 GxlQWr7irQmzxK8zm7/iqy4su5vgtzyllQkwYL3ZkXUCqWRDnst0W3JrtrlXQP99 loKoC8erJw7mrpKDm6vjLnzvGudcJW6hCw6xdLdCI/zwO0sSIkm48d7ZH/0Ambs= =oYEt -----END PGP SIGNATURE----- --JF4KUS8RR6FS8MD9jwnb8bB10TCCUQJHl-- From owner-freebsd-rc@freebsd.org Thu Sep 24 11:18:53 2015 Return-Path: Delivered-To: freebsd-rc@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 1473CA08FD4; Thu, 24 Sep 2015 11:18:53 +0000 (UTC) (envelope-from slw@zxy.spb.ru) Received: from zxy.spb.ru (zxy.spb.ru [195.70.199.98]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C11B01996; Thu, 24 Sep 2015 11:18:52 +0000 (UTC) (envelope-from slw@zxy.spb.ru) Received: from slw by zxy.spb.ru with local (Exim 4.84 (FreeBSD)) (envelope-from ) id 1Zf4Y6-000K3I-Qc; Thu, 24 Sep 2015 14:18:50 +0300 Date: Thu, 24 Sep 2015 14:18:50 +0300 From: Slawa Olhovchenkov To: "Andrey V. Elsukov" Cc: Andriy Gapon , cem@FreeBSD.org, FreeBSD Current , freebsd-rc@FreeBSD.org Subject: Re: dumpdev in loader.conf vs rc.d/dumpon Message-ID: <20150924111850.GA3158@zxy.spb.ru> References: <5602B922.20703@FreeBSD.org> <5602CDBC.7080906@FreeBSD.org> <5602DA17.7060501@FreeBSD.org> <5603B415.2090405@yandex.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5603B415.2090405@yandex.ru> User-Agent: Mutt/1.5.23 (2014-03-12) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: slw@zxy.spb.ru X-SA-Exim-Scanned: No (on zxy.spb.ru); SAEximRunCond expanded to false X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Sep 2015 11:18:53 -0000 On Thu, Sep 24, 2015 at 11:28:05AM +0300, Andrey V. Elsukov wrote: > On 23.09.2015 19:57, Andriy Gapon wrote: > > I do not have a strong opinion. Either option, rc.d/dumpon change or geom_dev > > change, is fine with me. > > I added the ability to set dumpdev via loader. But I wasn't aware that > it was used in rc.d script. > > If you have set dumpdev kenv, it will be already enabled in the time > when rc.d/dumpon will be run. So, I think it is useless to try to > enable dumpdev again. I prefer remove this old code from rc.d script. rc.d script can redirect dump to device, not available at boot time, iSCSI disk, for examle. dumpdev at boot time can be less size, sufficient for dumping at booting, but insufficient at working time. From owner-freebsd-rc@freebsd.org Thu Sep 24 11:29:15 2015 Return-Path: Delivered-To: freebsd-rc@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 36EB2A0737D; Thu, 24 Sep 2015 11:29:15 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from forward19j.cmail.yandex.net (forward19j.cmail.yandex.net [IPv6:2a02:6b8:0:1630::f6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "forwards.mail.yandex.net", Issuer "Certum Level IV CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id AF31C1F14; Thu, 24 Sep 2015 11:29:14 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from smtp14.mail.yandex.net (smtp14.mail.yandex.net [95.108.131.192]) by forward19j.cmail.yandex.net (Yandex) with ESMTP id 8BFF221548; Thu, 24 Sep 2015 14:29:10 +0300 (MSK) Received: from smtp14.mail.yandex.net (localhost [127.0.0.1]) by smtp14.mail.yandex.net (Yandex) with ESMTP id AA5DD1B6047B; Thu, 24 Sep 2015 14:29:09 +0300 (MSK) Received: by smtp14.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id nsAJW5WdG8-T838Pkrl; Thu, 24 Sep 2015 14:29:09 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1443094149; bh=6kkE7oS6BivrSYcToAZ5sMcJ98m8oh5Xvxx91CBIo9E=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject: References:In-Reply-To:Content-Type; b=trkCZKAz5Al6WiGZ1Sah8BEEuS2glgwimaumgfqUCx07d7fQNfowQ8yZszfJe8pqj 0Lw9wrHX80HpmsjcLxdsbYs9xEyio93FwJR1RY4U8XZLPCocOLYLaiiMBr81Wm6xrb QtQmtRs7y0kK0+Iy2y8XELt/LPrsuQXxWgtiqh8M= Authentication-Results: smtp14.mail.yandex.net; dkim=pass header.i=@yandex.ru X-Yandex-ForeignMX: US Message-ID: <5603DE11.7010008@yandex.ru> Date: Thu, 24 Sep 2015 14:27:13 +0300 From: "Andrey V. Elsukov" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Slawa Olhovchenkov CC: Andriy Gapon , cem@FreeBSD.org, FreeBSD Current , freebsd-rc@FreeBSD.org Subject: Re: dumpdev in loader.conf vs rc.d/dumpon References: <5602B922.20703@FreeBSD.org> <5602CDBC.7080906@FreeBSD.org> <5602DA17.7060501@FreeBSD.org> <5603B415.2090405@yandex.ru> <20150924111850.GA3158@zxy.spb.ru> In-Reply-To: <20150924111850.GA3158@zxy.spb.ru> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="HvEPREOsHMVX0RB6UO1ukPpeNxm3xJxWf" X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Sep 2015 11:29:15 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --HvEPREOsHMVX0RB6UO1ukPpeNxm3xJxWf Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 24.09.2015 14:18, Slawa Olhovchenkov wrote: > On Thu, Sep 24, 2015 at 11:28:05AM +0300, Andrey V. Elsukov wrote: >=20 >> On 23.09.2015 19:57, Andriy Gapon wrote: >>> I do not have a strong opinion. Either option, rc.d/dumpon change or= geom_dev >>> change, is fine with me. >> >> I added the ability to set dumpdev via loader. But I wasn't aware that= >> it was used in rc.d script. >> >> If you have set dumpdev kenv, it will be already enabled in the time >> when rc.d/dumpon will be run. So, I think it is useless to try to >> enable dumpdev again. I prefer remove this old code from rc.d script. >=20 > rc.d script can redirect dump to device, not available at boot time, > iSCSI disk, for examle. It doesn't matter. When device will appear, it will be tasted by geom_dev and marked as device applicable for dumping. > dumpdev at boot time can be less size, sufficient for dumping at > booting, but insufficient at working time. This also doesn't matter. Its size doesn't checked. Did you read dumpon script and saw how it use dumpdev tunable? --=20 WBR, Andrey V. Elsukov --HvEPREOsHMVX0RB6UO1ukPpeNxm3xJxWf Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJWA94SAAoJEAHF6gQQyKF607oH/1p7nMbGcu/hUI3bSFH1gZMH EYndUYlVrK2zmbeExh6+d+NLD3h7bCRD0Ht4Vt2ED1/fbxdYR1bkHqBfJdYqlfCf GB+om9Mg3gGQ/1m98L/OhewDeZLmgrZwWVSomTekBpl3OgB5hzTbGCO8/YXoyVJd 2npdc8UOWhl1SdVz9YMg8lHKcFHEI1KSAATaYznhof63evWqlRDADt3a3u5l5RM3 iY8nfdbBDmtnAaN3PZGZp9h2qmwRQSFoKMA+HetnvqtVXaqSHjDVy2UmeknwBohg Hxwdu38wlXDX6dzii4LIvy3JVlqslyovGEYMphwTJ/K7PRIl18zlYzJCsrgI0L8= =AWM+ -----END PGP SIGNATURE----- --HvEPREOsHMVX0RB6UO1ukPpeNxm3xJxWf-- From owner-freebsd-rc@freebsd.org Thu Sep 24 11:37:16 2015 Return-Path: Delivered-To: freebsd-rc@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 8BE76A076A2; Thu, 24 Sep 2015 11:37:16 +0000 (UTC) (envelope-from slw@zxy.spb.ru) Received: from zxy.spb.ru (zxy.spb.ru [195.70.199.98]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3F4A512FC; Thu, 24 Sep 2015 11:37:16 +0000 (UTC) (envelope-from slw@zxy.spb.ru) Received: from slw by zxy.spb.ru with local (Exim 4.84 (FreeBSD)) (envelope-from ) id 1Zf4pu-000KOc-5s; Thu, 24 Sep 2015 14:37:14 +0300 Date: Thu, 24 Sep 2015 14:37:14 +0300 From: Slawa Olhovchenkov To: "Andrey V. Elsukov" Cc: Andriy Gapon , cem@FreeBSD.org, FreeBSD Current , freebsd-rc@FreeBSD.org Subject: Re: dumpdev in loader.conf vs rc.d/dumpon Message-ID: <20150924113714.GQ21849@zxy.spb.ru> References: <5602B922.20703@FreeBSD.org> <5602CDBC.7080906@FreeBSD.org> <5602DA17.7060501@FreeBSD.org> <5603B415.2090405@yandex.ru> <20150924111850.GA3158@zxy.spb.ru> <5603DE11.7010008@yandex.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5603DE11.7010008@yandex.ru> User-Agent: Mutt/1.5.23 (2014-03-12) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: slw@zxy.spb.ru X-SA-Exim-Scanned: No (on zxy.spb.ru); SAEximRunCond expanded to false X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Sep 2015 11:37:16 -0000 On Thu, Sep 24, 2015 at 02:27:13PM +0300, Andrey V. Elsukov wrote: > On 24.09.2015 14:18, Slawa Olhovchenkov wrote: > > On Thu, Sep 24, 2015 at 11:28:05AM +0300, Andrey V. Elsukov wrote: > > > >> On 23.09.2015 19:57, Andriy Gapon wrote: > >>> I do not have a strong opinion. Either option, rc.d/dumpon change or geom_dev > >>> change, is fine with me. > >> > >> I added the ability to set dumpdev via loader. But I wasn't aware that > >> it was used in rc.d script. > >> > >> If you have set dumpdev kenv, it will be already enabled in the time > >> when rc.d/dumpon will be run. So, I think it is useless to try to > >> enable dumpdev again. I prefer remove this old code from rc.d script. > > > > rc.d script can redirect dump to device, not available at boot time, > > iSCSI disk, for examle. > > It doesn't matter. When device will appear, it will be tasted by > geom_dev and marked as device applicable for dumping. How many dump device you can select? > > dumpdev at boot time can be less size, sufficient for dumping at > > booting, but insufficient at working time. > > This also doesn't matter. Its size doesn't checked. I am don't talk about checking size. I can know about inssuficient size of device. For example, host with 3TB of RAM, booted from small SSD. This SSD have 16GB slice for dumping. This is sufficent if trouble happen at boot time. This is insuuficient if trouble happen later, after using all 3TB. rc.d script can be used for select iSCSI destination, for dumping after succesefull boot. > Did you read dumpon script and saw how it use dumpdev tunable? From owner-freebsd-rc@freebsd.org Thu Sep 24 11:39:46 2015 Return-Path: Delivered-To: freebsd-rc@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 D1CC0A07773; Thu, 24 Sep 2015 11:39:46 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from forward12.mail.yandex.net (forward12.mail.yandex.net [IPv6:2a02:6b8:0:801::2]) by mx1.freebsd.org (Postfix) with ESMTP id 8311D14C8; Thu, 24 Sep 2015 11:39:46 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from smtp12.mail.yandex.net (smtp12.mail.yandex.net [IPv6:2a02:6b8:0:801:1::11]) by forward12.mail.yandex.net (Yandex) with ESMTP id D2393C2104C; Thu, 24 Sep 2015 14:39:35 +0300 (MSK) Received: from smtp12.mail.yandex.net (localhost [127.0.0.1]) by smtp12.mail.yandex.net (Yandex) with ESMTP id BE6A316A0AB4; Thu, 24 Sep 2015 14:39:34 +0300 (MSK) Received: by smtp12.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id 2TS6p38u2D-dYSCQme1; Thu, 24 Sep 2015 14:39:34 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1443094774; bh=t4C2odz8fvgsFvrRPj0hW347//SSBh6hwRVqlfIN94U=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject: References:In-Reply-To:Content-Type; b=kFHTAImfpzYom9NGuI2tya8WuI2ZiVdu3jH1qHFbIAx/gFameq3+Uh76v398yCw/a ogxWVDORtgiESVoEjEzGkcGUORDn9zE3KQVWYDYCsGsgdaAeABXDY8nL6mZaeEt6CO TBRBWZzTNC9UixTuRd3VipKhdXlKlErR+Qg2VRHg= Authentication-Results: smtp12.mail.yandex.net; dkim=pass header.i=@yandex.ru X-Yandex-ForeignMX: US Message-ID: <5603E083.9020505@yandex.ru> Date: Thu, 24 Sep 2015 14:37:39 +0300 From: "Andrey V. Elsukov" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Slawa Olhovchenkov CC: Andriy Gapon , cem@FreeBSD.org, FreeBSD Current , freebsd-rc@FreeBSD.org Subject: Re: dumpdev in loader.conf vs rc.d/dumpon References: <5602B922.20703@FreeBSD.org> <5602CDBC.7080906@FreeBSD.org> <5602DA17.7060501@FreeBSD.org> <5603B415.2090405@yandex.ru> <20150924111850.GA3158@zxy.spb.ru> <5603DE11.7010008@yandex.ru> <20150924113714.GQ21849@zxy.spb.ru> In-Reply-To: <20150924113714.GQ21849@zxy.spb.ru> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="oVF8BFnqFdf7P5hUuA3iEi9scWTk2hclg" X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Sep 2015 11:39:46 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --oVF8BFnqFdf7P5hUuA3iEi9scWTk2hclg Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 24.09.2015 14:37, Slawa Olhovchenkov wrote: > For example, host with 3TB of RAM, booted from small SSD. > This SSD have 16GB slice for dumping. This is sufficent if trouble > happen at boot time. This is insuuficient if trouble happen later, > after using all 3TB. rc.d script can be used for select iSCSI > destination, for dumping after succesefull boot. Did you read dumpon script and saw how it uses dumpdev tunable? --=20 WBR, Andrey V. Elsukov --oVF8BFnqFdf7P5hUuA3iEi9scWTk2hclg Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJWA+CDAAoJEAHF6gQQyKF6oTUH/1NFNMIcuph8s+UnRbRoGfaL omTh7Nxgytx4MN1mzU6e/MPVckTqd778ThK1UmSGAdyRH+7Nn6+BKpa0SE3Dgcwp NUhMe031Uy+gflEj/3REqxZHyOO4KqQY9VA2/6zDpVT/5jl+p/9vzFjJDiPfvT7d WnPS8nTOuXo/LmzSaQtKdrkRaRukQcl3Ctq0wbY1WxYXrPwHlBhukL+bi62n+jkl wHjN3AeEzvz1xULE8vAg/ux3ilpEOTUfa3syFKmy6iQBMgoB/clbP67atr72NHTp xw7pRkIAOvM3JoaAId9WDKNTczyuFBuFJsc5XmPrQ0hqW0aO/BLwJRUwQRnVz9U= =Z7Ui -----END PGP SIGNATURE----- --oVF8BFnqFdf7P5hUuA3iEi9scWTk2hclg-- From owner-freebsd-rc@freebsd.org Thu Sep 24 11:45:56 2015 Return-Path: Delivered-To: freebsd-rc@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 DE322A07983; Thu, 24 Sep 2015 11:45:56 +0000 (UTC) (envelope-from slw@zxy.spb.ru) Received: from zxy.spb.ru (zxy.spb.ru [195.70.199.98]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 96D4E1A2F; Thu, 24 Sep 2015 11:45:56 +0000 (UTC) (envelope-from slw@zxy.spb.ru) Received: from slw by zxy.spb.ru with local (Exim 4.84 (FreeBSD)) (envelope-from ) id 1Zf4yI-000Ka5-Jg; Thu, 24 Sep 2015 14:45:54 +0300 Date: Thu, 24 Sep 2015 14:45:54 +0300 From: Slawa Olhovchenkov To: "Andrey V. Elsukov" Cc: Andriy Gapon , cem@FreeBSD.org, FreeBSD Current , freebsd-rc@FreeBSD.org Subject: Re: dumpdev in loader.conf vs rc.d/dumpon Message-ID: <20150924114554.GR21849@zxy.spb.ru> References: <5602B922.20703@FreeBSD.org> <5602CDBC.7080906@FreeBSD.org> <5602DA17.7060501@FreeBSD.org> <5603B415.2090405@yandex.ru> <20150924111850.GA3158@zxy.spb.ru> <5603DE11.7010008@yandex.ru> <20150924113714.GQ21849@zxy.spb.ru> <5603E083.9020505@yandex.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5603E083.9020505@yandex.ru> User-Agent: Mutt/1.5.23 (2014-03-12) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: slw@zxy.spb.ru X-SA-Exim-Scanned: No (on zxy.spb.ru); SAEximRunCond expanded to false X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Sep 2015 11:45:57 -0000 On Thu, Sep 24, 2015 at 02:37:39PM +0300, Andrey V. Elsukov wrote: > On 24.09.2015 14:37, Slawa Olhovchenkov wrote: > > For example, host with 3TB of RAM, booted from small SSD. > > This SSD have 16GB slice for dumping. This is sufficent if trouble > > happen at boot time. This is insuuficient if trouble happen later, > > after using all 3TB. rc.d script can be used for select iSCSI > > destination, for dumping after succesefull boot. > > Did you read dumpon script and saw how it uses dumpdev tunable? This is script try it in case dumpdev=auto, before trying swap partition. From owner-freebsd-rc@freebsd.org Thu Sep 24 11:58:50 2015 Return-Path: Delivered-To: freebsd-rc@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 B9F31A07C23; Thu, 24 Sep 2015 11:58:50 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from forward12.mail.yandex.net (forward12.mail.yandex.net [IPv6:2a02:6b8:0:801::2]) by mx1.freebsd.org (Postfix) with ESMTP id 3242F1F3D; Thu, 24 Sep 2015 11:58:50 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from smtp13.mail.yandex.net (smtp13.mail.yandex.net [IPv6:2a02:6b8:0:801:1::12]) by forward12.mail.yandex.net (Yandex) with ESMTP id 917F6C208FD; Thu, 24 Sep 2015 14:58:48 +0300 (MSK) Received: from smtp13.mail.yandex.net (localhost [127.0.0.1]) by smtp13.mail.yandex.net (Yandex) with ESMTP id A9FB2E40356; Thu, 24 Sep 2015 14:58:47 +0300 (MSK) Received: by smtp13.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id mJrtoE5828-wkqO84fA; Thu, 24 Sep 2015 14:58:46 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1443095926; bh=ybhZuG/LECMufkiuUeAkQfCjec/RWrb/o/a3fkoNN6o=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject: References:In-Reply-To:Content-Type; b=SlL95tkoTBBmI4/EMurqiSNPOm/jr3FBjYrYTj/MH0AHqhVZBSFMvEQ2ta2JtltKK IecE8+cIcZhhNhN1viUvQANaNwfwUQpzAHIKkJWeqx8uKxKycJxIObwAD8NUAY+4Mh TlrgRlUuPUlTlrp84aLa1qikcwEooYGSB5WKP3Iw= Authentication-Results: smtp13.mail.yandex.net; dkim=pass header.i=@yandex.ru X-Yandex-ForeignMX: US Message-ID: <5603E507.4030203@yandex.ru> Date: Thu, 24 Sep 2015 14:56:55 +0300 From: "Andrey V. Elsukov" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Slawa Olhovchenkov CC: Andriy Gapon , cem@FreeBSD.org, FreeBSD Current , freebsd-rc@FreeBSD.org Subject: Re: dumpdev in loader.conf vs rc.d/dumpon References: <5602B922.20703@FreeBSD.org> <5602CDBC.7080906@FreeBSD.org> <5602DA17.7060501@FreeBSD.org> <5603B415.2090405@yandex.ru> <20150924111850.GA3158@zxy.spb.ru> <5603DE11.7010008@yandex.ru> <20150924113714.GQ21849@zxy.spb.ru> <5603E083.9020505@yandex.ru> <20150924114554.GR21849@zxy.spb.ru> In-Reply-To: <20150924114554.GR21849@zxy.spb.ru> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="MwmRE7Rj2lg19BDSmWPwV6n3jlkI8Tm2b" X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Sep 2015 11:58:50 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --MwmRE7Rj2lg19BDSmWPwV6n3jlkI8Tm2b Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 24.09.2015 14:45, Slawa Olhovchenkov wrote: > On Thu, Sep 24, 2015 at 02:37:39PM +0300, Andrey V. Elsukov wrote: >=20 >> On 24.09.2015 14:37, Slawa Olhovchenkov wrote: >>> For example, host with 3TB of RAM, booted from small SSD. >>> This SSD have 16GB slice for dumping. This is sufficent if trouble >>> happen at boot time. This is insuuficient if trouble happen later, >>> after using all 3TB. rc.d script can be used for select iSCSI >>> destination, for dumping after succesefull boot. >> >> Did you read dumpon script and saw how it uses dumpdev tunable? >=20 > This is script try it in case dumpdev=3Dauto, before trying swap > partition. Yes. 1. If you did set dumpdev from loader prompt or from /boot/loader.conf, and you didn't configured it in rc.conf, then this choice will be applied by geom_dev. Then it will be applied again by rc.d/dumpon. 2. If you did set dumpdev from loader prompt or from /boot/loader.conf, and you did configured it in rc.conf, then first of will be selected dumpdev from loader, then will be selected one from rc.conf. 3. If you didn't set dumpdev from loader prompt or from /boot/loader.conf, and you didn't configured it in rc.conf, then one of swap partition will be selected. In the end we can see, if we apply the following patch, then nothing will be affected. Index: dumpon =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- dumpon (revision 288047) +++ dumpon (working copy) @@ -34,11 +34,6 @@ dumpon_start() [Nn][Oo] | '') ;; [Aa][Uu][Tt][Oo]) - dev=3D$(/bin/kenv -q dumpdev) - if [ -n "${dev}" ] ; then - dumpon_try "${dev}" - return $? - fi while read dev mp type more ; do [ "${type}" =3D "swap" ] || continue [ -c "${dev}" ] || continue PS. loader(8) has many variables where device name is used, and none of them uses /dev/ prefix. --=20 WBR, Andrey V. Elsukov --MwmRE7Rj2lg19BDSmWPwV6n3jlkI8Tm2b Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJWA+UHAAoJEAHF6gQQyKF6xr4H/irzf8pFqsN9cSbCSb3X6l5u LVaiX+8+nSsW8fcLbFijLfBj5Xddld9KKKOLg10to4HW6G9V9weikxdo/ZHLJCCV iuZOC5itAQs+MwDB1knfaxx3GKWuMVVuU6O5mUoHdBTX25qeKeSF+qGj+2Af3bWp CBKq77MD62l6K4AIpuR8HFjrzbWly1Hoh18ZZ6kglBK3qoq7jyxt28wJGYPe7i0P hQf3XU/7fk7SZULX+itEQrFuLH9kaBbBR3sIkgM8X2xOe8TgJMuAqw/IYZZ7Qqdv rUzzG6imhBkjkZZ/8k9j+EkEyYT3k13DKiOrOyuLERGI/OjyscOM14k6Yt+3Sxc= =5D4S -----END PGP SIGNATURE----- --MwmRE7Rj2lg19BDSmWPwV6n3jlkI8Tm2b-- From owner-freebsd-rc@freebsd.org Thu Sep 24 12:26:00 2015 Return-Path: Delivered-To: freebsd-rc@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 491ACA07BFB; Thu, 24 Sep 2015 12:26:00 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 20DBD10A0; Thu, 24 Sep 2015 12:25:58 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from porto.starpoint.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id PAA12693; Thu, 24 Sep 2015 15:25:49 +0300 (EEST) (envelope-from avg@FreeBSD.org) Received: from localhost ([127.0.0.1]) by porto.starpoint.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1Zf5av-000DEK-Fy; Thu, 24 Sep 2015 15:25:49 +0300 Subject: Re: dumpdev in loader.conf vs rc.d/dumpon To: "Andrey V. Elsukov" , Slawa Olhovchenkov References: <5602B922.20703@FreeBSD.org> <5602CDBC.7080906@FreeBSD.org> <5602DA17.7060501@FreeBSD.org> <5603B415.2090405@yandex.ru> <20150924111850.GA3158@zxy.spb.ru> <5603DE11.7010008@yandex.ru> <20150924113714.GQ21849@zxy.spb.ru> <5603E083.9020505@yandex.ru> <20150924114554.GR21849@zxy.spb.ru> <5603E507.4030203@yandex.ru> Cc: cem@FreeBSD.org, FreeBSD Current , freebsd-rc@FreeBSD.org From: Andriy Gapon Message-ID: <5603EB94.7010202@FreeBSD.org> Date: Thu, 24 Sep 2015 15:24:52 +0300 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <5603E507.4030203@yandex.ru> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Sep 2015 12:26:00 -0000 On 24/09/2015 14:56, Andrey V. Elsukov wrote: > 1. If you did set dumpdev from loader prompt or from /boot/loader.conf, > and you didn't configured it in rc.conf, then this choice will be > applied by geom_dev. Then it will be applied again by rc.d/dumpon. > > 2. If you did set dumpdev from loader prompt or from /boot/loader.conf, > and you did configured it in rc.conf, then first of will be selected > dumpdev from loader, then will be selected one from rc.conf. > > 3. If you didn't set dumpdev from loader prompt or from > /boot/loader.conf, and you didn't configured it in rc.conf, then one of > swap partition will be selected. > > In the end we can see, if we apply the following patch, then nothing > will be affected. I like this. > Index: dumpon > =================================================================== > --- dumpon (revision 288047) > +++ dumpon (working copy) > @@ -34,11 +34,6 @@ dumpon_start() > [Nn][Oo] | '') > ;; > [Aa][Uu][Tt][Oo]) > - dev=$(/bin/kenv -q dumpdev) > - if [ -n "${dev}" ] ; then > - dumpon_try "${dev}" > - return $? > - fi > while read dev mp type more ; do > [ "${type}" = "swap" ] || continue > [ -c "${dev}" ] || continue > > > PS. loader(8) has many variables where device name is used, and none of > them uses /dev/ prefix. > -- Andriy Gapon From owner-freebsd-rc@freebsd.org Thu Sep 24 12:54:08 2015 Return-Path: Delivered-To: freebsd-rc@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 2D13FA08E20; Thu, 24 Sep 2015 12:54:08 +0000 (UTC) (envelope-from slw@zxy.spb.ru) Received: from zxy.spb.ru (zxy.spb.ru [195.70.199.98]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id DA94A12BD; Thu, 24 Sep 2015 12:54:07 +0000 (UTC) (envelope-from slw@zxy.spb.ru) Received: from slw by zxy.spb.ru with local (Exim 4.84 (FreeBSD)) (envelope-from ) id 1Zf62H-000MEG-UC; Thu, 24 Sep 2015 15:54:05 +0300 Date: Thu, 24 Sep 2015 15:54:05 +0300 From: Slawa Olhovchenkov To: "Andrey V. Elsukov" Cc: Andriy Gapon , cem@FreeBSD.org, FreeBSD Current , freebsd-rc@FreeBSD.org Subject: Re: dumpdev in loader.conf vs rc.d/dumpon Message-ID: <20150924125405.GS21849@zxy.spb.ru> References: <5602CDBC.7080906@FreeBSD.org> <5602DA17.7060501@FreeBSD.org> <5603B415.2090405@yandex.ru> <20150924111850.GA3158@zxy.spb.ru> <5603DE11.7010008@yandex.ru> <20150924113714.GQ21849@zxy.spb.ru> <5603E083.9020505@yandex.ru> <20150924114554.GR21849@zxy.spb.ru> <5603E507.4030203@yandex.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5603E507.4030203@yandex.ru> User-Agent: Mutt/1.5.23 (2014-03-12) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: slw@zxy.spb.ru X-SA-Exim-Scanned: No (on zxy.spb.ru); SAEximRunCond expanded to false X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Sep 2015 12:54:08 -0000 On Thu, Sep 24, 2015 at 02:56:55PM +0300, Andrey V. Elsukov wrote: > On 24.09.2015 14:45, Slawa Olhovchenkov wrote: > > On Thu, Sep 24, 2015 at 02:37:39PM +0300, Andrey V. Elsukov wrote: > > > >> On 24.09.2015 14:37, Slawa Olhovchenkov wrote: > >>> For example, host with 3TB of RAM, booted from small SSD. > >>> This SSD have 16GB slice for dumping. This is sufficent if trouble > >>> happen at boot time. This is insuuficient if trouble happen later, > >>> after using all 3TB. rc.d script can be used for select iSCSI > >>> destination, for dumping after succesefull boot. > >> > >> Did you read dumpon script and saw how it uses dumpdev tunable? > > > > This is script try it in case dumpdev=auto, before trying swap > > partition. > > Yes. > > 1. If you did set dumpdev from loader prompt or from /boot/loader.conf, > and you didn't configured it in rc.conf, then this choice will be > applied by geom_dev. Then it will be applied again by rc.d/dumpon. > > 2. If you did set dumpdev from loader prompt or from /boot/loader.conf, > and you did configured it in rc.conf, then first of will be selected > dumpdev from loader, then will be selected one from rc.conf. > > 3. If you didn't set dumpdev from loader prompt or from > /boot/loader.conf, and you didn't configured it in rc.conf, then one of > swap partition will be selected. > > In the end we can see, if we apply the following patch, then nothing > will be affected. 1. If no swap configured in fstab, but configured dumpdev from loader prompt symlink in devfs for savecore not created. 2. If swap configured in fstab and dumpdev configured from loader prompt (and different from swap) -- dumpdev changed (unexpectedly?). > Index: dumpon > =================================================================== > --- dumpon (revision 288047) > +++ dumpon (working copy) > @@ -34,11 +34,6 @@ dumpon_start() > [Nn][Oo] | '') > ;; > [Aa][Uu][Tt][Oo]) > - dev=$(/bin/kenv -q dumpdev) > - if [ -n "${dev}" ] ; then > - dumpon_try "${dev}" > - return $? > - fi > while read dev mp type more ; do > [ "${type}" = "swap" ] || continue > [ -c "${dev}" ] || continue > > > PS. loader(8) has many variables where device name is used, and none of > them uses /dev/ prefix. PS. This is another stranges: devfs may be mounted not only to /dev, but in many places /dev/ prefix is hardcoded and no notes in docs. From owner-freebsd-rc@freebsd.org Thu Sep 24 20:57:38 2015 Return-Path: Delivered-To: freebsd-rc@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 C832AA08E1E; Thu, 24 Sep 2015 20:57:38 +0000 (UTC) (envelope-from pawel@dawidek.net) Received: from mail.dawidek.net (garage.dawidek.net [91.121.88.72]) by mx1.freebsd.org (Postfix) with ESMTP id 8F2D11826; Thu, 24 Sep 2015 20:57:37 +0000 (UTC) (envelope-from pawel@dawidek.net) Received: from localhost (unknown [204.8.219.11]) by mail.dawidek.net (Postfix) with ESMTPSA id 507CAF04; Thu, 24 Sep 2015 22:57:30 +0200 (CEST) Date: Thu, 24 Sep 2015 22:58:00 +0200 From: Pawel Jakub Dawidek To: Slawa Olhovchenkov Cc: "Andrey V. Elsukov" , FreeBSD Current , freebsd-rc@FreeBSD.org, Andriy Gapon , cem@FreeBSD.org Subject: Re: dumpdev in loader.conf vs rc.d/dumpon Message-ID: <20150924205800.GA1475@garage.freebsd.pl> References: <5602B922.20703@FreeBSD.org> <5602CDBC.7080906@FreeBSD.org> <5602DA17.7060501@FreeBSD.org> <5603B415.2090405@yandex.ru> <20150924111850.GA3158@zxy.spb.ru> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="9amGYk9869ThD9tj" Content-Disposition: inline In-Reply-To: <20150924111850.GA3158@zxy.spb.ru> X-OS: FreeBSD 11.0-CURRENT amd64 User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Sep 2015 20:57:38 -0000 --9amGYk9869ThD9tj Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Sep 24, 2015 at 02:18:50PM +0300, Slawa Olhovchenkov wrote: > On Thu, Sep 24, 2015 at 11:28:05AM +0300, Andrey V. Elsukov wrote: >=20 > > On 23.09.2015 19:57, Andriy Gapon wrote: > > > I do not have a strong opinion. Either option, rc.d/dumpon change or= geom_dev > > > change, is fine with me. > >=20 > > I added the ability to set dumpdev via loader. But I wasn't aware that > > it was used in rc.d script. > >=20 > > If you have set dumpdev kenv, it will be already enabled in the time > > when rc.d/dumpon will be run. So, I think it is useless to try to > > enable dumpdev again. I prefer remove this old code from rc.d script. >=20 > rc.d script can redirect dump to device, not available at boot time, > iSCSI disk, for examle. No. Dump device is very special. It runs in an environment when kernel already paniced, there are no interrupt, so there is no networking. Storage controllers have special methods to handle dumping kernel memory - it doesn't go through GEOM, it cannot go through GEOM as the scheduler doesn't work too. --=20 Pawel Jakub Dawidek http://www.wheelsystems.com FreeBSD committer http://www.FreeBSD.org Am I Evil? Yes, I Am! http://mobter.com --9amGYk9869ThD9tj Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCgAGBQJWBGPYAAoJEJVLhSuxKFt1dUwP/2Wqa2f+G682shY34SvvKDpn 3AEFFlzGJkq3YrUT4iIaAZSzd1dJaUVCnWzjqfJllVwgIn+7Sd20+J4LXqQhWEh3 8TRJQZ44aRGS+IaUuCizmGa3sgSDXCrrSAuIMlnur7M1jwu06FrQb4bsJCo8Acif ZbmC9KA3xicr9SbVEgJtXrPa2BxynNCB4bcFoKcRLJaZl6eK/ViAhFIe+fCFYTvm PYR3JYNV7NmpcOY7HhI9iHP6WcnRerIWLGX8dl7N5tWAYvXsYVlYuEXcM7kG3mpB bybjj2v7wcQwdVqYvnjsLoU3VNJj27M1Eo4f/WRziZXAn0jfiD7WhdjReWw6TeiN xDGQ1OJl1A0J913z+g6DvI1dCJVWu3BfPuu+7IpAUsgCOzqowXKRIcQzCwTFZTv5 0CaPFVasfswO1g0m480jRRv8fNm7kgX6vGJNn5xQ1V8SMBbqcB7qBIEVaYhXwSQ2 dGZjl3GhTbIq7xfNjwbRjzvnbIyauHuBDGm+uE5Auk6REWzskZxEczaJim1B2vvk C6WNWrzZ6ZbuFW5ccAVLzS8Q4/GDyMOQJ2uQN9zS5Pg5mrZ/ZEQ57kK6YCMAqkOw GsVnXv5RzvMUo/4/LIGZTIoqLnR1HIsNCdcla0Yjx6RhUB5dyhUr2ADhTB8s5Bll PctICSTAlTBgkgmK1zd0 =H1Xn -----END PGP SIGNATURE----- --9amGYk9869ThD9tj-- From owner-freebsd-rc@freebsd.org Thu Sep 24 21:12:01 2015 Return-Path: Delivered-To: freebsd-rc@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 68A9DA07A73; Thu, 24 Sep 2015 21:12:01 +0000 (UTC) (envelope-from slw@zxy.spb.ru) Received: from zxy.spb.ru (zxy.spb.ru [195.70.199.98]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2237B1761; Thu, 24 Sep 2015 21:12:01 +0000 (UTC) (envelope-from slw@zxy.spb.ru) Received: from slw by zxy.spb.ru with local (Exim 4.84 (FreeBSD)) (envelope-from ) id 1ZfDo0-0007jb-2j; Fri, 25 Sep 2015 00:11:52 +0300 Date: Fri, 25 Sep 2015 00:11:51 +0300 From: Slawa Olhovchenkov To: Pawel Jakub Dawidek Cc: "Andrey V. Elsukov" , FreeBSD Current , freebsd-rc@FreeBSD.org, Andriy Gapon , cem@FreeBSD.org Subject: Re: dumpdev in loader.conf vs rc.d/dumpon Message-ID: <20150924211151.GT21849@zxy.spb.ru> References: <5602B922.20703@FreeBSD.org> <5602CDBC.7080906@FreeBSD.org> <5602DA17.7060501@FreeBSD.org> <5603B415.2090405@yandex.ru> <20150924111850.GA3158@zxy.spb.ru> <20150924205800.GA1475@garage.freebsd.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150924205800.GA1475@garage.freebsd.pl> User-Agent: Mutt/1.5.23 (2014-03-12) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: slw@zxy.spb.ru X-SA-Exim-Scanned: No (on zxy.spb.ru); SAEximRunCond expanded to false X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Sep 2015 21:12:01 -0000 On Thu, Sep 24, 2015 at 10:58:00PM +0200, Pawel Jakub Dawidek wrote: > On Thu, Sep 24, 2015 at 02:18:50PM +0300, Slawa Olhovchenkov wrote: > > On Thu, Sep 24, 2015 at 11:28:05AM +0300, Andrey V. Elsukov wrote: > > > > > On 23.09.2015 19:57, Andriy Gapon wrote: > > > > I do not have a strong opinion. Either option, rc.d/dumpon change or geom_dev > > > > change, is fine with me. > > > > > > I added the ability to set dumpdev via loader. But I wasn't aware that > > > it was used in rc.d script. > > > > > > If you have set dumpdev kenv, it will be already enabled in the time > > > when rc.d/dumpon will be run. So, I think it is useless to try to > > > enable dumpdev again. I prefer remove this old code from rc.d script. > > > > rc.d script can redirect dump to device, not available at boot time, > > iSCSI disk, for examle. > > No. Dump device is very special. It runs in an environment when kernel > already paniced, there are no interrupt, so there is no networking. > Storage controllers have special methods to handle dumping kernel memory > - it doesn't go through GEOM, it cannot go through GEOM as the scheduler > doesn't work too. Can be ZFS VOL act as dump device? From owner-freebsd-rc@freebsd.org Thu Sep 24 21:14:38 2015 Return-Path: Delivered-To: freebsd-rc@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 CA56DA07C55; Thu, 24 Sep 2015 21:14:38 +0000 (UTC) (envelope-from pawel@dawidek.net) Received: from mail.dawidek.net (garage.dawidek.net [91.121.88.72]) by mx1.freebsd.org (Postfix) with ESMTP id 66D451930; Thu, 24 Sep 2015 21:14:38 +0000 (UTC) (envelope-from pawel@dawidek.net) Received: from localhost (unknown [204.8.219.11]) by mail.dawidek.net (Postfix) with ESMTPSA id 307E3F11; Thu, 24 Sep 2015 23:14:37 +0200 (CEST) Date: Thu, 24 Sep 2015 23:15:07 +0200 From: Pawel Jakub Dawidek To: Slawa Olhovchenkov Cc: "Andrey V. Elsukov" , FreeBSD Current , freebsd-rc@FreeBSD.org, Andriy Gapon , cem@FreeBSD.org Subject: Re: dumpdev in loader.conf vs rc.d/dumpon Message-ID: <20150924211507.GB1475@garage.freebsd.pl> References: <5602B922.20703@FreeBSD.org> <5602CDBC.7080906@FreeBSD.org> <5602DA17.7060501@FreeBSD.org> <5603B415.2090405@yandex.ru> <20150924111850.GA3158@zxy.spb.ru> <20150924205800.GA1475@garage.freebsd.pl> <20150924211151.GT21849@zxy.spb.ru> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="z6Eq5LdranGa6ru8" Content-Disposition: inline In-Reply-To: <20150924211151.GT21849@zxy.spb.ru> X-OS: FreeBSD 11.0-CURRENT amd64 User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Sep 2015 21:14:39 -0000 --z6Eq5LdranGa6ru8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Sep 25, 2015 at 12:11:51AM +0300, Slawa Olhovchenkov wrote: > On Thu, Sep 24, 2015 at 10:58:00PM +0200, Pawel Jakub Dawidek wrote: >=20 > > On Thu, Sep 24, 2015 at 02:18:50PM +0300, Slawa Olhovchenkov wrote: > > > On Thu, Sep 24, 2015 at 11:28:05AM +0300, Andrey V. Elsukov wrote: > > >=20 > > > > On 23.09.2015 19:57, Andriy Gapon wrote: > > > > > I do not have a strong opinion. Either option, rc.d/dumpon chang= e or geom_dev > > > > > change, is fine with me. > > > >=20 > > > > I added the ability to set dumpdev via loader. But I wasn't aware t= hat > > > > it was used in rc.d script. > > > >=20 > > > > If you have set dumpdev kenv, it will be already enabled in the time > > > > when rc.d/dumpon will be run. So, I think it is useless to try to > > > > enable dumpdev again. I prefer remove this old code from rc.d scrip= t. > > >=20 > > > rc.d script can redirect dump to device, not available at boot time, > > > iSCSI disk, for examle. > >=20 > > No. Dump device is very special. It runs in an environment when kernel > > already paniced, there are no interrupt, so there is no networking. > > Storage controllers have special methods to handle dumping kernel memory > > - it doesn't go through GEOM, it cannot go through GEOM as the scheduler > > doesn't work too. >=20 > Can be ZFS VOL act as dump device? I don't think so. IIRC there was a hack in Illumos to allocate contiguous space for dump in one of the vdevs (then I think it was extended to multiple vdevs). I don't think any ZFS feature has worked for such a ZVOL (no checksumming, no compression, etc.). Others may have more up-to-date info about that. --=20 Pawel Jakub Dawidek http://www.wheelsystems.com FreeBSD committer http://www.FreeBSD.org Am I Evil? Yes, I Am! http://mobter.com --z6Eq5LdranGa6ru8 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCgAGBQJWBGfbAAoJEJVLhSuxKFt1ndkQAMXtDmxtA70yK28t3tpN51Cr 6soDMXK4LpyTvEti1QayQRRZZESGB9WTltadSF52Nel+AdCxnW6VqQvqDrXIZEN8 BAlWQBuHa5snaVvSGoztoTOIQRWXTIjqs1ldGudiDm/NMjvEOV9yi/YxdwAjSiEv +8G8PF0Py1cr4colzrs+EzeNsEiTYHJinmbeG2A55FPlSn5nCY9tYOgcqNCwCS03 C33IxFCMqPlKoqovb0tOPc+cy4XN/8ChKKJgj6vwsj4fUw+qaBKpy42KEoZeq6yf n4dYUNRHi08aYli9DYCRGDirlwrc8ZBq0T4cvAseUXs/7HaB2u7AlFjQCzbk3ujL A0tmjvste/F7UXfYNyrdLtMlQMfFqXPro45QgRHoshEpsITL5gVsJtOnGdyWSLP6 UPMpD1UwQwyfcbj9tP/xO+sy9MXC3B7qSTnrQAg9BqJQ9Xbln2GN7PUzXxmGZkJO SRnDy0o8sXMidZ0AqVMpxBWeW75AHJZeaDQV5mrIgAIuG3L387gDmuAl5p2+WyMg vfIC1caci6S+Guu1xQekpsHceUqfO5ytrDAtF4SZWbD8ZDEGeq2DidJbwrOgKVZ0 tMcXnYl/KB07DQ+Z0d8ruUvFQ0GJov0GA8Xc/3ukGhWvSYzevYjkHt6DdaUPNbhb hkgcIZgPm+z0DuLDtUIL =iWI/ -----END PGP SIGNATURE----- --z6Eq5LdranGa6ru8--