From owner-freebsd-questions@FreeBSD.ORG Tue May 16 15:26:37 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CB5AC16A443 for ; Tue, 16 May 2006 15:26:37 +0000 (UTC) (envelope-from nagylzs@freemail.hu) Received: from smtp.enternet.hu (smtp.enternet.hu [62.112.192.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6AA6543D45 for ; Tue, 16 May 2006 15:26:37 +0000 (GMT) (envelope-from nagylzs@freemail.hu) Received: from [62.68.187.58] (helo=[172.16.0.43]) by smtp.enternet.hu with esmtpa (Exim 4) id 1Fg1RS-000CfK-L4; Tue, 16 May 2006 17:26:34 +0200 Message-ID: <4469EF54.9040802@freemail.hu> Date: Tue, 16 May 2006 17:27:16 +0200 From: =?ISO-8859-1?Q?Nagy_L=E1szl=F3_Zsolt?= User-Agent: Thunderbird 1.5.0.2 (Windows/20060308) MIME-Version: 1.0 To: gayn.winters@bristolsystems.com, freebsd-questions@freebsd.org References: <002f01c675d8$47c61f30$6501a8c0@workdog> In-Reply-To: <002f01c675d8$47c61f30$6501a8c0@workdog> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Re: gmirror and partitioning 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: Tue, 16 May 2006 15:26:38 -0000 > Laszlo, > > You're making gmirror way too difficult. In short, install FreeBSD with > however many partitions you want, then install gmirror and replicate > your disk to the second disk. > > The standard howto documents are: > > http://dannyman.toldme.com/2005/01/24/freebsd-howto-gmirror-system/ > > http://www.onlamp.com/pub/a/bsd/2005/11/10/FreeBSD_Basics.html > > http://people.freebsd.org/~rse/mirror/ > > I've used Danny's and Ralf's (the first and third). Danny's is simpler, > but Ralf's has the advantage that it can be done remotely. Danny's > website now recommends Dru's (the second). You may want to try that > first. > > Let us know how it goes, > I tried the second link, as you suggested. It does not work for me. I have to identical disks on /dev/ad10 and /dev/ad8. I have installed FreeBSD on /dev/ad10 and I initialized gmirror on that disk. Here is what df says: backupserver# df -h Filesystem Size Used Avail Capacity Mounted on /dev/mirror/gm0s1a 4.8G 34M 4.4G 1% / devfs 1.0K 1.0K 0B 100% /dev /dev/mirror/gm0s1e 9.7G 12K 8.9G 0% /tmp /dev/mirror/gm0s1f 115G 261M 106G 0% /usr /dev/mirror/gm0s1d 9.7G 232K 8.9G 0% /var backupserver# swapinfo Device 1K-blocks Used Avail Capacity /dev/mirror/gm0s1b 5242880 0 5242880 0% backupserver# Then I try to add the ad8 device: backupserver# gmirror insert gm0 /dev/ad8 Provider ad8 too small. backupserver# But of course this is not true. ad8 and ad10 are identical 160GB SATA disks. What am I doing wrong? Please help. Laszlo