From owner-freebsd-geom@FreeBSD.ORG Sat Apr 10 15:50:06 2010 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3CC161065673 for ; Sat, 10 Apr 2010 15:50:06 +0000 (UTC) (envelope-from gcubfg-freebsd-geom@m.gmane.org) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mx1.freebsd.org (Postfix) with ESMTP id EA5EC8FC0A for ; Sat, 10 Apr 2010 15:50:05 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1O0cwd-0002Zp-QR for freebsd-geom@freebsd.org; Sat, 10 Apr 2010 17:50:03 +0200 Received: from 78-1-170-229.adsl.net.t-com.hr ([78.1.170.229]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 10 Apr 2010 17:50:03 +0200 Received: from ivoras by 78-1-170-229.adsl.net.t-com.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 10 Apr 2010 17:50:03 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-geom@freebsd.org From: Ivan Voras Date: Sat, 10 Apr 2010 17:45:22 +0200 Lines: 30 Message-ID: References: <246759.92700.qm@web59906.mail.ac4.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 78-1-170-229.adsl.net.t-com.hr User-Agent: Thunderbird 2.0.0.21 (X11/20090612) In-Reply-To: <246759.92700.qm@web59906.mail.ac4.yahoo.com> Subject: Re: gmirror question 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: Sat, 10 Apr 2010 15:50:06 -0000 Martin Badie wrote: > Hi, > > I have a gmirror system (FreeBSD 6.3). Normally on seagate.com I can see that both disk (ST3250310AS and ST3250318AS) have same layout and the sizes are equal. I have built gmirror using http://people.freebsd.org/~rse/mirror/ what I want to ask is that ad6 was broken and i have replaced it with the new one (new ad6) both on the fdisk command output i see different sizes (ad6 is bigger than ad4). What i want to ask is that if i rebuild mirror using following command does that break OS ? > > # sysctl kern.geom.debugflags=16 > # gmirror forget gm0 > # dd if=/dev/zero of=/dev/ad6 bs=1k count=1 > # fdisk -BI ad6 > # bsdlabel -B -w ad6s1 auto > # gmirror insert gm0 /dev/ad6s1 > # gmirror status > > > > The disk details are like: > > grep ad4 /var/run/dmesg.boot > > ad4: 238475MB at ata2-master SATA150 > GEOM_MIRROR: Device gm0: provider ad4s1 detected. > GEOM_MIRROR: Device gm0: provider ad4s1 activated In other words, you are mirroring the first partition/slice from ad4 to the first partition of ad6? Apart from this being strange and sometimes useless, it will work as long as the sizes match. (the "new" drive/partition size can be larger than the old, but cannot be smaller)