From owner-freebsd-geom@FreeBSD.ORG Sat Sep 11 21:37:59 2004 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B600516A4CE; Sat, 11 Sep 2004 21:37:59 +0000 (GMT) Received: from kestrel.alerce.com (kestrel.alerce.com [209.182.219.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id 79B9443D46; Sat, 11 Sep 2004 21:37:59 +0000 (GMT) (envelope-from hartzell@kestrel.alerce.com) Received: from rosebud.alerce.com (w092.z064001164.sjc-ca.dsl.cnc.net [64.1.164.92]) (authenticated bits=128) by kestrel.alerce.com (8.12.10/8.12.10) with ESMTP id i8BLbtkk053281 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 11 Sep 2004 14:37:56 -0700 (PDT) (envelope-from hartzell@kestrel.alerce.com) Received: from rosebud.alerce.com (localhost [127.0.0.1]) by rosebud.alerce.com (8.12.9p2/8.12.9) with ESMTP id i8BLcZwg007967 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 11 Sep 2004 14:38:36 -0700 (PDT) (envelope-from hartzell@rosebud.alerce.com) Received: (from hartzell@localhost) by rosebud.alerce.com (8.12.9p2/8.12.9/Submit) id i8BLcZiv007964; Sat, 11 Sep 2004 14:38:35 -0700 (PDT) (envelope-from hartzell) From: George Hartzell MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16707.28763.7201.383177@rosebud.alerce.com> Date: Sat, 11 Sep 2004 14:38:35 -0700 To: hartzell@kestrel.alerce.com In-Reply-To: <16707.25008.865268.555842@rosebud.alerce.com> References: <16706.33472.228042.851882@rosebud.alerce.com> <20040911074556.GI30151@darkness.comp.waw.pl> <16707.25008.865268.555842@rosebud.alerce.com> X-Mailer: VM 7.14 under 21.4 (patch 14) "Reasonable Discussion" XEmacs Lucid X-Virus-Scanned: ClamAV version 'clamd / ClamAV version 0.65', clamav-milter version '0.60p' cc: Pawel Jakub Dawidek cc: freebsd-geom@FreeBSD.org Subject: Re: Mounting root... X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: hartzell@kestrel.alerce.com List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Sep 2004 21:37:59 -0000 George Hartzell writes: > [...] > Suggestions? Sorry to follow up my own posting, but I have something that works. Two changes to /etc/rc.d/swap1 change stop_cmd from ':' to 'swap1_stop' and change the line in swap1_stop from swapctl -U -t blk to swapoff -a And 1 behavioural change. I reflexively use reboot to reboot the machine, and hadn't ever made the connection that it doesn't run any shutdown scripts. W/ the changes above, and using 'shutdown -r now' to reboot the machine, it comes up w/out synching the mirror. COOL! To be consistent, one should probably also change the start_cmd to swap1_start, and fix that function to use swapon -a since its usage of swapctl is also broken. Then, no_swap and swapoff need to be defaulted in /etc/defaults/rc.conf. Or, one could delete the swap1_{start,stop} functions, and just make start_cmd be 'swapon -a' and stop_cmd be 'swapoff -a'. I don't know which is more better, clearly there's some history here that's unfinished, or a cross-BSD compatibility thing, or??? Pawel, should I file some kind of bug here, or should you do something, or??? g.