From owner-freebsd-stable@FreeBSD.ORG Sat Feb 19 20:17:58 2005 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3C32F16A4CE for ; Sat, 19 Feb 2005 20:17:58 +0000 (GMT) Received: from carver.gumbysoft.com (carver.gumbysoft.com [66.220.23.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 12E2543D69 for ; Sat, 19 Feb 2005 20:17:58 +0000 (GMT) (envelope-from dwhite@gumbysoft.com) Received: by carver.gumbysoft.com (Postfix, from userid 1000) id 0A83C72DD4; Sat, 19 Feb 2005 12:17:58 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by carver.gumbysoft.com (Postfix) with ESMTP id 0511172DCB; Sat, 19 Feb 2005 12:17:58 -0800 (PST) Date: Sat, 19 Feb 2005 12:17:57 -0800 (PST) From: Doug White To: Remo Lacho In-Reply-To: Message-ID: <20050219121346.K69556@carver.gumbysoft.com> References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-stable@freebsd.org Subject: Re: How to remove vestigial gmirror device? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Feb 2005 20:17:58 -0000 On Sat, 19 Feb 2005, Remo Lacho wrote: > Installed 5.3-Stable from the February ISO Snapshot on an old Pentium Pro > 600MH ATX box with 256MB memory and two WD UDMA33 6.4GB drives. > > After several false starts with GMirror (guided by Ralf S. Engelschal's > excellent How-To ) the system is > now stable and has survived many kernel recompiles without incident. > > One problem, one of the original test GMirror devices refused to go away. > It did not respond to the "remove" or "forget" parameters. > > The "deactivate" parameter seemed to do the trick, however, upon boot-up > the following message is generated: > > "GEOM_MIRROR: Device gmusr: provider ad4 marked as inactive, skipping." > > The "list" parameter does not list the gmusr device as being active. > > When "gmirror activate gmusr ad4" is invoked the response is: > > "Cannot write metadata from ad4: Operation not permitted. > Not fully done." If ad4 is your root device, GEOM prohibits changes to the device configuration on a mounted device. You can either: a) boot into the fixit CD, finagle some symlinks to make 'gmirror' work (I think you need to symlink /dist/usr/lib to /usr/lib) and remove it from there; or b) set 'sysctl kern.geom.debugflags=16' which disables the protection. You activate this at your own risk, since it makes it possible to destroy the root volume while it is mounted. -- Doug White | FreeBSD: The Power to Serve dwhite@gumbysoft.com | www.FreeBSD.org