From owner-freebsd-geom@FreeBSD.ORG Fri Jan 26 17:12:08 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 097C816A408 for ; Fri, 26 Jan 2007 17:12:08 +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 6DC7213C483 for ; Fri, 26 Jan 2007 17:12:07 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (nspslg@localhost [127.0.0.1]) by lurza.secnetix.de (8.13.4/8.13.4) with ESMTP id l0QHBvi3077002; Fri, 26 Jan 2007 18:12:03 +0100 (CET) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.13.4/8.13.1/Submit) id l0QHBvOX077001; Fri, 26 Jan 2007 18:11:57 +0100 (CET) (envelope-from olli) Date: Fri, 26 Jan 2007 18:11:57 +0100 (CET) Message-Id: <200701261711.l0QHBvOX077001@lurza.secnetix.de> From: Oliver Fromme To: freebsd-geom@FreeBSD.ORG, don_oles@able.com.ua, mikej@rogers.com In-Reply-To: <45B956AA.9000803@rogers.com> 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]); Fri, 26 Jan 2007 18:12:03 +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, don_oles@able.com.ua, mikej@rogers.com List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Jan 2007 17:12:08 -0000 Mike Jakubik wrote: > Oliver Fromme wrote: > > 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. > > Exactly why is this better? Because you don't overwrite the last sector of a partition that contains an existing file system. Overwriting that sector might cause trouble depending on the layout of the file system. It's also a nice opportunity to change the layout (sizes) of your partitons if necessary. ;-) > It's certainly much more time consuming... Not really much more. It's true that you have to copy over your files, but the computer does all that work itself. You only have to type one command, then spend your time doing something else. You don't have to watch it during the copying. (You don't have to watch the mirror being synchronized either, which has to be done anyhow and takes much longer, probably.) YMMV, of course. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, USt-Id: DE204219783 Any opinions expressed in this message are personal to the author and may not necessarily reflect the opinions of secnetix GmbH & Co KG in any way. FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "IRIX is about as stable as a one-legged drunk with hypothermia in a four-hundred mile per hour wind, balancing on a banana peel on a greased cookie sheet -- when someone throws him an elephant with bad breath and a worse temper." -- Ralf Hildebrandt