From owner-freebsd-questions@FreeBSD.ORG Fri Sep 28 02:41:35 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8972A16A468 for ; Fri, 28 Sep 2007 02:41:35 +0000 (UTC) (envelope-from lavalamp@spiritual-machines.org) Received: from mx00.pub.collaborativefusion.com (mx00.pub.collaborativefusion.com [206.210.89.199]) by mx1.freebsd.org (Postfix) with ESMTP id 6F57B13C459 for ; Fri, 28 Sep 2007 02:41:35 +0000 (UTC) (envelope-from lavalamp@spiritual-machines.org) Received: from [192.168.1.6] (pool-71-245-176-242.pitbpa.fios.verizon.net [71.245.176.242]) (AUTH: LOGIN seklecki, TLS: TLSv1/SSLv3,128bits,RC4-MD5) by wingspan with esmtp; Thu, 27 Sep 2007 22:41:33 -0400 id 00056425.46FC69DE.000120DC From: "Brian A. Seklecki" To: tradigan@newrevolutions.net In-Reply-To: <46934.208.40.168.12.1182968214.squirrel@www.newrevolutions.net> References: <46934.208.40.168.12.1182968214.squirrel@www.newrevolutions.net> Date: Thu, 27 Sep 2007 19:09:35 -0400 Message-Id: <1190934575.2982.1.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit X-Mailer: Evolution 2.10.3 (2.10.3-4.fc7) Cc: freebsd-questions@freebsd.org Subject: Re: gmirror 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, 28 Sep 2007 02:41:35 -0000 The size colum can be human readable number (ex, "5g") and the offset can be the name of the previous partition. For the offset and size of the first and last partitions respectively use "*". Read the disklabel(8) man page for more details -- it is actually a real well written one. I wouldn't worry about exact replication -- the sector sizes and total sectors of the logical gmirror volume and the underlying phyiscal disk will always be different -- that's the nature of LVM. Just make them relatively close and match up the letters. ~~BAS On Wed, 2007-06-27 at 14:16 -0400, tradigan@newrevolutions.net wrote: > Quick question, I am configuring gmirror to mirror certain slices on my > hard drives.. I want to mirror /dev/ad0s1 (700M) to another drive.. I am > fine with configuring gmirror and getting it running but I am unsure of > how I create the BSD slices with bsdlabel -e.. > > When I do a bsdlabel -e /dev/ad0s1 I get: > > # /dev/ad0s1: > 8 partitions: > # size offset fstype [fsize bsize bps/cpg] > a: 409600 0 4.2BSD 2048 16384 25608 > c: 1429722 0 unused 0 0 # "raw" part, > don't edit > d: 1020122 409600 4.2BSD 2048 16384 63760 > > When I initially create the mirror on the backup disk, I run a bsdlabel -e > /dev/mirror/gm0s1 and this is what it shows: > > # /dev/mirror/gm0s1: > 8 partitions: > # size offset fstype [fsize bsize bps/cpg] > a: 1429705 16 unused 0 0 > c: 1429721 0 unused 0 0 # "raw" part, > don't edit > > My initial instinct was to mirror the bsdlabel output from ad0s1 but with > just the 16 offset for the 'a' slice coming out with: > > # /dev/mirror/gm0s1: > 8 partitions: > # size offset fstype [fsize bsize bps/cpg] > a: 409584 16 4.2BSD 2048 16384 25608 > c: 1429721 0 unused 0 0 # "raw" part, > don't edit > d: 1020122 409584 4.2BSD 2048 16384 63760 > > Is my assumption correct? Or am I missing something here? > > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > > > > > >