From owner-freebsd-questions@FreeBSD.ORG Sat Aug 27 01:33:44 2011 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 5B78B106566C for ; Sat, 27 Aug 2011 01:33:44 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id 1C48F8FC08 for ; Sat, 27 Aug 2011 01:33:43 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.5/8.14.5) with ESMTP id p7R19MZn002227 for ; Fri, 26 Aug 2011 19:09:22 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.5/8.14.5/Submit) with ESMTP id p7R19Llk002224 for ; Fri, 26 Aug 2011 19:09:22 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Fri, 26 Aug 2011 19:09:21 -0600 (MDT) From: Warren Block To: questions@freebsd.org Message-ID: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (wonkity.com [127.0.0.1]); Fri, 26 Aug 2011 19:09:22 -0600 (MDT) Cc: Subject: glabel, gmirror, and gpart 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: Sat, 27 Aug 2011 01:33:44 -0000 Trying to use labeled devices and filesystems where possible, and adding gmirror into the mix. (This is with 8-STABLE, i386.) glabel two disks "primary" and "secondary". gmirror the two: gmirror label -v -b round-robin data /dev/label/primary /dev/label/secondary Use gpart to create *and label* partitions on the mirror device: => 34 1465149099 mirror/data GPT (698G) 34 64 1 gpboot (32k) 98 1950 - free - (975k) 2048 4194304 2 gprootfs (2.0G) 4196352 8388608 3 gpswap (4.0G) 12584960 16777216 4 gpvarfs (8.0G) 29362176 16777216 5 gptmpfs (8.0G) 46139392 251658240 6 gpusrfs (120G) 297797632 419430400 7 gpotherfs (200G) 717228032 747921101 - free - (356G) Then install/restore as usual, refer to /dev/gpt/labelname in /etc/fstab. So far, it works. My concerns are with correctness, doing it right the first time to avoid unpleasant surprises later. Question 1 is whether using slashes in labels is going to be a problem later? gpart can find /dev/mirror/data and mirror/data, but not just "data". gmirror status shows the, uh, path-like labels in both the Name and the Components: Name Status Components mirror/data DEGRADED label/primary (ACTIVE) label/secondary (SYNCHRONIZING, 23%) Question 2 is maybe simpler. On boot, it shows this: gptboot: invalid backup GPT header I can speculate on what causes that (whether the various g-things use the absolute last block of the device, or the last block of their area and provide their total minus one block; or it could be that gptboot is seeing the disk rather than the gmirror device). Can it be fixed?