From owner-freebsd-geom@FreeBSD.ORG Wed Nov 10 14:10:45 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 F0BEB16A4D1 for ; Wed, 10 Nov 2004 14:10:45 +0000 (GMT) Received: from thekla.de.clara.net (thekla.de.clara.net [212.82.225.81]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2919243D1F for ; Wed, 10 Nov 2004 14:10:45 +0000 (GMT) (envelope-from michael.riexinger@de.clara.net) Received: from localhost.de.clara.net ([127.0.0.1] helo=localhost) by thekla.de.clara.net with esmtp (Exim 4.30; FreeBSD) id 1CRtBL-0004wK-SZ; Wed, 10 Nov 2004 15:10:43 +0100 Received: from box.int.de.clara.net ([192.168.0.226]) by thekla.de.clara.net with esmtp (Exim 4.30; FreeBSD) id 1CRtBL-0004vz-6f; Wed, 10 Nov 2004 15:10:43 +0100 From: Michael Riexinger To: freebsd-geom@freebsd.org, petroff@car-bg.com Date: Wed, 10 Nov 2004 15:11:19 +0100 User-Agent: KMail/1.7 References: <200411091736060033.005C4025@mail.car-bg.com> In-Reply-To: <200411091736060033.005C4025@mail.car-bg.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200411101511.20233.michael.riexinger@de.clara.net> Subject: Re: gmirror problem X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Nov 2004 14:10:46 -0000 On Tuesday 09 November 2004 16:36, Dimiter Petrov wrote: > hello, > i have freebsd 5.3 and i'm trying to make a software raid with > gmirror. I hava a disk with data and i want to add another one to > make a mirror. > > here is what i am typing from man gmirror > > gmirror label -v -b round-robin data ad0 > > But there is an error > > Can't store metadata on ad0: Operation not permitted. Is any filesystem on ad0 mounted? Try booting from the freebsd install cd, choose rescue from live cd and insert disc 2... then cd /dist; chroot .; mount_devfs devfs /dev; gmirror load; gmirror label ...; exit; mount yourrootfs /mnt; /dist/usr/bin/vi /mnt/etc/fstab (change devices to the gmirror devices), echo geom_mirror_load=\"YES\" >>/ mnt/boot/loader.conf; echo swapoff=\"YES\" >> /etc/rc.conf (if there's a swap partition on the mirror); umount /mnt; exit and reboot :) Hope that helps Kind regards, Michael Riexinger systems engineer -- claranet gmbh internet service provider tel +49 (0) 69 - 40 80 18 - 300 email: michael.riexinger@de.clara.net http://www.claranet.de/