From owner-freebsd-doc@FreeBSD.ORG Fri May 23 10:41:45 2008 Return-Path: Delivered-To: freebsd-doc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0C217106566B for ; Fri, 23 May 2008 10:41:45 +0000 (UTC) (envelope-from sonicy@otenet.gr) Received: from aiolos.otenet.gr (aiolos.otenet.gr [195.170.0.93]) by mx1.freebsd.org (Postfix) with ESMTP id 8E2A18FC20 for ; Fri, 23 May 2008 10:41:44 +0000 (UTC) (envelope-from sonicy@otenet.gr) Received: from aquarius.dyndns.org (athedsl-4443696.home.otenet.gr [79.129.190.32]) by aiolos.otenet.gr (8.13.8/8.13.8/Debian-3) with ESMTP id m4NAfd8J023398; Fri, 23 May 2008 13:41:40 +0300 Message-ID: <48369F96.6010601@otenet.gr> Date: Fri, 23 May 2008 13:42:30 +0300 From: Manolis Kiagias User-Agent: Thunderbird 2.0.0.14 (X11/20080501) MIME-Version: 1.0 To: Lasse Brandt References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-7; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-doc@freebsd.org Subject: Re: Mistake in the FreeBSD Handbook on geom X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 May 2008 10:41:45 -0000 Lasse Brandt wrote: > Hi there, > > I think I might have found a mistake in the handbook - first off this > is the first time I try to setup geom, so there is a good chance that > I might miss something :) > > I was following instructions on this page: > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/geom-mirror.html > > About half-way down it says: > "Now edit the replicated /mnt/etc/fstab file and remove or comment out > the swap file [1]. Change the other file system information to use the > new disk as shown in the following example:" > > A little later you should reboot into single user mode and "At the > console, ensure that the system booted from the gm0s1a." > > But I doubt that will ever happen - the handbook only tells me to > change /mnt/etc/fstab (which is the secondary disk) so when booting, > it will still use /etc/fstab (which hasn't changed). > > After I changed /etc/fstab as well - everything worked fine :) > > I have not read this part of the handbook carefully (yet) but it seems to suggest a way of using two disks, where you transfer everything to the second disk (after you create a gm device on it) and then you reboot from this second disk. In this case, the instructions are correct: /mnt/etc/fstab will become /etc/fstab when you effectively boot from the second disk. One possible caveat is that you would have to possibly adjust your BIOS (or disk jumpers) so it actually boots from the second disk the second time. It seems your rebooted using the first disk. If what you are actually looking for is a simple way to create a RAID1 for a new installation, this is an absolutely excellent and quite simple article: http://www.onlamp.com/pub/a/bsd/2005/11/10/FreeBSD_Basics.html?page=1 I have used this concept on several installs, and was always successful.