From lchen@zen.lhaven.homeip.net  Tue May 21 18:19:45 2013
Return-Path: <lchen@zen.lhaven.homeip.net>
Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115])
	by hub.freebsd.org (Postfix) with ESMTP id D8E67571
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 21 May 2013 18:19:45 +0000 (UTC)
	(envelope-from lchen@zen.lhaven.homeip.net)
Received: from mho-01-ewr.mailhop.org (mho-03-ewr.mailhop.org [204.13.248.66])
	by mx1.freebsd.org (Postfix) with ESMTP id B251E300
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 21 May 2013 18:19:45 +0000 (UTC)
Received: from ip70-179-144-108.fv.ks.cox.net ([70.179.144.108] helo=zen.lhaven.homeip.net)
	by mho-01-ewr.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256)
	(Exim 4.72)
	(envelope-from <lchen@zen.lhaven.homeip.net>)
	id 1UerA0-0005oO-LW
	for FreeBSD-gnats-submit@freebsd.org; Tue, 21 May 2013 18:19:44 +0000
Received: from zen.lhaven.homeip.net (localhost [127.0.0.1])
	by zen.lhaven.homeip.net (8.14.7/8.14.5) with ESMTP id r4LIJfd8086069;
	Tue, 21 May 2013 13:19:41 -0500 (CDT)
	(envelope-from lchen@zen.lhaven.homeip.net)
Received: (from lchen@localhost)
	by zen.lhaven.homeip.net (8.14.7/8.14.5/Submit) id r4LIJar2086068;
	Tue, 21 May 2013 13:19:36 -0500 (CDT)
	(envelope-from lchen)
Message-Id: <201305211819.r4LIJar2086068@zen.lhaven.homeip.net>
Date: Tue, 21 May 2013 13:19:36 -0500 (CDT)
From: Lawrence Chen <beastie@tardisi.com>
Reply-To: Lawrence Chen <beastie@tardisi.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc: beastie_t@zen.lhaven.homeip.net
Subject: gmirror(8) says to use rc.early which is no longer available
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         178818
>Category:       docs
>Synopsis:       gmirror(8) says to use rc.early which is no longer available
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-doc
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue May 21 18:20:00 UTC 2013
>Closed-Date:    
>Last-Modified:  Tue Apr 29 19:20:00 UTC 2014
>Originator:     Lawrence Chen
>Release:        FreeBSD 9.1-RELEASE-p3 amd64
>Organization:
>Environment:
System: FreeBSD zen.lhaven.homeip.net 9.1-RELEASE-p3 FreeBSD 9.1-RELEASE-p3 #0: Mon Apr 29 18:27:25 UTC 2013 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64


	
>Description:
	
	gmirror(8) has NOTES section on doing kernel dumps to gmirror
	providers and wanting to use a different balance algorithm through use
	of /etc/rc.early and /etc/rc.local.

	But, /etc/rc.early is no more.
>How-To-Repeat:
	
>Fix:

	

	Provide an alternative solution to /etc/rc.early, such as create
	an equilavalent /etc/rc.d/early? create some other /etc/rc.d/<file>
	that is "BEFORE: dumpon"?  Some other way?

	Plus the original early script wouldn't work, since it would get called
	after dumpon.  Since it is "REQUIRE: disks" while dumpon is
	"BEFORE: disks".
>Release-Note:
>Audit-Trail:

From: Chris Rees <utisoft@gmail.com>
To: "bug-followup@freebsd.org" <bug-followup@freebsd.org>, 
	"freebsd-fs@freebsd.org" <freebsd-fs@freebsd.org>, Pawel Jakub Dawidek <pjd@freebsd.org>
Cc:  
Subject: Re: docs/178818: gmirror(8) says to use rc.early which is no longer available
Date: Fri, 31 May 2013 15:52:58 +0100

 I think this shouldn't be too hard to automate in the dumpon script,
 to be honest.
 
 Please can you try the patch at [1], and set
 
 dumpdev=/dev/mirror/*your_target_mirror*
 
 in /etc/rc.conf, and let me know if it works OK?
 
 Pawel, does this look sane?
 
 Chris
 
 [1] http://www.bayofrum.net/~crees/patches/gmirror-dumps.diff

From: The BSD Dreamer <beastie@tardisi.com>
To: bug-followup@FreeBSD.org, beastie@tardisi.com
Cc:  
Subject: Re: docs/178818: gmirror(8) says to use rc.early which is no longer
 available
Date: Wed, 06 Nov 2013 07:56:05 -0600

 Sorry for not replying sooner, but it didn't quite work for me and
 forgot to come back later to see why, since what I hacked seemed to be
 working...until recently.
 
 So, I revisited this problem.
 
 One change to your diff... http://lkc.me/5D
 
 
 
 -- 
   Name: Lawrence "The Dreamer" Chen      Email: beastie@tardisi.com
  Snail: 1530 College Ave, A5              Blog: http://lawrencechen.net
         Manhattan, KS 66502-2768         Phone: 785-789-4132

From: The BSD Dreamer <beastie@tardisi.com>
To: bug-followup@freebsd.org
Cc:  
Subject: Re: docs/178818: gmirror(8) says to use rc.early which is no longer
 available
Date: Tue, 29 Apr 2014 14:18:52 -0500

 On 2013-11-06 07:56, The BSD Dreamer wrote:
 > Sorry for not replying sooner, but it didn't quite work for me and
 > forgot to come back later to see why, since what I hacked seemed to be
 > working...until recently.
 > 
 > So, I revisited this problem.
 > 
 > One change to your diff... http://lkc.me/5D
 
 System: FreeBSD zen.lhaven.homeip.net 9.2-RELEASE-p4 FreeBSD 9.2-RELEASE-p4 
 #0: Tue Apr  8 18:08:22 UTC 2014     
 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64
 
 So, recently, I had the system panic twice, where it did dumps but they 
 couldn't be found by /etc/rc.d/savecore.
 
 Leads me to suspect that this rc script needs a similar tweak.
 
 http://lkc.me/5I
 
>Unformatted:
