From owner-freebsd-geom@FreeBSD.ORG Fri Jan 27 16:40:36 2006 Return-Path: X-Original-To: freebsd-geom@freebsd.org Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 352B716A424 for ; Fri, 27 Jan 2006 16:40:36 +0000 (GMT) (envelope-from brenthostetler@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id A9D5844525 for ; Fri, 27 Jan 2006 16:07:17 +0000 (GMT) (envelope-from brenthostetler@gmail.com) Received: by zproxy.gmail.com with SMTP id 9so660006nzo for ; Fri, 27 Jan 2006 08:07:14 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=HQIYM9uY/ecZ8arnKUkwNfubo+eCzrb1HSZ6dPKsuhyWUO9It3i6ImMa5IKAQU9V8XujjQdDsezmEPyzj7AAm+Tv8Fxa17dMQLsjRlZusZZFwaRf/8heSrPa4h7ZKol3V+vIupWxBRN/wGfbJi+HWkTjED+buJ6Y+L+GLd8LStE= Received: by 10.36.194.8 with SMTP id r8mr2499439nzf; Fri, 27 Jan 2006 08:07:14 -0800 (PST) Received: by 10.36.91.13 with HTTP; Fri, 27 Jan 2006 08:07:14 -0800 (PST) Message-ID: Date: Fri, 27 Jan 2006 08:07:14 -0800 From: Brent Hostetler To: Pawel Jakub Dawidek In-Reply-To: <20060127144742.GB789@garage.freebsd.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20060127144742.GB789@garage.freebsd.pl> Cc: freebsd-geom@freebsd.org Subject: Re: Setup problem with multiple mirrored devices X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Jan 2006 16:40:37 -0000 On 1/27/06, Pawel Jakub Dawidek wrote: > Which FreeBSD version do you use? > It should work fine with 6.0. If you cannot upgrade, you need to use -h > option, eventually you can create slices one sector smaller so they > don't end at the same sector as disk. files # uname -a FreeBSD files.hostetler.ws 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Thu Nov 3 09:36:13 UTC 2005 =20 root@x64.samsco.home:/usr/obj/usr/src/sys/GENERIC i386 > > BTW. Don't create partitions on adXsX if you mirror slices. Instead > create them on mirror provider. Since it kept mixing up ad6 for ad6s1 I was trying to save a sector in the label for the meta-data.. stupid.. I know. I would think I could do this: ( this is what you mean correct? ) files# diskinfo ad4 ad4 512 160041885696 312581808 310101 16 63 sector size is 312581808 so make slice one sector smaller. files# ( echo "p 1 165 63 312581807"; echo "a 1" ) | fdisk -v -f- -i /dev/a= d4 files# ( echo "p 1 165 63 312581807"; echo "a 1" ) | fdisk -v -f- -i /dev/a= d6 files# fdisk -s ad4 /dev/ad4: 310101 cyl 16 hd 63 sec Part Start Size Type Flags 1: 63 312581745 0xa5 0x80 files# fdisk -s ad6 /dev/ad6: 310101 cyl 16 hd 63 sec Part Start Size Type Flags 1: 63 312581745 0xa5 0x80 files# files# gmirror label -v -n -b round-robin M2 ad4s1 files# gmirror insert M2 ad6s1 files# gmirror status Name Status Components mirror/gmroot COMPLETE ad0s1 ad2s1 mirror/M1 COMPLETE ad0s2 ad2s2 mirror/M2 DEGRADED ad4s1 ad6 files# files# gmirror deactivate M2 ad6 files# gmirror clear ad6 files# gmirror forget M2 files# gmirror insert -h M2 ad6s1 files# gmirror status Name Status Components mirror/gmroot COMPLETE ad0s1 ad2s1 mirror/M1 COMPLETE ad0s2 ad2s2 mirror/M2 DEGRADED ad4s1 ad6s1 So whats going on?? It's like gmirror cant decide whether the meta is for provider ad6 or ad6s1. It also does not matter order I bring the mirror up in. If I start with ad6 then it is ad4 that has the issues. Please Advise... I shouldnt have to hardcode the provider name correct? Thanks for your previous quick response! :) Brent.