From owner-freebsd-stable@FreeBSD.ORG Sun Jul 10 13:25:10 2005 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DD3D316A420 for ; Sun, 10 Jul 2005 13:25:10 +0000 (GMT) (envelope-from marius@newtrinity.zeist.de) Received: from newtrinity.zeist.de (newtrinity.zeist.de [217.24.217.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id E49B443D46 for ; Sun, 10 Jul 2005 13:25:09 +0000 (GMT) (envelope-from marius@newtrinity.zeist.de) Received: from newtrinity.zeist.de (localhost [127.0.0.1]) by newtrinity.zeist.de (8.12.11/8.12.11/ZEIST.DE) with ESMTP id j6ADP4X9065552; Sun, 10 Jul 2005 15:25:08 +0200 (CEST) (envelope-from marius@newtrinity.zeist.de) Received: (from marius@localhost) by newtrinity.zeist.de (8.12.11/8.12.10/Submit) id j6ADOwn2065551; Sun, 10 Jul 2005 15:24:58 +0200 (CEST) (envelope-from marius) Date: Sun, 10 Jul 2005 15:24:58 +0200 From: Marius Strobl To: Chris Hodgins Message-ID: <20050710152458.A63576@newtrinity.zeist.de> References: <63c3899e05070807487e0891de@mail.gmail.com> <20050708233854.GA64117@ratchet.nebcorp.com> <63c3899e05070909363077ca9c@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <63c3899e05070909363077ca9c@mail.gmail.com>; from christopher.hodgins@gmail.com on Sat, Jul 09, 2005 at 05:36:43PM +0100 X-AntiVirus: checked by AntiVir Milter (version: 1.1.0-7; AVE: 6.31.0.9; VDF: 6.31.0.178; host: newtrinity.zeist.de) Cc: Danny Howard , freebsd-stable@freebsd.org Subject: Re: gmirror, sparc and SCSI problems X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Jul 2005 13:25:11 -0000 On Sat, Jul 09, 2005 at 05:36:43PM +0100, Chris Hodgins wrote: > On 7/9/05, Danny Howard wrote: > > On Fri, Jul 08, 2005 at 03:48:52PM +0100, Chris Hodgins wrote: > > > Hi all, > > > > > > Experiencing a few difficulties setting up raid mirroring across two > > > SCSI disks on a sparc based server. Disk da0 contains a working and > > > recent install of FreeBSD 5-4 RELEASE and da1 is blank. We have been > > > following the guidance given in the first part of > > > http://people.freebsd.org/~rse/mirror/ but have hit numerous problems. > > > > Chris, > > > > These instructions are useful if you don't want to boot into recovery > > console to set things up offline. You can save a lot of fancy footwork > > if you have physical access and a CD-ROM, and don't mind about 15 > > minutes of downtime. My crib sheet is at > > http://dannyman.toldme.com/2005/01/24/freebsd-howto-gmirror-system/ . > > > > If it does work for you, plesae let me know. I'd be plased to hear that > > it can handle Sparc. :) > > > > Sincerely, > > -danny > > > > Danny, > > Thanks for the link. This was actually the first link we tried to get > working and after it failed to work we followed the link on the page > to http://people.freebsd.org/~rse/mirror/. > > Everything worked fine until we arrived at this step below. > # mount /dev/mirror/gm0s1a /mnt > > It seems that gmirror does not give us any partitions. A listing of > the mirror directory shows only the gm0 node even though da0 is > partitioned. When mounting the mirror it seems that /dev/mirror/gm0 > only represents the root partition. How can we get the mirror to > recognise the other partitions? > Sparc and sparc64 don't use slices so instead of fdisk(8) and bsdlabel(8) one just uses sunlabel(8) on sparc64. This should also mean that instead of `mount /dev/mirror/gm0s1a /mnt` one would use e.g. `mount /dev/mirror/gm0a /mnt` on sparc64. I don't know though if gmirror(8) needs to be made aware of this for e.g. `gmirror label` to do the right thing or maybe already is, i.e. whether it needs further changes in order to make it work on sparc64. Marius