From owner-freebsd-doc@FreeBSD.ORG Tue Jan 29 07:44:40 2008 Return-Path: Delivered-To: doc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C4ABB16A418 for ; Tue, 29 Jan 2008 07:44:40 +0000 (UTC) (envelope-from rcaputo@pobox.com) Received: from fmailhost05.isp.att.net (fmailhost05.isp.att.net [207.115.11.55]) by mx1.freebsd.org (Postfix) with ESMTP id AF95E13C46B for ; Tue, 29 Jan 2008 07:44:40 +0000 (UTC) (envelope-from rcaputo@pobox.com) Received: from eyrie.homenet (adsl-068-213-211-142.sip.bct.bellsouth.net[68.213.211.142]) by isp.att.net (frfwmhc05) with ESMTP id <20080129073218H0500cs5jje>; Tue, 29 Jan 2008 07:32:18 +0000 X-Originating-IP: [68.213.211.142] Received: from snv-webmail.corp.yahoo.com (abuse@localhost [127.0.0.1]) by eyrie.homenet (8.14.2/8.14.1) with ESMTP id m0T7WBK8084028 for ; Tue, 29 Jan 2008 02:32:14 -0500 (EST) (envelope-from rcaputo@pobox.com) Message-Id: From: Rocco Caputo To: doc@freebsd.org Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v915) Date: Tue, 29 Jan 2008 02:32:07 -0500 X-Mailer: Apple Mail (2.915) Cc: Subject: suggestion about fdisk/bsdlabel examples in handbook section 19.4 X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Jan 2008 07:44:40 -0000 Section 19.4 makes it sound scary to set up gmirror for a disk with multiple slices. It cautions: > It is possible to have separate partitions for other mount points; > however, this will increase the difficulty level ten fold due to > manual alteration of the bsdlabel(8) and fdisk(8) settings. And after the fdisk and bsdlabel examples, it notes: > Note: If multiple slices and partitions exist, the flags for the > previous two commands will require alteration. They must match the > slice and partition size of the other disk. Why can't the fdisk and bsdlabel examples copy the configuration of the original disk? For example: # fdisk -p /dev/da0 | fdisk -vBI -f - /dev/mirror/gm0 # bsdlabel /dev/da0s1 | bsdlabel -RB /dev/mirror/gm0s1 - Would those commands simplify gmirror setup? -- Rocco Caputo - rcaputo@pobox.com