From owner-freebsd-fs@FreeBSD.ORG Fri Dec 7 05:15:56 2012 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 54197D27 for ; Fri, 7 Dec 2012 05:15:56 +0000 (UTC) (envelope-from edho@myconan.net) Received: from mail-we0-f182.google.com (mail-we0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id D212B8FC0C for ; Fri, 7 Dec 2012 05:15:55 +0000 (UTC) Received: by mail-we0-f182.google.com with SMTP id u54so52636wey.13 for ; Thu, 06 Dec 2012 21:15:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=myconan.net; s=myconan; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=RL2KIlv+L7I5QCIwgWIt9EcjgpErsBjht5njVVka8oU=; b=DwRSt1IO40MWXl19XPLLTN0zI+wYPBX9Jv5ng4iAEjARm0eOigf/oYIzToQ8hduCtv r1GSNpOinEXA0CqaNypvJdG4cUwiYjzTR5Ub5/zKAtwBfkdSAZkLY3VcRtFzBpS2gt7Z FGzw3f6I2PMnlTcUioMvNH5o2aCqmlC4aQAKM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:x-gm-message-state; bh=RL2KIlv+L7I5QCIwgWIt9EcjgpErsBjht5njVVka8oU=; b=lQIyz3nxOLVFSdw1X1a5nxjzZSuthq6BTEwmZIgS474EFU8DdFOPR2aM8Cr0FTvfJh Y20AqnNXFRVX3TxgBx2HbmOYLNLIavh/zBb3yLpNPvL2faYWhJ7TjWBOQsZTrtygv0M6 ybRofubNTo5Rdvrlvd9dvVGNXv5CqRysE0Zp0gx0BHIyYTGb76oG/txJ9quolVxs6AS3 uvQfKEsn+hOpTJfnIsSnn/1YLTl2BLJC+74SusoP8bwbFiiaeGDzALJfgWtdTGC2d5V2 v4koSnC5msVr+WXzuDiUdHBcyoU1pkFM//dvSbryTptWDlvhDZSbaD/l2B4geQYaK+6I V6mw== Received: by 10.180.88.71 with SMTP id be7mr6293198wib.17.1354857353795; Thu, 06 Dec 2012 21:15:53 -0800 (PST) MIME-Version: 1.0 Received: by 10.194.84.69 with HTTP; Thu, 6 Dec 2012 21:15:23 -0800 (PST) In-Reply-To: References: From: Edho Arief Date: Fri, 7 Dec 2012 12:15:23 +0700 Message-ID: Subject: Re: moving to gpart mirroring, one drive at a time To: Randy Bush Content-Type: text/plain; charset=UTF-8 X-Gm-Message-State: ALoCoQkP21QkOk1/zY3Lr7dhn8gvadVI1hSXCKsAmp+E+Gexb2xSle3RIv4VPeVw9NeZA4sCsvNf Cc: FreeBSD FS X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Dec 2012 05:15:56 -0000 On Fri, Dec 7, 2012 at 12:08 PM, Randy Bush wrote: > i have an existing old-style glabel gmirror. a drive, ada0 failed. we > inserted a new drive as ada0. as the old drive is a teensie 80g drive > and the new is a 500g, we figured to create gm1, dump/restore to it, and > then swap out the old working 80g for another 500 and mirror away. > > so i went to the handbook. 20.4.3 Creating a Mirror with an Existing > Drive does not seem appropriate as it assumes no source mirror and equal > sized drives. > > so i figured to do the dance of 20.4.2 Creating a Mirror with Two New > Disks, but with one disk and then mirror back. but ... > > # gmirror label -v gm1 /dev/ada0 > Metadata value stored on /dev/ada0. > Done. > > # gpart create -s MBR mirror/gm1 > mirror/gm1 created > > # gpart show mirror/gm1 > => 63 976773104 mirror/gm1 MBR (465G) > 63 976773104 - free - (465G) > > # gpart create -s BSD mirror/gm1s1 > gpart: arg0 'mirror/gm1s1': Invalid argument > > whoopsie. > > clue? > ...create the partition first? gpart add -t freebsd mirror/gm1