From owner-freebsd-geom@FreeBSD.ORG Mon Sep 10 08:11:49 2007 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1D97A16A421 for ; Mon, 10 Sep 2007 08:11:49 +0000 (UTC) (envelope-from antiduh@csh.rit.edu) Received: from whitefox.csh.rit.edu (whitefox.csh.rit.edu [129.21.60.19]) by mx1.freebsd.org (Postfix) with ESMTP id C8D6313C461 for ; Mon, 10 Sep 2007 08:11:48 +0000 (UTC) (envelope-from antiduh@csh.rit.edu) Received: from localhost (localhost [127.0.0.1]) by whitefox.csh.rit.edu (Postfix) with ESMTP id E3B121142F for ; Mon, 10 Sep 2007 03:53:06 -0400 (EDT) X-Virus-Scanned: amavisd-new at csh.rit.edu Received: from whitefox.csh.rit.edu ([127.0.0.1]) by localhost (whitefox.csh.rit.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YvC6s+dPas4f for ; Mon, 10 Sep 2007 03:52:52 -0400 (EDT) Received: from corrugated-real.rochester.rr.com (cpe-69-207-182-28.rochester.res.rr.com [69.207.182.28]) by whitefox.csh.rit.edu (Postfix) with ESMTP id 261271143B for ; Mon, 10 Sep 2007 03:52:52 -0400 (EDT) Date: Mon, 10 Sep 2007 03:52:46 -0400 To: freebsd-geom@freebsd.org From: "Kevin Thompson" Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-15 MIME-Version: 1.0 Content-Transfer-Encoding: Quoted-Printable Message-ID: User-Agent: Opera Mail/9.50 (Win32) Subject: geom label detaching partway through boot X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Sep 2007 08:11:49 -0000 I have a mildy complicated geom setup. Basically booting off of a geom = raid0+1. da0 --label-->geom0 da1 --label-->geom1 da2 --label-->geom2 da3 --label-->geom3 label/geom0s1a --|--mirror-->/dev/mirror/boot label/geom1s1a --| label/geom2s1a --| label/geom3s1a --| label/geom0s1d --|--stripe-->/dev/stripe/st0 --|--mirror-->/dev/mirror/g= m0 label/geom1s1d --| | | label/geom2s1d --|--stripe-->/dev/stripe/st1 --| label/geom3s1d --| mirror/boot --> / mirror/gm0s1d --> /usr mirror/gm0s1e --> /var mirror/gm0s1f --> /tmp label/geom0s1b --> swap label/geom1s1b --> swap label/geom2s1b --> swap label/geom3s1b --> swap As you can see below, it looks like the label, mirror and stripe classes are fighting, ending up with label losing because mirror and stripe are going through the direct da devices instead of the label/geomX devices. They were originally created referencing label/geomX. End result, the /dev/label/geomX devices aren't there at boot and so my swap partitions can't mount. Sure, I could work around it by using the direct da devices instead, but that sort of defeats the purpose of geom label. --Kevin Thompson da0: 1024MB (2097152 512 byte sectors: 128H 32S/T 512C) da1 at bt0 bus 0 target 1 lun 0 da1: Fixed Direct Access SCSI-2 device da1: 3.300MB/s transfers, Tagged Queueing Enabled da1: 1024MB (2097152 512 byte sectors: 128H 32S/T 512C) da2 at bt0 bus 0 target 2 lun 0 da2: Fixed Direct Access SCSI-2 device da2: 3.300MB/s transfers, Tagged Queueing Enabled da2: 1024MB (2097152 512 byte sectors: 128H 32S/T 512C) da3 at bt0 bus 0 target 3 lun 0 da3: Fixed Direct Access SCSI-2 device da3: 3.300MB/s transfers, Tagged Queueing Enabled da3: 1024MB (2097152 512 byte sectors: 128H 32S/T 512C) GEOM_LABEL: Label for provider da0 is label/geom0. GEOM_LABEL: Label for provider da1 is label/geom1. GEOM_LABEL: Label for provider da2 is label/geom2. GEOM_LABEL: Label for provider da3 is label/geom3. GEOM_MIRROR: Device boot created (id=3D2370896177). GEOM_MIRROR: Device boot: provider da0s1a detected. GEOM_STRIPE: Device st0 created (id=3D2811180181). GEOM_STRIPE: Disk da0s1d attached to st0. GEOM_MIRROR: Device boot: provider da1s1a detected. GEOM_STRIPE: Disk da1s1d attached to st0. GEOM_STRIPE: Device st0 activated. GEOM_MIRROR: Device boot: provider da2s1a detected. GEOM_STRIPE: Device st1 created (id=3D2904908189). GEOM_STRIPE: Disk da2s1d attached to st1. GEOM_MIRROR: Device boot: provider da3s1a detected. GEOM_MIRROR: Device boot: provider da1s1a activated. GEOM_MIRROR: Device boot: provider da3s1a activated. GEOM_MIRROR: Device boot: provider da2s1a activated. GEOM_MIRROR: Device boot: provider da0s1a activated. GEOM_MIRROR: Device boot: provider mirror/boot launched. GEOM_STRIPE: Disk da3s1d attached to st1. GEOM_STRIPE: Device st1 activated. GEOM_LABEL: Label label/geom0 removed. GEOM_LABEL: Label label/geom1 removed. GEOM_MIRROR: Device gm0 created (id=3D1645009057). GEOM_MIRROR: Device gm0: provider stripe/st0 detected. GEOM_LABEL: Label label/geom2 removed. GEOM_LABEL: Label label/geom3 removed. GEOM_MIRROR: Device gm0: provider stripe/st1 detected. GEOM_MIRROR: Device gm0: provider stripe/st1 activated. GEOM_MIRROR: Device gm0: provider stripe/st0 activated. GEOM_MIRROR: Device gm0: provider mirror/gm0 launched. From owner-freebsd-geom@FreeBSD.ORG Mon Sep 10 08:43:10 2007 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2491816A418 for ; Mon, 10 Sep 2007 08:43:10 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (arm132.internetdsl.tpnet.pl [83.17.198.132]) by mx1.freebsd.org (Postfix) with ESMTP id 3B17F13C442 for ; Mon, 10 Sep 2007 08:43:08 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id C28DF45E97; Mon, 10 Sep 2007 10:43:06 +0200 (CEST) Received: from localhost (pjd.wheel.pl [10.0.1.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id CC1D145684; Mon, 10 Sep 2007 10:43:00 +0200 (CEST) Date: Mon, 10 Sep 2007 10:41:43 +0200 From: Pawel Jakub Dawidek To: Kevin Thompson Message-ID: <20070910084143.GA18587@garage.freebsd.pl> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="J/dobhs11T7y2rNN" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 7.0-CURRENT i386 X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-5.9 required=3.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.0.4 Cc: freebsd-geom@freebsd.org Subject: Re: geom label detaching partway through boot X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Sep 2007 08:43:10 -0000 --J/dobhs11T7y2rNN Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Sep 10, 2007 at 03:52:46AM -0400, Kevin Thompson wrote: > As you can see below, it looks like the label, mirror and > stripe classes are fighting, ending up with label losing > because mirror and stripe are going through the direct da > devices instead of the label/geomX devices. They were > originally created referencing label/geomX. Which FreeBSD version is this? --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --J/dobhs11T7y2rNN Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFG5QNHForvXbEpPzQRAkSgAJ9gknxymrVtzvakQRz/Q5O6GFeQJACgh86V fTsSCEM1bE4DbNIqibDswIw= =+wAh -----END PGP SIGNATURE----- --J/dobhs11T7y2rNN-- From owner-freebsd-geom@FreeBSD.ORG Mon Sep 10 11:08:04 2007 Return-Path: Delivered-To: freebsd-geom@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E9A8216A496 for ; Mon, 10 Sep 2007 11:08:04 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id A7F2513C4CA for ; Mon, 10 Sep 2007 11:08:04 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l8AB84NE017243 for ; Mon, 10 Sep 2007 11:08:04 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l8AB83Cc017239 for freebsd-geom@FreeBSD.org; Mon, 10 Sep 2007 11:08:03 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 10 Sep 2007 11:08:03 GMT Message-Id: <200709101108.l8AB83Cc017239@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-geom@FreeBSD.org Cc: Subject: Current problem reports assigned to you X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Sep 2007 11:08:05 -0000 Current FreeBSD problem reports Critical problems Serious problems S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/73177 geom kldload geom_* causes panic due to memory exhaustion o kern/76538 geom [gbde] nfs-write on gbde partition stalls and continue o kern/83464 geom [geom] [patch] Unhandled malloc failures within libgeo o kern/84556 geom [geom] GBDE-encrypted swap causes panic at shutdown o kern/87544 geom [gbde] mmaping large files on a gbde filesystem deadlo o kern/89102 geom [geom_vfs] [panic] panic when forced unmount FS from u o bin/90093 geom fdisk(8) incapable of altering in-core geometry o kern/90582 geom [geom_mirror] [panic] Restore cause panic string (ffs_ o kern/98034 geom [geom] dereference of NULL pointer in acd_geom_detach o kern/104389 geom [geom] [patch] sys/geom/geom_dump.c doesn't encode XML o kern/113419 geom [geom] geom fox multipathing not failing back o misc/113543 geom [geom] [patch] geom(8) utilities don't work inside the o kern/113957 geom [gmirror] gmirror is intermittently reporting a degrad o kern/115572 geom [gbde] gbde partitions fail at 28bit/48bit LBA address 14 problems total. Non-critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- o bin/78131 geom gbde "destroy" not working. o kern/79251 geom [2TB] newfs fails on 2.6TB gbde device o kern/94632 geom [geom] Kernel output resets input while GELI asks for f kern/105390 geom [geli] filesystem on a md backed by sparse file with s o kern/107707 geom [geom] [patch] add new class geom_xbox360 to slice up p bin/110705 geom gmirror control utility does not exit with correct exi o kern/113837 geom [geom] unable to access 1024 sector size storage o kern/113885 geom [geom] [patch] improved gmirror balance algorithm o kern/114532 geom GEOM_MIRROR shows up in kldstat even if compiled in th o kern/115547 geom [geom] [patch] for GEOM Eli to get password from stdin 10 problems total. From owner-freebsd-geom@FreeBSD.ORG Mon Sep 10 17:32:37 2007 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E286416A468 for ; Mon, 10 Sep 2007 17:32:37 +0000 (UTC) (envelope-from antiduh@csh.rit.edu) Received: from angst.csh.rit.edu (angst.csh.rit.edu [129.21.60.148]) by mx1.freebsd.org (Postfix) with ESMTP id 9AB7613C45A for ; Mon, 10 Sep 2007 17:32:37 +0000 (UTC) (envelope-from antiduh@csh.rit.edu) Received: from angst.csh.rit.edu (localhost [127.0.0.1]) by angst.csh.rit.edu (Postfix) with ESMTP id D9552B850; Mon, 10 Sep 2007 13:32:36 -0400 (EDT) Received: from 147.177.179.52 (SquirrelMail authenticated user antiduh) by angst.csh.rit.edu with HTTP; Mon, 10 Sep 2007 13:32:36 -0400 (EDT) Message-ID: <1131.147.177.179.52.1189445556.squirrel@angst.csh.rit.edu> In-Reply-To: <20070910084143.GA18587@garage.freebsd.pl> References: <20070910084143.GA18587@garage.freebsd.pl> Date: Mon, 10 Sep 2007 13:32:36 -0400 (EDT) From: "Kevin Thompson" To: "Pawel Jakub Dawidek" User-Agent: SquirrelMail/1.4.10a MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Cc: freebsd-geom@freebsd.org Subject: Re: geom label detaching partway through boot X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Sep 2007 17:32:38 -0000 > On Mon, Sep 10, 2007 at 03:52:46AM -0400, Kevin Thompson wrote: >> As you can see below, it looks like the label, mirror and >> stripe classes are fighting, ending up with label losing >> because mirror and stripe are going through the direct da >> devices instead of the label/geomX devices. They were >> originally created referencing label/geomX. > > Which FreeBSD version is this? > > -- > Pawel Jakub Dawidek http://www.wheel.pl > pjd@FreeBSD.org http://www.FreeBSD.org > FreeBSD committer Am I Evil? Yes, I Am! > FreeBSD 6.2-RELEASE i386 32 bit straight from ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/ISO-IMAGES/6.2/ (as of yesterday). I can provide the rest of the boot log, or heck even ssh access if you'd like (it's a test vmware). --Kevin Thompson From owner-freebsd-geom@FreeBSD.ORG Mon Sep 10 17:57:04 2007 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4AEA316A419 for ; Mon, 10 Sep 2007 17:57:04 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (arm132.internetdsl.tpnet.pl [83.17.198.132]) by mx1.freebsd.org (Postfix) with ESMTP id C1E6613C468 for ; Mon, 10 Sep 2007 17:57:03 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id C997F456AB; Mon, 10 Sep 2007 19:57:01 +0200 (CEST) Received: from localhost (154.81.datacomsa.pl [195.34.81.154]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id 64D2D45685; Mon, 10 Sep 2007 19:56:57 +0200 (CEST) Date: Mon, 10 Sep 2007 19:55:39 +0200 From: Pawel Jakub Dawidek To: Kevin Thompson Message-ID: <20070910175539.GB1103@garage.freebsd.pl> References: <20070910084143.GA18587@garage.freebsd.pl> <1131.147.177.179.52.1189445556.squirrel@angst.csh.rit.edu> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="NDin8bjvE/0mNLFQ" Content-Disposition: inline In-Reply-To: <1131.147.177.179.52.1189445556.squirrel@angst.csh.rit.edu> User-Agent: Mutt/1.4.2.3i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 7.0-CURRENT i386 X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-2.6 required=3.0 tests=BAYES_00 autolearn=ham version=3.0.4 Cc: freebsd-geom@freebsd.org Subject: Re: geom label detaching partway through boot X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Sep 2007 17:57:04 -0000 --NDin8bjvE/0mNLFQ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Sep 10, 2007 at 01:32:36PM -0400, Kevin Thompson wrote: > > On Mon, Sep 10, 2007 at 03:52:46AM -0400, Kevin Thompson wrote: > >> As you can see below, it looks like the label, mirror and > >> stripe classes are fighting, ending up with label losing > >> because mirror and stripe are going through the direct da > >> devices instead of the label/geomX devices. They were > >> originally created referencing label/geomX. > > > > Which FreeBSD version is this? > > > > -- > > Pawel Jakub Dawidek http://www.wheel.pl > > pjd@FreeBSD.org http://www.FreeBSD.org > > FreeBSD committer Am I Evil? Yes, I Am! > > >=20 > FreeBSD 6.2-RELEASE i386 32 bit straight from > ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/ISO-IMAGES/6.2/ (as of > yesterday). Ah, version is not important actually. The problem is that both /dev/da0s1a and /dev/label/geom0s1a have the same size and the same metadata. Because you use glabeled providers with your mirror/stripe, I suggest using -h option for 'gstripe/gmirror label'. This will store component's name in metadata, eg. label/geom0s1a and won't try to use da0s1a anymore. --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --NDin8bjvE/0mNLFQ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFG5YUbForvXbEpPzQRAjRXAKDip41RE7VR1ejxVq/FMe0BGw43sACcCOOk K8MON8L8zgImTHHei+BzmwE= =7Bhf -----END PGP SIGNATURE----- --NDin8bjvE/0mNLFQ-- From owner-freebsd-geom@FreeBSD.ORG Tue Sep 11 04:04:23 2007 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E77CA16A417 for ; Tue, 11 Sep 2007 04:04:23 +0000 (UTC) (envelope-from gcubfg-freebsd-geom@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 9F1B713C457 for ; Tue, 11 Sep 2007 04:04:23 +0000 (UTC) (envelope-from gcubfg-freebsd-geom@m.gmane.org) Received: from root by ciao.gmane.org with local (Exim 4.43) id 1IUnF0-0002Ul-90 for freebsd-geom@freebsd.org; Mon, 10 Sep 2007 19:40:06 +0200 Received: from lara.cc.fer.hr ([161.53.72.113]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 10 Sep 2007 19:40:06 +0200 Received: from ivoras by lara.cc.fer.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 10 Sep 2007 19:40:06 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-geom@freebsd.org From: Ivan Voras Date: Mon, 10 Sep 2007 12:06:03 +0200 Lines: 34 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-ripemd160; protocol="application/pgp-signature"; boundary="------------enigB782E61404C74D3038662193" X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: lara.cc.fer.hr User-Agent: Thunderbird 1.5.0.12 (X11/20060911) In-Reply-To: X-Enigmail-Version: 0.94.4.0 Sender: news X-UiO-SPF-Received: Received-SPF: pass (mail-mx4.uio.no: domain of sea.gmane.org designates 80.91.229.5 as permitted sender) client-ip=80.91.229.5; envelope-from=news@sea.gmane.org; helo=sea.gmane.org; X-UiO-Spam-info: not spam, SpamAssassin (score=-3.0, required=12.0, autolearn=disabled, UIO_RECEIVED_FROM_NORWAY=-3) X-UiO-Scanned: 7E9A064421DF9C1DE9F3D77608CF370CF000B0DD X-UiO-SPAM-Test: remote_host: 80.91.229.5 spam_score: -29 maxlevel 200 minaction 2 bait 0 mail/h: 3 total 286 max/h 26 blacklist 0 greylist 0 ratelimit 0 Subject: Re: geom label detaching partway through boot X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Sep 2007 04:04:24 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigB782E61404C74D3038662193 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Kevin Thompson wrote: > da0 --label-->geom0 > As you can see below, it looks like the label, mirror and > stripe classes are fighting, ending up with label losing > because mirror and stripe are going through the direct da > devices instead of the label/geomX devices. They were > originally created referencing label/geomX. It could be a bug in glabel. Please report the output of "diskinfo -v=20 da0" and "diskinfo -v geom0". --------------enigB782E61404C74D3038662193 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFG5RcLldnAQVacBcgRAzrsAKCl6zdRpPIfphX+bGreEAPNxgua8gCgqsxI nuyU+iI/Tk26BzYatAYExjg= =qKrV -----END PGP SIGNATURE----- --------------enigB782E61404C74D3038662193-- From owner-freebsd-geom@FreeBSD.ORG Tue Sep 11 08:25:07 2007 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 81C9016A417 for ; Tue, 11 Sep 2007 08:25:07 +0000 (UTC) (envelope-from gcubfg-freebsd-geom@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 4D30C13C474 for ; Tue, 11 Sep 2007 08:25:07 +0000 (UTC) (envelope-from gcubfg-freebsd-geom@m.gmane.org) Received: from root by ciao.gmane.org with local (Exim 4.43) id 1IV13O-0008Pr-C5 for freebsd-geom@freebsd.org; Tue, 11 Sep 2007 10:25:02 +0200 Received: from lara.cc.fer.hr ([161.53.72.113]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 11 Sep 2007 10:25:02 +0200 Received: from ivoras by lara.cc.fer.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 11 Sep 2007 10:25:02 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-geom@freebsd.org From: Ivan Voras Date: Tue, 11 Sep 2007 10:22:12 +0200 Lines: 31 Message-ID: References: <20070910084143.GA18587@garage.freebsd.pl> <1131.147.177.179.52.1189445556.squirrel@angst.csh.rit.edu> <20070910175539.GB1103@garage.freebsd.pl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-ripemd160; protocol="application/pgp-signature"; boundary="------------enigC46DAE7AE07C3F9C9AC6A677" X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: lara.cc.fer.hr User-Agent: Thunderbird 1.5.0.12 (X11/20060911) In-Reply-To: <20070910175539.GB1103@garage.freebsd.pl> X-Enigmail-Version: 0.94.4.0 Sender: news Subject: Re: geom label detaching partway through boot X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Sep 2007 08:25:07 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigC46DAE7AE07C3F9C9AC6A677 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Pawel Jakub Dawidek wrote: > Ah, version is not important actually. The problem is that both > /dev/da0s1a and /dev/label/geom0s1a have the same size and the same > metadata.=20 Doesn't glabel store it's metadata on the provider (da0) if used with=20 the "label" verb? If so, why isn't the produced geom (geom0) shorter by=20 one sector? If not, where does it store the metadata? :) --------------enigC46DAE7AE07C3F9C9AC6A677 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFG5lA+ldnAQVacBcgRA4Z+AJ9sX/RngeamQ7QSccuYHzUxp5VomQCdGxvJ n2bej2BDvg80RSp0RyER/+c= =a+4d -----END PGP SIGNATURE----- --------------enigC46DAE7AE07C3F9C9AC6A677-- From owner-freebsd-geom@FreeBSD.ORG Tue Sep 11 10:00:23 2007 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BAB2D16A419 for ; Tue, 11 Sep 2007 10:00:23 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (arm132.internetdsl.tpnet.pl [83.17.198.132]) by mx1.freebsd.org (Postfix) with ESMTP id 4D10913C46B for ; Tue, 11 Sep 2007 10:00:23 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id 11D8845E9D; Tue, 11 Sep 2007 12:00:21 +0200 (CEST) Received: from localhost (pjd.wheel.pl [10.0.1.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id 2363145E98; Tue, 11 Sep 2007 12:00:15 +0200 (CEST) Date: Tue, 11 Sep 2007 11:58:56 +0200 From: Pawel Jakub Dawidek To: Ivan Voras Message-ID: <20070911095856.GA1110@garage.freebsd.pl> References: <20070910084143.GA18587@garage.freebsd.pl> <1131.147.177.179.52.1189445556.squirrel@angst.csh.rit.edu> <20070910175539.GB1103@garage.freebsd.pl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="17pEHd4RhPHOinZp" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 7.0-CURRENT i386 X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-5.9 required=3.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.0.4 Cc: freebsd-geom@freebsd.org Subject: Re: geom label detaching partway through boot X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Sep 2007 10:00:23 -0000 --17pEHd4RhPHOinZp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Sep 11, 2007 at 10:22:12AM +0200, Ivan Voras wrote: > Pawel Jakub Dawidek wrote: >=20 > >Ah, version is not important actually. The problem is that both > >/dev/da0s1a and /dev/label/geom0s1a have the same size and the same > >metadata.=20 >=20 > Doesn't glabel store it's metadata on the provider (da0) if used with=20 > the "label" verb? If so, why isn't the produced geom (geom0) shorter by= =20 > one sector? If not, where does it store the metadata? :) geom0 is one sector shorter than da0, but bsdlabel stuff, which defines partitions is the same for both, so geom0s1a and da0s1a have the same size. --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --17pEHd4RhPHOinZp Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFG5mbgForvXbEpPzQRAq2SAJ4nKQNGfBZrv4l7jNjSmt8lGMYEIwCfR3/r 8tOgD2rNXNlBRk7NT8wyF7Q= =4BqD -----END PGP SIGNATURE----- --17pEHd4RhPHOinZp-- From owner-freebsd-geom@FreeBSD.ORG Tue Sep 11 10:52:24 2007 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C92B816A41B for ; Tue, 11 Sep 2007 10:52:24 +0000 (UTC) (envelope-from gcubfg-freebsd-geom@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 690D913C48E for ; Tue, 11 Sep 2007 10:52:23 +0000 (UTC) (envelope-from gcubfg-freebsd-geom@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1IV3Ls-0007LA-5r for freebsd-geom@freebsd.org; Tue, 11 Sep 2007 12:52:16 +0200 Received: from lara.cc.fer.hr ([161.53.72.113]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 11 Sep 2007 12:52:16 +0200 Received: from ivoras by lara.cc.fer.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 11 Sep 2007 12:52:16 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-geom@freebsd.org From: Ivan Voras Date: Tue, 11 Sep 2007 12:52:03 +0200 Lines: 42 Message-ID: References: <20070910084143.GA18587@garage.freebsd.pl> <1131.147.177.179.52.1189445556.squirrel@angst.csh.rit.edu> <20070910175539.GB1103@garage.freebsd.pl> <20070911095856.GA1110@garage.freebsd.pl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-ripemd160; protocol="application/pgp-signature"; boundary="------------enigE09165FA329356DA8D5586CA" X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: lara.cc.fer.hr User-Agent: Thunderbird 1.5.0.12 (X11/20060911) In-Reply-To: <20070911095856.GA1110@garage.freebsd.pl> X-Enigmail-Version: 0.94.4.0 Sender: news Subject: Re: geom label detaching partway through boot X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Sep 2007 10:52:24 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigE09165FA329356DA8D5586CA Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Pawel Jakub Dawidek wrote: > On Tue, Sep 11, 2007 at 10:22:12AM +0200, Ivan Voras wrote: >> Pawel Jakub Dawidek wrote: >> >>> Ah, version is not important actually. The problem is that both >>> /dev/da0s1a and /dev/label/geom0s1a have the same size and the same >>> metadata.=20 >> Doesn't glabel store it's metadata on the provider (da0) if used with = >> the "label" verb? If so, why isn't the produced geom (geom0) shorter b= y=20 >> one sector? If not, where does it store the metadata? :) >=20 > geom0 is one sector shorter than da0, but bsdlabel stuff, which defines= > partitions is the same for both, so geom0s1a and da0s1a have the same > size. You're right, if the bsdlabel was created on da0 instead of geom0. It's=20 not clear if the OP did that (question for the OP: did you?). --------------enigE09165FA329356DA8D5586CA Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFG5nNaldnAQVacBcgRA3omAKD7vVAjGgvLnLDdckCGqMogP6/L8QCg6a/M Z5PTVzhQu32MSsUdaVEEO7o= =pjp2 -----END PGP SIGNATURE----- --------------enigE09165FA329356DA8D5586CA-- From owner-freebsd-geom@FreeBSD.ORG Tue Sep 11 11:26:12 2007 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3871916A41A; Tue, 11 Sep 2007 11:26:12 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (arm132.internetdsl.tpnet.pl [83.17.198.132]) by mx1.freebsd.org (Postfix) with ESMTP id DFD7713C442; Tue, 11 Sep 2007 11:26:11 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id 1578B45E8F; Tue, 11 Sep 2007 13:26:10 +0200 (CEST) Received: from localhost (pjd.wheel.pl [10.0.1.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id C7F5A456AB; Tue, 11 Sep 2007 13:26:02 +0200 (CEST) Date: Tue, 11 Sep 2007 13:24:44 +0200 From: Pawel Jakub Dawidek To: Ivan Voras Message-ID: <20070911112444.GB1110@garage.freebsd.pl> References: <20070910084143.GA18587@garage.freebsd.pl> <1131.147.177.179.52.1189445556.squirrel@angst.csh.rit.edu> <20070910175539.GB1103@garage.freebsd.pl> <20070911095856.GA1110@garage.freebsd.pl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="K8nIJk4ghYZn606h" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 7.0-CURRENT i386 X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-5.9 required=3.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.0.4 Cc: freebsd-geom@freebsd.org Subject: Re: geom label detaching partway through boot X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Sep 2007 11:26:12 -0000 --K8nIJk4ghYZn606h Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Sep 11, 2007 at 12:52:03PM +0200, Ivan Voras wrote: > Pawel Jakub Dawidek wrote: > >On Tue, Sep 11, 2007 at 10:22:12AM +0200, Ivan Voras wrote: > >>Pawel Jakub Dawidek wrote: > >> > >>>Ah, version is not important actually. The problem is that both > >>>/dev/da0s1a and /dev/label/geom0s1a have the same size and the same > >>>metadata.=20 > >>Doesn't glabel store it's metadata on the provider (da0) if used with= =20 > >>the "label" verb? If so, why isn't the produced geom (geom0) shorter by= =20 > >>one sector? If not, where does it store the metadata? :) > > > >geom0 is one sector shorter than da0, but bsdlabel stuff, which defines > >partitions is the same for both, so geom0s1a and da0s1a have the same > >size. >=20 > You're right, if the bsdlabel was created on da0 instead of geom0. It's= =20 > not clear if the OP did that (question for the OP: did you?). It doesn't really matter if 'a' partition doesn't cover entire slice. --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --K8nIJk4ghYZn606h Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFG5nr8ForvXbEpPzQRApEOAJ9PVOLYODXb9eW+cEfkk/eDpOUZ4QCgm2NK HEvBABc9J8VHHHfYrKEgM88= =JV/D -----END PGP SIGNATURE----- --K8nIJk4ghYZn606h-- From owner-freebsd-geom@FreeBSD.ORG Tue Sep 11 21:59:08 2007 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A775F16A417 for ; Tue, 11 Sep 2007 21:59:07 +0000 (UTC) (envelope-from bjmccann@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.176]) by mx1.freebsd.org (Postfix) with ESMTP id 945F713C46B for ; Tue, 11 Sep 2007 21:59:07 +0000 (UTC) (envelope-from bjmccann@gmail.com) Received: by wa-out-1112.google.com with SMTP id k17so7762waf for ; Tue, 11 Sep 2007 14:59:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=Dv/0GvMNOzgUvwSfMJZbPCAVgK1+P+M9U9gJ3rru/Yk=; b=MudV7Ef73isNPjSa/YRenS8KvKerWqM2mmOU8R6xWbIUpkHitTM3qLhPiMNBryxH4+U9gYYe2pUgHk2NN3PoFiNnGPVoFZIy2PU33M3WXBLkqgQiqYLiLi0B7MebcUXmJBH40noDfsZ865Ztjt816wFaP0SfDQ215QwY+mYXrPI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=AKJfA35SnJAaYMy6Wx4cz3aJCXdKeV3viCE0uNNay3dd6qjxaqCi4bxiVKa2YvoKSZ3dKdyjZvhOb9bqzSsw1h05PFHQuFJhY7NmZyg3O7uy0k2rhVJ3i6Hb+upGEPFF5+sLiAHDqwy4xqSRCHJuX4j44U8qp1qp0pgzTn4Z6Ko= Received: by 10.143.165.13 with SMTP id s13mr332429wfo.1189546294350; Tue, 11 Sep 2007 14:31:34 -0700 (PDT) Received: by 10.142.88.14 with HTTP; Tue, 11 Sep 2007 14:31:34 -0700 (PDT) Message-ID: <2b5f066d0709111431p74f58633wf157db271448e3f6@mail.gmail.com> Date: Tue, 11 Sep 2007 17:31:34 -0400 From: "Brian McCann" To: freebsd-questions , freebsd-geom@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: Subject: gmirror woes X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Sep 2007 21:59:08 -0000 I had a disk die in a gmirror set, and I'm trying to replace it, but I'm having a heck of a time. I can see the mirror set in gmirror list: Geom name: gm0s1 State: DEGRADED Components: 2 Balance: round-robin Slice: 4096 Flags: NONE GenID: 1 SyncID: 2 ID: 1250906373 Providers: 1. Name: mirror/gm0s1 Mediasize: 36701166592 (34G) Sectorsize: 512 Mode: r5w5e5 Consumers: 1. Name: da0s1 Mediasize: 36701167104 (34G) Sectorsize: 512 Mode: r1w1e1 State: ACTIVE Priority: 0 Flags: DIRTY GenID: 1 SyncID: 2 ID: 1129080348 But when I try to run gmirror configure -a mirror/gm0s1, I get: No such device: mirror/gm0s1. Can someone give me some pointers here? Thanks, --Brian From owner-freebsd-geom@FreeBSD.ORG Tue Sep 11 22:40:33 2007 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 197A516A417 for ; Tue, 11 Sep 2007 22:40:33 +0000 (UTC) (envelope-from mnslinky@gmail.com) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.228]) by mx1.freebsd.org (Postfix) with ESMTP id D1FF613C46A for ; Tue, 11 Sep 2007 22:40:32 +0000 (UTC) (envelope-from mnslinky@gmail.com) Received: by nz-out-0506.google.com with SMTP id l8so11708nzf for ; Tue, 11 Sep 2007 15:40:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:in-reply-to:references:mime-version:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer; bh=CqT1CaN3bzB975uNRwAMZNf6U7q59jAlMmPQQVJnR54=; b=KdjoTE3YpeBYOO6mIfgNtig0YDFZCOm/rTigSXd2dORcapvOApJnZGSUKA++mvR8MJyimHTMlu1d/f+QkUC0tgplv/Cr6klFVwjJyjfKuQ87MerVTcpPoU9EABB5WlFBxXJUVzpFnMrCYaiBspp4PleUYsl86J6Pxcy3NEviGe4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:in-reply-to:references:mime-version:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer; b=t8GZkUspf3HXh/aglmpduZKR1oE6zpaGu8o13b+DMgSBcxUwMnBgd70lOr9oauwFvDHX/jB3OnUwFo8rwE4Q0FyRjr3uatXfEIrrn8DzyF9hxRHOcXpvK4dTYmd1ZAt+MzIUyDqsUb8wPJDtUywiaxz/P+Jb7QgQkNhC7O5RzIM= Received: by 10.65.150.18 with SMTP id c18mr12384249qbo.1189548847413; Tue, 11 Sep 2007 15:14:07 -0700 (PDT) Received: from ?192.168.1.3? ( [209.240.66.157]) by mx.google.com with ESMTPS id 15sm1324565nzn.2007.09.11.15.14.05 (version=SSLv3 cipher=OTHER); Tue, 11 Sep 2007 15:14:06 -0700 (PDT) In-Reply-To: <2b5f066d0709111431p74f58633wf157db271448e3f6@mail.gmail.com> References: <2b5f066d0709111431p74f58633wf157db271448e3f6@mail.gmail.com> Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <6725900F-5CB5-4405-8395-3029911C233B@gmail.com> Content-Transfer-Encoding: 7bit From: Eric Crist Date: Tue, 11 Sep 2007 17:14:02 -0500 To: "Brian McCann" X-Mailer: Apple Mail (2.752.3) Cc: freebsd-questions , freebsd-geom@freebsd.org Subject: Re: gmirror woes X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Sep 2007 22:40:33 -0000 On Sep 11, 2007, at 4:31 PMSep 11, 2007, Brian McCann wrote: > I had a disk die in a gmirror set, and I'm trying to replace it, but > I'm having a heck of a time. I can see the mirror set in gmirror > list: > [snip] [PLUG] Take at peek at https://www.secure-computing.net/wiki/ index.php/Gmirror [/PLUG] It's something I wrote up for work, as we use gmirror on many of our firewalls, or will be shortly. If you have questions, please feel free to ask! ----- Eric F Crist Secure Computing Networks From owner-freebsd-geom@FreeBSD.ORG Tue Sep 11 23:53:52 2007 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4F85916A46B for ; Tue, 11 Sep 2007 23:53:52 +0000 (UTC) (envelope-from bjmccann@gmail.com) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.238]) by mx1.freebsd.org (Postfix) with ESMTP id 0469213C48D for ; Tue, 11 Sep 2007 23:53:50 +0000 (UTC) (envelope-from bjmccann@gmail.com) Received: by nz-out-0506.google.com with SMTP id l8so21678nzf for ; Tue, 11 Sep 2007 16:53:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=sv88EO7cnGfyv17USBEOCDLv9iLbA5vZ40uAYweAMkk=; b=gGTGN93Q+x18/YUbdJ99V+kV2IETaRnEhK2frzE0W9K+fkuhanPNo5yRk88fFLXAQ3RZFsJlJbllAdor2EqNHFbogSkbaeKoXvktg47ClL1XJelYn6mnlMK6ZQPWHwzolU4SS+krI6ki9M+VLMdwbi3qngsY/bFzr+fZ2NQfVus= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ZqEnDCyi9OTirG2JOn/xq9tk+OV8qYPHDWt8Q5dYkiLxGLmnMQC+szyqHm1ceX/ex9w8YrqjSGVPc0YXuWzSPKWuKV+Z30rkva83IQICD6tyUS4rGaDhqkivxNshLEZMT7ZtIDFEjmI2j7T8aiv9K32DONarpdopWj1FMNDFJHA= Received: by 10.142.201.3 with SMTP id y3mr339074wff.1189554829667; Tue, 11 Sep 2007 16:53:49 -0700 (PDT) Received: by 10.142.88.14 with HTTP; Tue, 11 Sep 2007 16:53:49 -0700 (PDT) Message-ID: <2b5f066d0709111653v563f975fpba51319c79a03f29@mail.gmail.com> Date: Tue, 11 Sep 2007 19:53:49 -0400 From: "Brian McCann" To: "Eric Crist" In-Reply-To: <6725900F-5CB5-4405-8395-3029911C233B@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <2b5f066d0709111431p74f58633wf157db271448e3f6@mail.gmail.com> <6725900F-5CB5-4405-8395-3029911C233B@gmail.com> Cc: freebsd-questions , freebsd-geom@freebsd.org Subject: Re: gmirror woes X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Sep 2007 23:53:52 -0000 Thanks Eric! --Brian On 9/11/07, Eric Crist wrote: > On Sep 11, 2007, at 4:31 PMSep 11, 2007, Brian McCann wrote: > > > I had a disk die in a gmirror set, and I'm trying to replace it, but > > I'm having a heck of a time. I can see the mirror set in gmirror > > list: > > > > [snip] > > [PLUG] Take at peek at https://www.secure-computing.net/wiki/ > index.php/Gmirror [/PLUG] > It's something I wrote up for work, as we use gmirror on many of our > firewalls, or will be shortly. If you have questions, please feel > free to ask! > > ----- > Eric F Crist > Secure Computing Networks > > > _______________________________________________ > 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" > -- _-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_ Brian McCann Systems & Network Administrator, K12USA "I don't have to take this abuse from you -- I've got hundreds of people waiting to abuse me." -- Bill Murray, "Ghostbusters" From owner-freebsd-geom@FreeBSD.ORG Wed Sep 12 09:29:23 2007 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3079016A41B; Wed, 12 Sep 2007 09:29:23 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (wojtek.tensor.gdynia.pl [IPv6:2001:4070:101:2::1]) by mx1.freebsd.org (Postfix) with ESMTP id 08F1313C45B; Wed, 12 Sep 2007 09:29:21 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (localhost [IPv6:::1]) by wojtek.tensor.gdynia.pl (8.13.8/8.13.8) with ESMTP id l8C9TFol006747; Wed, 12 Sep 2007 11:29:15 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from localhost (wojtek@localhost) by wojtek.tensor.gdynia.pl (8.13.8/8.13.8/Submit) with ESMTP id l8C900kc006373; Wed, 12 Sep 2007 11:00:00 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Date: Wed, 12 Sep 2007 10:59:58 +0200 (CEST) From: Wojciech Puchar To: Brian McCann In-Reply-To: <2b5f066d0709111431p74f58633wf157db271448e3f6@mail.gmail.com> Message-ID: <20070912105945.P6370@wojtek.tensor.gdynia.pl> References: <2b5f066d0709111431p74f58633wf157db271448e3f6@mail.gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-questions , freebsd-geom@freebsd.org Subject: Re: gmirror woes X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Sep 2007 09:29:23 -0000 > Priority: 0 > Flags: DIRTY > GenID: 1 > SyncID: 2 > ID: 1129080348 > > But when I try to run gmirror configure -a mirror/gm0s1, I get: > > No such device: mirror/gm0s1. > > Can someone give me some pointers here? gmirror configure -a gm0s1 (no mirror/ here) > > Thanks, > --Brian > _______________________________________________ > 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" > > From owner-freebsd-geom@FreeBSD.ORG Wed Sep 12 16:11:15 2007 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9AB6416A41B for ; Wed, 12 Sep 2007 16:11:15 +0000 (UTC) (envelope-from nino80@gmail.com) Received: from rv-out-0910.google.com (rv-out-0910.google.com [209.85.198.189]) by mx1.freebsd.org (Postfix) with ESMTP id 632AB13C474 for ; Wed, 12 Sep 2007 16:11:15 +0000 (UTC) (envelope-from nino80@gmail.com) Received: by rv-out-0910.google.com with SMTP id l15so200395rvb for ; Wed, 12 Sep 2007 09:11:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=Sl/nDR6rqzswXQAUaLlftTzsk0mHYjv7JfVx/X/QLHc=; b=W18DBR+evYAbqo/kiQm3/Q6+/nLmFuqk60zSS77LXSWUW3AHe6DxEG0U5d99c8AjLBQpyfDguzRgcjcC9pGDUh3B8Ev3vBktC4eiUzQgqhADFzEcLAJLRBDa73Yr2+O/qbzOwrYyX+AoQp4FUOBVpiy8QrlDZjLfJSzGPL1tv3o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=BTFLwHYG+nze5iB7XYeUopYbeBv96P78Rq6jTVfl5TKskiIWEDuGhRBwq4TTupAShIAF2g5uIit3pgzpc3Z/Erz6rVs5UfMuhqYoEkMne+iWgFcptKxDGUmyModTsceZ0InJPJmrFTkun++TD3tfGm/xutSU/gnCSjS+3jNT5LQ= Received: by 10.141.155.5 with SMTP id h5mr337886rvo.1189611830197; Wed, 12 Sep 2007 08:43:50 -0700 (PDT) Received: by 10.141.77.8 with HTTP; Wed, 12 Sep 2007 08:43:50 -0700 (PDT) Message-ID: <92bcbda50709120843o6af4bd38v8725be3f5b765b0e@mail.gmail.com> Date: Wed, 12 Sep 2007 17:43:50 +0200 From: "n j" To: freebsd-geom@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: Gmirror on a partition of a slice X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Sep 2007 16:11:15 -0000 Hello, I've originally sent this mail to -questions, but -geom is probably the better place to ask for pointers to any help regarding installing gmirror on a partition of a slice. Here's the problem. Using http://www.onlamp.com/pub/a/bsd/2005/11/10/FreeBSD_Basics.html and http://people.freebsd.org/~rse/mirror/ as pointers, as well as handbook and man pages, I tried to set up gmirror on a partition of a slice the following way (using identical 1Gb disks da0 & da1): 1) install FreeBSD on 1st disk /dev/da0s1a 2) create slice on 2nd disk fdisk -BI /dev/da1 3) bsdlabel -w -B /dev/da1s1 4) edit BSD label to create a ~500 Mb partition for gmirror a: 1000000 16 4.2BSD 2048 16384 8 c: 2097120 0 unused 0 0 # "raw" part 5) gmirror label -h -n -b round-robin gm0 /dev/da1s1a to create mirror 6) fdisk -BI /dev/mirror/gm0 to create a slice in gm0 7) bsdlabel -w -B /dev/mirror/gm0s1 to create root partition a: 995951 16 4.2BSD 2048 16384 8 c: 995967 0 unused 0 0 # "raw" part 8) newfs, mount, dump/restore to /dev/mirror/gm0s1a, modify fstab, loader.conf, create boot.config to boot off mirror 9) reboot ... and at that point I get "Not ufs" and "No /boot/loader". Any kind of input, be it a link to some material on the web or a proper sequence of command is much appreciated. I've googled a lot and haven't found any examples/howtos/tutorials on how to set up what I'm trying to do. Thanks, -- Nino From owner-freebsd-geom@FreeBSD.ORG Thu Sep 13 00:22:57 2007 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DA0A516A419 for ; Thu, 13 Sep 2007 00:22:57 +0000 (UTC) (envelope-from david.cecil@nokia.com) Received: from mgw-ext11.nokia.com (smtp.nokia.com [131.228.20.170]) by mx1.freebsd.org (Postfix) with ESMTP id 57D2013C45D for ; Thu, 13 Sep 2007 00:22:56 +0000 (UTC) (envelope-from david.cecil@nokia.com) Received: from esebh108.NOE.Nokia.com (esebh108.ntc.nokia.com [172.21.143.145]) by mgw-ext11.nokia.com (Switch-3.2.5/Switch-3.2.5) with ESMTP id l8CNwKJC018050; Thu, 13 Sep 2007 02:58:21 +0300 Received: from siebh101.NOE.Nokia.com ([172.30.195.27]) by esebh108.NOE.Nokia.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 13 Sep 2007 02:58:20 +0300 Received: from syebe101.NOE.Nokia.com ([172.30.128.65]) by siebh101.NOE.Nokia.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 13 Sep 2007 07:58:17 +0800 Received: from [172.30.10.65] ([172.30.10.65]) by syebe101.NOE.Nokia.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 13 Sep 2007 09:58:16 +1000 Message-ID: <46E87D0C.5000300@nokia.com> Date: Thu, 13 Sep 2007 09:58:04 +1000 From: David Cecil User-Agent: Thunderbird 1.5.0.12 (Windows/20070509) MIME-Version: 1.0 To: ext n j References: <92bcbda50709120843o6af4bd38v8725be3f5b765b0e@mail.gmail.com> In-Reply-To: <92bcbda50709120843o6af4bd38v8725be3f5b765b0e@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 12 Sep 2007 23:58:16.0129 (UTC) FILETIME=[C91CCB10:01C7F598] X-Nokia-AV: Clean Cc: freebsd-geom@freebsd.org Subject: Re: Gmirror on a partition of a slice X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Sep 2007 00:22:57 -0000 Hi, I didn't think it was possible to mirror just a partition (as opposed to a slice). As far as I know, you can mirror a whole disk or a slice, but not a BSD partition. Has this changed? Why don't you just mirror the slice? Regards, Dave ext n j wrote: > Hello, > > I've originally sent this mail to -questions, but -geom is probably > the better place to ask for pointers to any help regarding installing > gmirror on a partition of a slice. Here's the problem. > > Using http://www.onlamp.com/pub/a/bsd/2005/11/10/FreeBSD_Basics.html > and http://people.freebsd.org/~rse/mirror/ as pointers, as well as > handbook and man pages, I tried to set up gmirror on a partition of a > slice the following way (using identical 1Gb disks da0 & da1): > > 1) install FreeBSD on 1st disk /dev/da0s1a > > 2) create slice on 2nd disk fdisk -BI /dev/da1 > > 3) bsdlabel -w -B /dev/da1s1 > > 4) edit BSD label to create a ~500 Mb partition for gmirror > a: 1000000 16 4.2BSD 2048 16384 8 > c: 2097120 0 unused 0 0 # "raw" part > > 5) gmirror label -h -n -b round-robin gm0 /dev/da1s1a to create mirror > > 6) fdisk -BI /dev/mirror/gm0 to create a slice in gm0 > > 7) bsdlabel -w -B /dev/mirror/gm0s1 to create root partition > a: 995951 16 4.2BSD 2048 16384 8 > c: 995967 0 unused 0 0 # "raw" part > > 8) newfs, mount, dump/restore to /dev/mirror/gm0s1a, modify fstab, > loader.conf, create boot.config to boot off mirror > > 9) reboot > > ... and at that point I get "Not ufs" and "No /boot/loader". Any kind > of input, be it a link to some material on the web or a proper > sequence of command is much appreciated. I've googled a lot and > haven't found any examples/howtos/tutorials on how to set up what I'm > trying to do. > > Thanks, > From owner-freebsd-geom@FreeBSD.ORG Thu Sep 13 04:57:04 2007 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DF94E16A41A for ; Thu, 13 Sep 2007 04:57:04 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (arm132.internetdsl.tpnet.pl [83.17.198.132]) by mx1.freebsd.org (Postfix) with ESMTP id 96B2013C467 for ; Thu, 13 Sep 2007 04:57:04 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id 88A4D45EAA; Thu, 13 Sep 2007 06:56:59 +0200 (CEST) Received: from localhost (154.81.datacomsa.pl [195.34.81.154]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id 3044145E9D; Thu, 13 Sep 2007 06:56:55 +0200 (CEST) Date: Thu, 13 Sep 2007 06:55:33 +0200 From: Pawel Jakub Dawidek To: David Cecil Message-ID: <20070913045533.GB8274@garage.freebsd.pl> References: <92bcbda50709120843o6af4bd38v8725be3f5b765b0e@mail.gmail.com> <46E87D0C.5000300@nokia.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="uZ3hkaAS1mZxFaxD" Content-Disposition: inline In-Reply-To: <46E87D0C.5000300@nokia.com> User-Agent: Mutt/1.4.2.3i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 7.0-CURRENT i386 X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-2.6 required=3.0 tests=BAYES_00 autolearn=ham version=3.0.4 Cc: ext n j , freebsd-geom@freebsd.org Subject: Re: Gmirror on a partition of a slice X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Sep 2007 04:57:05 -0000 --uZ3hkaAS1mZxFaxD Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Sep 13, 2007 at 09:58:04AM +1000, David Cecil wrote: > Hi, >=20 > I didn't think it was possible to mirror just a partition (as opposed to= =20 > a slice). As far as I know, you can mirror a whole disk or a slice, but= =20 > not a BSD partition. Has this changed? Why don't you just mirror the=20 > slice? You can mirror any GEOM providers, which includes disks, slices, partitions, encrypted providers, RAID0/RAID3 devices, ZFS volumes, GEOM gate devices, and more. Anything you can probe with diskinfo(8) can be mirrored (and used for other GEOM classes too). It's more than that. You can even mix providers from different GEOM classes, eg: lcf:root:~# gmirror status Name Status Components mirror/foo COMPLETE ad4 ad5s1 ad6s1a ad7.eli stripe/bar raid3/baz ggate0 zvol/tank/vol That's GEOM, my friend:) --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --uZ3hkaAS1mZxFaxD Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFG6MLFForvXbEpPzQRAtWmAJ0UiZBMo/fPc3CwCeQPMf5FtbPVHQCfQBc+ sz0s4ZIvsVz18C0d5oHJ1aU= =kbHi -----END PGP SIGNATURE----- --uZ3hkaAS1mZxFaxD-- From owner-freebsd-geom@FreeBSD.ORG Thu Sep 13 07:58:55 2007 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E2D1C16A419 for ; Thu, 13 Sep 2007 07:58:55 +0000 (UTC) (envelope-from nino80@gmail.com) Received: from rv-out-0910.google.com (rv-out-0910.google.com [209.85.198.187]) by mx1.freebsd.org (Postfix) with ESMTP id A515C13C46E for ; Thu, 13 Sep 2007 07:58:55 +0000 (UTC) (envelope-from nino80@gmail.com) Received: by rv-out-0910.google.com with SMTP id l15so290616rvb for ; Thu, 13 Sep 2007 00:58:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=kg23OstDPEkhIv1Rh3rmXUoDPQyX3IPEGLgXHXQbgBQ=; b=O/EwX8F+tvQA2UsCMVHCEKT/dNUgznYErTuMvPujl86WLQQVHN9tf+vRVE3AwOC1zq1Uox/vRJdjHnUGgzHVxSB2gPnyn1xLYhgYyvXisOltAuWtuVy6TQXNR/iB5aaCd4X1bO6AiT3HQsFzw7Dr5pWQFOQXXjmcd1CuWkka5cA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=S4lmdOeDrp7MSbm+KRPijGr7V/jo0ad+BG9S5p8v1U2iAP8/G0z34cLm2fN6e/g3pQarD+1Ly7EBIlBilg3zKF27K8jlBlsy0SYCXMLiQpq5qtnUpc+ZQ6OWzIeUXoLJNknvhr/MHhuAbyqKfyDQF8ou1yor9xnP+a6nzWX6CLQ= Received: by 10.141.66.2 with SMTP id t2mr59259rvk.1189670334957; Thu, 13 Sep 2007 00:58:54 -0700 (PDT) Received: by 10.141.77.8 with HTTP; Thu, 13 Sep 2007 00:58:54 -0700 (PDT) Message-ID: <92bcbda50709130058t4da17e86wf5f33f05816efb6b@mail.gmail.com> Date: Thu, 13 Sep 2007 09:58:54 +0200 From: "n j" To: freebsd-geom@freebsd.org In-Reply-To: <20070913045533.GB8274@garage.freebsd.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <92bcbda50709120843o6af4bd38v8725be3f5b765b0e@mail.gmail.com> <46E87D0C.5000300@nokia.com> <20070913045533.GB8274@garage.freebsd.pl> Subject: Re: Gmirror on a partition of a slice X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Sep 2007 07:58:56 -0000 > You can mirror any GEOM providers, which includes disks, slices, > partitions, encrypted providers, RAID0/RAID3 devices, ZFS volumes, GEOM > gate devices, and more. Anything you can probe with diskinfo(8) can be > mirrored (and used for other GEOM classes too). It's more than that. You > can even mix providers from different GEOM classes, eg: As Pawel confirmed, partitions can be used as gmirror consumers. Perhaps the problem I'm running into is that I'm trying to boot off a gmirror'ed partition? I.e. maybe you can boot if you mirror a whole disk or a slice, but if you partition a disk and use only one partition for a mirror, then you can't boot. Could that be the problem? Thanks, -- Nino From owner-freebsd-geom@FreeBSD.ORG Thu Sep 13 08:19:16 2007 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 344DD16A418 for ; Thu, 13 Sep 2007 08:19:16 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (arm132.internetdsl.tpnet.pl [83.17.198.132]) by mx1.freebsd.org (Postfix) with ESMTP id DF70B13C459 for ; Thu, 13 Sep 2007 08:19:15 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id 24AC045EAE; Thu, 13 Sep 2007 10:19:14 +0200 (CEST) Received: from localhost (pjd.wheel.pl [10.0.1.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id E2CDA456AB; Thu, 13 Sep 2007 10:19:07 +0200 (CEST) Date: Thu, 13 Sep 2007 10:17:48 +0200 From: Pawel Jakub Dawidek To: n j Message-ID: <20070913081748.GA1155@garage.freebsd.pl> References: <92bcbda50709120843o6af4bd38v8725be3f5b765b0e@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="dDRMvlgZJXvWKvBx" Content-Disposition: inline In-Reply-To: <92bcbda50709120843o6af4bd38v8725be3f5b765b0e@mail.gmail.com> User-Agent: Mutt/1.4.2.3i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 7.0-CURRENT i386 X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-5.9 required=3.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.0.4 Cc: freebsd-geom@freebsd.org Subject: Re: Gmirror on a partition of a slice X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Sep 2007 08:19:16 -0000 --dDRMvlgZJXvWKvBx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Sep 12, 2007 at 05:43:50PM +0200, n j wrote: > Hello, >=20 > I've originally sent this mail to -questions, but -geom is probably > the better place to ask for pointers to any help regarding installing > gmirror on a partition of a slice. Here's the problem. >=20 > Using http://www.onlamp.com/pub/a/bsd/2005/11/10/FreeBSD_Basics.html > and http://people.freebsd.org/~rse/mirror/ as pointers, as well as > handbook and man pages, I tried to set up gmirror on a partition of a > slice the following way (using identical 1Gb disks da0 & da1): >=20 > 1) install FreeBSD on 1st disk /dev/da0s1a >=20 > 2) create slice on 2nd disk fdisk -BI /dev/da1 >=20 > 3) bsdlabel -w -B /dev/da1s1 >=20 > 4) edit BSD label to create a ~500 Mb partition for gmirror > a: 1000000 16 4.2BSD 2048 16384 8 > c: 2097120 0 unused 0 0 # "raw" part >=20 > 5) gmirror label -h -n -b round-robin gm0 /dev/da1s1a to create mirror >=20 > 6) fdisk -BI /dev/mirror/gm0 to create a slice in gm0 Don't do this. > 7) bsdlabel -w -B /dev/mirror/gm0s1 to create root partition > a: 995951 16 4.2BSD 2048 16384 8 > c: 995967 0 unused 0 0 # "raw" part And this. > 8) newfs, mount, dump/restore to /dev/mirror/gm0s1a, modify fstab, > loader.conf, create boot.config to boot off mirror newfs /dev/mirror/gm0. Copy the data from da0s1a to /dev/mirror/gm0. Modify /etc/fstab on da0s1a to mount root as /dev/mirror/gm0. For example: # newfs -U /dev/mirror/gm0 # mount -o noatime /dev/mirror/gm0 /mnt # cd / # tar -c --one-filesystem -f - . | tar xpf - -C /mnt/ # umount /mnt --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --dDRMvlgZJXvWKvBx Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFG6PIsForvXbEpPzQRAiaCAKCOYfBXOnbdOlmFxYsQUcLlJW7uLQCeOCCr bR4VulPpC1NNO1GtfiJimPU= =wkCj -----END PGP SIGNATURE----- --dDRMvlgZJXvWKvBx-- From owner-freebsd-geom@FreeBSD.ORG Sat Sep 15 02:47:53 2007 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9665C16A418; Sat, 15 Sep 2007 02:47:53 +0000 (UTC) (envelope-from antiduh@csh.rit.edu) Received: from whitefox.csh.rit.edu (whitefox.csh.rit.edu [129.21.60.19]) by mx1.freebsd.org (Postfix) with ESMTP id 4B07C13C461; Sat, 15 Sep 2007 02:47:53 +0000 (UTC) (envelope-from antiduh@csh.rit.edu) Received: from localhost (localhost [127.0.0.1]) by whitefox.csh.rit.edu (Postfix) with ESMTP id AFE2611447; Fri, 14 Sep 2007 22:47:52 -0400 (EDT) X-Virus-Scanned: amavisd-new at csh.rit.edu Received: from whitefox.csh.rit.edu ([127.0.0.1]) by localhost (whitefox.csh.rit.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id I6d31pwdl2Ia; Fri, 14 Sep 2007 22:47:38 -0400 (EDT) Received: from corrugated-real.rochester.rr.com (cpe-69-207-182-28.rochester.res.rr.com [69.207.182.28]) by whitefox.csh.rit.edu (Postfix) with ESMTP id DCFA011484; Fri, 14 Sep 2007 22:47:37 -0400 (EDT) Date: Fri, 14 Sep 2007 22:47:31 -0400 To: freebsd-geom@freebsd.org From: "Kevin Thompson" Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-15 MIME-Version: 1.0 References: <20070910084143.GA18587@garage.freebsd.pl> <1131.147.177.179.52.1189445556.squirrel@angst.csh.rit.edu> <20070910175539.GB1103@garage.freebsd.pl> Content-Transfer-Encoding: 7bit Message-ID: In-Reply-To: <20070910175539.GB1103@garage.freebsd.pl> User-Agent: Opera Mail/9.21 (Win32) Cc: Pawel Jakub Dawidek Subject: Re: geom label detaching partway through boot X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Sep 2007 02:47:53 -0000 On Mon, 10 Sep 2007 13:55:39 -0400, Pawel Jakub Dawidek wrote: > Ah, version is not important actually. The problem is that both > /dev/da0s1a and /dev/label/geom0s1a have the same size and the same > metadata. Because you use glabeled providers with your mirror/stripe, I > suggest using -h option for 'gstripe/gmirror label'. This will store > component's name in metadata, eg. label/geom0s1a and won't try to use > da0s1a anymore. I finally got back around to working on this, and hardcoding the providers worked great. Thanks Pawel! --Kevin