From owner-freebsd-fs@FreeBSD.ORG Fri Dec 7 05:08:38 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 6AEAAB8C for ; Fri, 7 Dec 2012 05:08:38 +0000 (UTC) (envelope-from randy@psg.com) Received: from ran.psg.com (ran.psg.com [IPv6:2001:418:1::36]) by mx1.freebsd.org (Postfix) with ESMTP id 473DC8FC08 for ; Fri, 7 Dec 2012 05:08:38 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=ryuu.psg.com.psg.com) by ran.psg.com with esmtp (Exim 4.80.1 (FreeBSD)) (envelope-from ) id 1TgqAv-0007PT-1n for freebsd-fs@freebsd.org; Fri, 07 Dec 2012 05:08:37 +0000 Date: Fri, 07 Dec 2012 14:08:36 +0900 Message-ID: From: Randy Bush To: FreeBSD FS Subject: moving to gpart mirroring, one drive at a time User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/22.3 Mule/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII 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:08:38 -0000 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? randy