From owner-freebsd-questions@FreeBSD.ORG Fri Mar 16 19:56:22 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EB99716A401 for ; Fri, 16 Mar 2007 19:56:22 +0000 (UTC) (envelope-from lists@jnielsen.net) Received: from ns1.jnielsen.net (ns1.jnielsen.net [69.55.238.237]) by mx1.freebsd.org (Postfix) with ESMTP id CBE5F13C44C for ; Fri, 16 Mar 2007 19:56:22 +0000 (UTC) (envelope-from lists@jnielsen.net) Received: from localhost (jn@ns1 [69.55.238.237]) (authenticated bits=0) by ns1.jnielsen.net (8.12.9p2/8.12.9) with ESMTP id l2GJuLXl029627; Fri, 16 Mar 2007 15:56:22 -0400 (EDT) (envelope-from lists@jnielsen.net) From: John Nielsen To: freebsd-questions@freebsd.org Date: Fri, 16 Mar 2007 15:56:28 -0400 User-Agent: KMail/1.9.5 References: <539c60b90703131212m731986b1p8603a86eca00d6b2@mail.gmail.com> <200703161208.49305.lists@jnielsen.net> <539c60b90703161248p7ddf9aefxf766ef482b6036cd@mail.gmail.com> In-Reply-To: <539c60b90703161248p7ddf9aefxf766ef482b6036cd@mail.gmail.com> X-Face: #X5#Y*q>F:]zT!DegL3z5Xo'^MN[$8k\[4^3rN~wm=s=Uw(sW}R?3b^*f1Wu*.<=?utf-8?q?of=5F4NrS=0A=09P*M/9CpxDo!D6?=)IY1w<9B1jB; tBQf[RU-R<,I)e"$q7N7 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200703161556.28792.lists@jnielsen.net> X-Virus-Scanned: ClamAV version 0.88.4, clamav-milter version 0.88.4 on ns1.jnielsen.net X-Virus-Status: Clean Cc: Steve Franks Subject: Re: mirror without destroying existing contents X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Mar 2007 19:56:23 -0000 On Friday 16 March 2007 15:48, Steve Franks wrote: > On 3/16/07, John Nielsen wrote: > > On Friday 16 March 2007 11:18, Steve Franks wrote: > > > I get the following: > > > > > > #gmirror label -v -b split -s 1024 data ad0 > > > can't store metadata on ad0: operation not permitted. > > > > That most likely means that you currently have a filesystem on ad0 > > mounted. If that's the case you should be glad that the OS was smarter > > than you. What steps had you taken prior to this? > > It appears to say in the manpage that you can do this on a disk with > an existing filesys - would you expect it to work if the disk is > unmounted first, then? > > Steve > > man gmirror: > "Create a mirror on disk with valid data (note that the last sector of the > disk will be overwritten). Add another disk to this mirror, so it > will be synchronized with existing disk: > > gmirror label -v -b round-robin data da0 > gmirror insert data da1 > " I would expect it to, yes. JN