From owner-freebsd-questions@FreeBSD.ORG Thu Sep 15 16:12:25 2005 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 9048016A41F for ; Thu, 15 Sep 2005 16:12:25 +0000 (GMT) (envelope-from gayn.winters@bristolsystems.com) Received: from bristolsystems.com (h-68-167-239-98.lsanca54.covad.net [68.167.239.98]) by mx1.FreeBSD.org (Postfix) with ESMTP id E2EF843D46 for ; Thu, 15 Sep 2005 16:12:24 +0000 (GMT) (envelope-from gayn.winters@bristolsystems.com) Received: from workdog ([192.168.1.201]) by bristolsystems.com (8.11.6/8.11.6) with ESMTP id j8FGCNn10548; Thu, 15 Sep 2005 09:12:23 -0700 From: "Gayn Winters" To: "'Jason King'" , Date: Thu, 15 Sep 2005 09:12:10 -0700 Message-ID: <02cd01c5ba10$3f3aac20$c901a8c0@workdog> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4024 In-Reply-To: <4329660E.5080601@informs.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Importance: Normal Cc: Subject: RE: Software RAID1 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: gayn.winters@bristolsystems.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Sep 2005 16:12:25 -0000 > -----Original Message----- > From: owner-freebsd-questions@freebsd.org > [mailto:owner-freebsd-questions@freebsd.org] On Behalf Of Jason King > Sent: Thursday, September 15, 2005 5:16 AM > To: freebsd-questions@freebsd.org > Subject: Software RAID1 > > > I am having trouble with THESE instructions: > http://people.freebsd.org/~rse/mirror/ > > I'm trying to create a RAID1 system with FreeBSD and the instructions > are not working. I'm getting this error: > > mail# gmirror insert gm0 /dev/da0 > Cannot access provider da0. > > The command is trying to add the first disk /dev/da0 to the > mirror gm0. > Has anyone else had success at creating a RAID1 mirror on FreeBSD. If > so, please let me know how you did it because these > instructions are not > working at all. > > Jason > _______________________________________________ Those instructions work fine, but you have to be very careful following them. (See below) An alternate way to use gmirror for software mirroring as is described in http://dannyman.toldme.com/2005/01/24/freebsd-howto-gmirror-system/ These work fine as well. Ralf's instructions, which you quote above, have the advantage of not needing to go into Fixit mode using the 5.4 boot CD (hence it can be executed remotely); however, it takes more typing and more reboots. If you use the latter, note that Ralf uses ATA drives ad0 and ad1, while it looks like you may have da0 and da1. You need to make the appropriate transliteration ad --> da very carefully, especially in the line for the boot loader where ad(1,a) --> da(1,a). This latter paper also outlines how to mirror at the slice, rather than the disk, level. One final hint: if you are playing around with gmirror on the same disks, you can get into a situation where one attempt has left gmirror information on the last sector of your disks. This will confuse gmirror, and you will have to load and use gmirror to clear it out. (or zero the entire disk with dd if=/dev/zero.) Read the man pages on gmirror in any case!!! Best of luck, -gayn