From owner-freebsd-questions@FreeBSD.ORG Fri Jul 31 13:10:52 2009 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7C3331065673 for ; Fri, 31 Jul 2009 13:10:52 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: from mail-yw0-f181.google.com (mail-yw0-f181.google.com [209.85.211.181]) by mx1.freebsd.org (Postfix) with ESMTP id 368828FC15 for ; Fri, 31 Jul 2009 13:10:52 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: by ywh11 with SMTP id 11so1709715ywh.14 for ; Fri, 31 Jul 2009 06:10:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=/YYrVM/HXIhUXhoASxy2guEqqSttVKZH2ShuDd9vaKs=; b=nJIlTOLLwPD33NQOt81kt/jKpcbXZfxRJFhex6qmwQ2L7mFU6gsKX/+eKIx2IVx9sP PzhjU2h9OeH0BU1OZCTNBesPjxtKXWI2aqFlBpgiBoE4Z2X+0jFooi8oXqLd0vhdGj45 Tf6eLfDJTjam3ilhI5aGbcUw316RaKOcTz+oM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=FIHqvyNgPW5qBc1ih10ZgxoGmTUS3gtIUJVMZqQw13PWpZ4+QQq7Nl12VLna1vwBfg eyOY71LTqRNMqznaONhACwu+iR3L4w5+rCKLdyn72aXJlIw6qVfIZsrpbogwKAOVJuzd dJwSIPLijwYI/RSljA8xb+bXPAyK6FzhSRXNY= MIME-Version: 1.0 Received: by 10.151.51.4 with SMTP id d4mr4544354ybk.157.1249045851671; Fri, 31 Jul 2009 06:10:51 -0700 (PDT) In-Reply-To: <41b95770907310324j397b5810v6793c9c314f8ce61@mail.gmail.com> References: <41b95770907310324j397b5810v6793c9c314f8ce61@mail.gmail.com> Date: Fri, 31 Jul 2009 08:10:51 -0500 Message-ID: <6201873e0907310610x4c6e77d8n43ecca075475ad6d@mail.gmail.com> From: Adam Vande More To: Grzegorz Danecki Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: questions@freebsd.org Subject: Re: gmirror on different disks 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: Fri, 31 Jul 2009 13:10:52 -0000 On Fri, Jul 31, 2009 at 5:24 AM, Grzegorz Danecki wrote: > Hello everybody! > > I'm just wondering, I had gmirror with two disks: > > Master: ad0 Serial ATA II > Master: ad2 Serial ATA II > > unfortunately ad0 failed today, leaving me with degraded array and ad0 > offline. > > I did > > # gmirror forget gm0, then shutdown, ad0 was replaced with: > > ad0: 152626MB at ata0-master SATA300 > > with different firmware I think. > > Then gmirror insert gm0 /dev/ad0 > > (...) > Jul 31 09:55:46 julia kernel: GEOM_MIRROR: Device gm0: rebuilding provider > ad0 finished. > Jul 31 09:55:46 julia kernel: GEOM_MIRROR: Device gm0: provider ad0 > activated. > > But the disk is a little bit smaller: > > 1. Name: mirror/gm0 > Mediasize: 160040803328 (149G) > Sectorsize: 512 > Mode: r5w5e6 > Consumers: > 1. Name: ad2 > Mediasize: 160041885696 (149G) > Sectorsize: 512 > Mode: r1w1e1 > State: ACTIVE > Priority: 0 > Flags: DIRTY > GenID: 1 > SyncID: 1 > ID: 3791030614 > 2. Name: ad0 > Mediasize: 160040803840 (149G) > Sectorsize: 512 > Mode: r1w1e1 > State: ACTIVE > Priority: 0 > Flags: DIRTY > GenID: 1 > SyncID: 1 > ID: 2477089776 > > # gmirror status > Name Status Components > mirror/gm0 COMPLETE ad2 > ad0 > > so, it looks fine. > > Can I expect any problems now because of different sizes? Any problems when > RAID will be almost full? > I mean - should I make the RAID once again with exactly the same drives, or > can I leave it as it is right now? > > Thanks in advance! > > Drives don't matter to gmirror as long as they are at least big enough. You may get better performance with identical drives however. -- Adam Vande More