From owner-freebsd-geom@FreeBSD.ORG Thu Jan 25 14:25:45 2007 Return-Path: X-Original-To: freebsd-geom@FreeBSD.ORG Delivered-To: freebsd-geom@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B588616A403 for ; Thu, 25 Jan 2007 14:25:45 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [83.120.8.8]) by mx1.freebsd.org (Postfix) with ESMTP id 3974813C442 for ; Thu, 25 Jan 2007 14:25:45 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (ixgpkd@localhost [127.0.0.1]) by lurza.secnetix.de (8.13.4/8.13.4) with ESMTP id l0PEOkcd016222; Thu, 25 Jan 2007 15:24:51 +0100 (CET) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.13.4/8.13.1/Submit) id l0PEOkGh016221; Thu, 25 Jan 2007 15:24:46 +0100 (CET) (envelope-from olli) Date: Thu, 25 Jan 2007 15:24:46 +0100 (CET) Message-Id: <200701251424.l0PEOkGh016221@lurza.secnetix.de> From: Oliver Fromme To: freebsd-geom@FreeBSD.ORG, Oles Hnatkevych In-Reply-To: <1627867361.20070124205933@able.com.ua> X-Newsgroups: list.freebsd-geom User-Agent: tin/1.8.2-20060425 ("Shillay") (UNIX) (FreeBSD/4.11-STABLE (i386)) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Thu, 25 Jan 2007 15:24:52 +0100 (CET) Cc: Subject: Re: gmirror existing installation? X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-geom@FreeBSD.ORG, Oles Hnatkevych List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Jan 2007 14:25:45 -0000 Oles Hnatkevych wrote: > There's a simple way of gmirroring existing installation. > > > sysctl kern.geom.debugflags=16 # allow writing to a live filesystem > > gmirror label -v gm0 /dev/ad0 > > # edit /etc/fstab, chane to /dev/mirror/gm0... slices > > # add "geom_mirror_load=YES" to /boot/loader.conf > > # reboot > > gmirror insert gm0 /dev/ad1 I don't recommend to do it that way. It is better to first create the mirror on the second (unused) disk, label and newfs it, then copy the system from ad0 to gm0, then boot from gm0 on the second disk and insert the first disk into the mirror. That's the approach described in the Handbook, I think. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd Any opinions expressed in this message may be personal to the author and may not necessarily reflect the opinions of secnetix in any way. "[...] one observation we can make here is that Python makes an excellent pseudocoding language, with the wonderful attribute that it can actually be executed." -- Bruce Eckel