From owner-freebsd-geom@FreeBSD.ORG Mon Aug 14 07:27:57 2006 Return-Path: X-Original-To: freebsd-geom@freebsd.org Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5540E16A4E1 for ; Mon, 14 Aug 2006 07:27:57 +0000 (UTC) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id C250843D58 for ; Mon, 14 Aug 2006 07:27:50 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k7E7RovE038439 for ; Mon, 14 Aug 2006 07:27:50 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k7E7Rn29038434 for freebsd-geom@FreeBSD.org; Mon, 14 Aug 2006 07:27:49 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 14 Aug 2006 07:27:49 GMT Message-Id: <200608140727.k7E7Rn29038434@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: linimon 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, 14 Aug 2006 07:27:57 -0000 Current FreeBSD problem reports Critical problems Serious problems S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/76538 geom [gbde] nfs-write on gbde partition stalls and continue 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/95771 geom [geom] geom mirror provider destroyed (machine crashed o kern/98034 geom [geom] dereference of NULL pointer in acd_geom_detach o kern/98742 geom [geli] IO errors while using geli o kern/99256 geom [geli] kernel panic/freeze with geli and ufs (maybe re 10 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 o kern/98538 geom [geom] Kernel panic on ggate destroy 4 problems total. From owner-freebsd-geom@FreeBSD.ORG Mon Aug 14 07:32:11 2006 Return-Path: X-Original-To: freebsd-geom@FreeBSD.org Delivered-To: freebsd-geom@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4450216A4F2 for ; Mon, 14 Aug 2006 07:32:11 +0000 (UTC) (envelope-from lulf@stud.ntnu.no) Received: from fri.itea.ntnu.no (fri.itea.ntnu.no [129.241.7.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id B964343DE2 for ; Mon, 14 Aug 2006 07:31:30 +0000 (GMT) (envelope-from lulf@stud.ntnu.no) Received: from localhost (localhost [127.0.0.1]) by fri.itea.ntnu.no (Postfix) with ESMTP id 852B58187 for ; Mon, 14 Aug 2006 09:31:28 +0200 (CEST) Received: from gaupe.stud.ntnu.no (gaupe.stud.ntnu.no [129.241.56.184]) by fri.itea.ntnu.no (Postfix) with ESMTP for ; Mon, 14 Aug 2006 09:31:28 +0200 (CEST) Received: by gaupe.stud.ntnu.no (Postfix, from userid 2312) id 4D593CFFFC; Mon, 14 Aug 2006 09:31:28 +0200 (CEST) Date: Mon, 14 Aug 2006 09:31:28 +0200 From: Ulf Lilleengen To: freebsd-geom@FreeBSD.org Message-ID: <20060814073128.GA27499@stud.ntnu.no> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Dxnq1zWXvFF0Q93v" Content-Disposition: inline User-Agent: Mutt/1.5.9i X-Content-Scanned: with sophos and spamassassin at mailgw.ntnu.no. Cc: Subject: gvinum drivegroups and concat command 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, 14 Aug 2006 07:32:11 -0000 --Dxnq1zWXvFF0Q93v Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, I'm doing work on gvinum these days, and I've implemented a possibility of drivegroups. It is possible to add drives to group at creation, but it will= also be possible to add drives to groups afterwards. The advantage with drivegro= ups are not very big right now, but I've started to work on the first command t= hat will take utilization of drivegroups. The concat command creates a concatenated volume, and from old vinum, it us= es drives as parameter. With drivegroups one can now still specify drives, or groups or you don't even have to specify anything but the size, as gvinum t= hen will use the default drivegroup and create a volume for you there. This is how i think the concat command should be like: - if name not specified, use drivegroup-volnum (maybe somethingelse) - size must be specified, or maybe a "fill drives/group" argument? - if group specified, it tries to create subdisks on all drives in = the drivegroup. - if drivegroup not specified, and neither drives; use defaultdrivegroup. - if drives specified, use them. overrides drivegroups. The general usage will be: concat [-f] [-n name] [-v] [-g group] [drives] Further advantages with drivegroups can be the mirror and stripe commands, = as well as the possibility to move drivegroups between different machines and = group your drives into logical collections. There will be more on this later. If anyone have any suggestions, I would like to hear it, as I'm starting on implementing these commands now and think it's very important that it's bei= ng done right. If I have overlooked anything, feel free to comment. Other improvements in gvinum is mentioned in the lastest status report. --=20 Mvh Ulf Lilleengen --Dxnq1zWXvFF0Q93v Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQFE4CbQCILg8nMIdCURAj1yAJ0Yya5w19mOHGucEqW/nev6Rr4TXwCfcUUU V4u/whOB8MvKUJL3CgWVsfA= =WJ7n -----END PGP SIGNATURE----- --Dxnq1zWXvFF0Q93v-- From owner-freebsd-geom@FreeBSD.ORG Tue Aug 15 13:10:22 2006 Return-Path: X-Original-To: freebsd-geom@hub.freebsd.org Delivered-To: freebsd-geom@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B1AF616A4DD for ; Tue, 15 Aug 2006 13:10:22 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7CC2443D49 for ; Tue, 15 Aug 2006 13:10:22 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k7FDAMB2019459 for ; Tue, 15 Aug 2006 13:10:22 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k7FDAMQF019458; Tue, 15 Aug 2006 13:10:22 GMT (envelope-from gnats) Date: Tue, 15 Aug 2006 13:10:22 GMT Message-Id: <200608151310.k7FDAMQF019458@freefall.freebsd.org> To: freebsd-geom@FreeBSD.org From: mglaum@sdf.lonestar.org Cc: Subject: Re: kern/98538: [geom] Kernel panic on ggate destroy X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: mglaum@sdf.lonestar.org List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Aug 2006 13:10:22 -0000 The following reply was made to PR kern/98538; it has been noted by GNATS. From: mglaum@sdf.lonestar.org To: bug-followup@FreeBSD.org Cc: Subject: Re: kern/98538: [geom] Kernel panic on ggate destroy Date: Tue, 15 Aug 2006 13:08:07 -0000 (UTC) A quick glance at /usr/src/sys/geom/gate/g_gate.c, I suspect the problem is that in the g_gate_ioctl() switch case G_GATE_CMD_DESTROY, there's a mtx_lock() but no subsequent mtx_unlock(). I've got a patch devised, below, but do not have the time or resources to try it. Would someone be willing to review this, try a patch and run a test? The Makefile is in /usr/src/sys/modules/geom/geom_gate. Again, I'm not sure about the positioning of the mtx_unlock(). Michael Glaum KVH Industries mglaum@kvh.com [patch for /usr/src/sys/geom/gate/g_gate.c] --- g_gate.c Tue Aug 1 16:00:34 2006 +++ g_gate.c.orig Tue Aug 1 16:00:02 2006 @@ -487,7 +487,6 @@ error = g_gate_destroy(sc, ggio->gctl_force); if (error == 0) g_gate_wither(sc); - mtx_unlock(&g_gate_list_mtx); g_topology_unlock(); g_gate_release(sc); return (error); From owner-freebsd-geom@FreeBSD.ORG Tue Aug 15 22:48:10 2006 Return-Path: X-Original-To: freebsd-geom@freebsd.org Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E566A16A4E2 for ; Tue, 15 Aug 2006 22:48:10 +0000 (UTC) (envelope-from uucp@brian.han.de) Received: from baghira.han.de (baghira.han.de [62.48.90.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6EC3243D70 for ; Tue, 15 Aug 2006 22:47:52 +0000 (GMT) (envelope-from uucp@brian.han.de) Received: by baghira.han.de (Postfix, from userid 10) id 60F01CDA2E; Wed, 16 Aug 2006 00:47:43 +0200 (MEST) Received: (qmail 6973 invoked by uid 10); 16 Aug 2006 00:38:15 -0000 MBOX-Line: From owner-freebsd-current@freebsd.org Sat Aug 12 17:42:00 2006 Received: from mx2.freebsd.org (mx2.freebsd.org [216.136.204.119]) by baghira.han.de (Postfix) with ESMTP id D5F40CD847 for ; Sat, 12 Aug 2006 17:41:59 +0200 (MEST) Received: from hub.freebsd.org (hub.freebsd.org [216.136.204.18]) by mx2.freebsd.org (Postfix) with ESMTP id B376A5C6E7; Sat, 12 Aug 2006 15:41:40 +0000 (GMT) (envelope-from owner-freebsd-current@freebsd.org) Received: from hub.freebsd.org (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with ESMTP id A3EAC16A5A0; Sat, 12 Aug 2006 15:41:30 +0000 (UTC) (envelope-from owner-freebsd-current@freebsd.org) X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5AFD116A4DE; Sat, 12 Aug 2006 15:41:23 +0000 (UTC) (envelope-from supraexpress@globaleyes.net) Received: from MX1.ll.net (mail.globaleyes.net [209.131.230.155]) by mx1.FreeBSD.org (Postfix) with ESMTP id DD51E43D49; Sat, 12 Aug 2006 15:41:22 +0000 (GMT) (envelope-from supraexpress@globaleyes.net) Received: from [10.0.0.5] (unverified [209.131.254.239]) by MX1.ll.net (Vircom SMTPRS 4.35.480.0) with ESMTP id ; Sat, 12 Aug 2006 10:41:19 -0500 X-Modus-BlackList: 209.131.254.239=OK;supraexpress@globaleyes.net=OK X-Modus-RBL: 209.131.254.239=Excluded X-Modus-Trusted: 209.131.254.239=NO Message-ID: <44DDF69F.7040104@globaleyes.net> Date: Sat, 12 Aug 2006 10:41:19 -0500 From: User1001 User-Agent: Thunderbird 1.5.0.5 (X11/20060806) MIME-Version: 1.0 To: freebsd-current@freebsd.org References: <20060808195202.GA1564@garage.freebsd.pl> <20060810232255.GE1389@garage.freebsd.pl> <20060811143257.E2260@fledge.watson.org> <20060812100328.GB73241@garage.freebsd.pl> In-Reply-To: <20060812100328.GB73241@garage.freebsd.pl> X-Enigmail-Version: 0.94.1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Sender: owner-freebsd-current@freebsd.org Errors-To: owner-freebsd-current@freebsd.org Cc: freebsd-geom@freebsd.org Subject: Verifying GELI disk encryption X-BeenThere: freebsd-geom@freebsd.org List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Aug 2006 22:48:11 -0000 What are some relatively simple ways to verify the encryption of/on a GELI device? _______________________________________________ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" From owner-freebsd-geom@FreeBSD.ORG Tue Aug 15 23:00:54 2006 Return-Path: X-Original-To: freebsd-geom@freebsd.org Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 17F2A16A4DF for ; Tue, 15 Aug 2006 23:00:54 +0000 (UTC) (envelope-from arne_woerner@yahoo.com) Received: from web30305.mail.mud.yahoo.com (web30305.mail.mud.yahoo.com [209.191.69.67]) by mx1.FreeBSD.org (Postfix) with SMTP id 8038643D77 for ; Tue, 15 Aug 2006 23:00:49 +0000 (GMT) (envelope-from arne_woerner@yahoo.com) Received: (qmail 16129 invoked by uid 60001); 15 Aug 2006 23:00:48 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=VZ+5NCiEVW5BE6Le6/Q0Iq8C2TzvCycHdjD5IGLjKgq4H8y+ibAzM81mrGvz+5zfz1cjHfQWI9bTJrQt63HsfCTZmXN/PgxRQRCidLI5BmAwXs6n4eIRY5Mv5qRFrX18F/tA/BkFqQ7mFNj5MrQE36CjztGBlMFMXuq1OHLJr4g= ; Message-ID: <20060815230048.16127.qmail@web30305.mail.mud.yahoo.com> Received: from [213.54.79.179] by web30305.mail.mud.yahoo.com via HTTP; Tue, 15 Aug 2006 16:00:48 PDT Date: Tue, 15 Aug 2006 16:00:48 -0700 (PDT) From: "R. B. Riddick" To: User1001 In-Reply-To: <44DDF69F.7040104@globaleyes.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Cc: freebsd-geom@freebsd.org Subject: Re: Verifying GELI disk encryption 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, 15 Aug 2006 23:00:54 -0000 --- User1001 wrote: > What are some relatively simple ways to verify the encryption of/on a > GELI device? > Hmm... You could compare sector-wise the content of the encrypted and the clear device. If u find a match the encryption is not so strong... :-) WARNING! The following idea (if realized) might destroy important data): You could write a certain pattern to the device and then u could read from the device and compare the result to the pattern. If u find a mismatch the encryption was irreversible. :-) Or what did u mean? The strength of cryptographic algorithms is often (e. g. in case of GEOM's GELI) not so obvious, because: There might be a mathematical trick, that solves the underlying problem without the secret, or there might be a technical trick (e. g. a time machine or something even more weird (maybe something with parallel time lines that can be split whenever a decision has to be made (like in StarTrek TNG with Cpt. Picard))), that solves the underlying problem with brute force in linear time (linear in the amount of decisions, that have to be made; e. g. 16 bit secret results in 16 decisions) or even faster (whenever a decision turns out to be wrong, a failure message is sent back to the past - like in the movie Butterfly Effect). :-) -Arne __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From owner-freebsd-geom@FreeBSD.ORG Wed Aug 16 02:49:22 2006 Return-Path: X-Original-To: freebsd-geom@freebsd.org Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1D75B16A4DD for ; Wed, 16 Aug 2006 02:49:22 +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 3492243D5D for ; Wed, 16 Aug 2006 02:49:20 +0000 (GMT) (envelope-from gcubfg-freebsd-geom@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1GDBT1-0004iY-71 for freebsd-geom@freebsd.org; Wed, 16 Aug 2006 04:49:15 +0200 Received: from cmung2188.cmu.carnet.hr ([193.198.136.156]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 16 Aug 2006 04:49:15 +0200 Received: from ivoras by cmung2188.cmu.carnet.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 16 Aug 2006 04:49:15 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-geom@freebsd.org From: Ivan Voras Date: Wed, 16 Aug 2006 04:49:10 +0200 Lines: 26 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: cmung2188.cmu.carnet.hr User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) Sender: news Subject: GEOM virtual storage early alpha 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, 16 Aug 2006 02:49:22 -0000 As part of Google's Summer Of Code 2006, I've been working on a "virtual storage" class for GEOM. The purpose of this class is to allow creating a large virtual storage device backed up by physical storage devices of smaller total size. The development home page for the project is http://wikitest.freebsd.org/gvirstor (where you can download a convenient .tgz). Gvirstor (under whatever name it will be when it's finished) is almost done. The basic operation and metadata are not expected to change, so I think this is a good time for wider exposure. Some minor functionality is still unimplemented, like "stop" command (from userland, not kldunload). If anyone's interested, please help test the module. It can be downloaded from the above web page (use the latest archive), or from //depot/user/ivoras/gvirstor in P4. Notes: - This is work in progress, not finished. Do not alert the media :) - This is a good time for feature requests (that fit in gvirstor's model). - Read the README (or the man page if you use P4) for instructions on how to use it. - This is made for RELENG_6, and only tested on i386. Bug reports are welcome. - Sponsored by Google, mentor: Pawel Jakub Dawidek, pjd at freebsd.org - I'll make an official announcement when the project's done and ready for use. From owner-freebsd-geom@FreeBSD.ORG Wed Aug 16 11:37:47 2006 Return-Path: X-Original-To: freebsd-geom@FreeBSD.org Delivered-To: freebsd-geom@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8BFCD16A4DF for ; Wed, 16 Aug 2006 11:37:47 +0000 (UTC) (envelope-from danny@dannysplace.net) Received: from mail.dannysplace.net (mail.dannysplace.net [213.133.54.210]) by mx1.FreeBSD.org (Postfix) with ESMTP id 31B0B43D78 for ; Wed, 16 Aug 2006 11:37:47 +0000 (GMT) (envelope-from danny@dannysplace.net) Received: from localhost ([127.0.0.1]) by mail.dannysplace.net with esmtpa (Exim 4.62 (FreeBSD)) (envelope-from ) id 1GDJhz-000D0Z-KN for freebsd-geom@FreeBSD.org; Wed, 16 Aug 2006 13:37:17 +0200 Message-ID: <44E30387.5000203@dannysplace.net> Date: Wed, 16 Aug 2006 13:37:43 +0200 From: Danny Carroll User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) MIME-Version: 1.0 To: freebsd-geom@FreeBSD.org X-Enigmail-Version: 0.94.0.0 OpenPGP: id=FF80FAEB Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: danny@dannysplace.net X-SA-Exim-Scanned: No (on mail.dannysplace.net); SAEximRunCond expanded to false Cc: Subject: Mirror MBR? 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, 16 Aug 2006 11:37:47 -0000 Hello all. I had a question about gmirror. I am using Ralf S Engelschall's mirroring solution at http://people.freebsd.org/~rse/mirror/ I used solution one, since I am sure that I will never be using any different disks. It's a pizzabox server, and I don't expect data growth so the current disks are fine. My main question is about the MBR. I dont see anywhere in the doc where I should put a new boot record on the disk after doing: dd if=/dev/zero of=/dev/ad0 bs=512 count=79 Does this mean that the MBR from the mirror gets put onto this first disk? I ask because, I need to know what should happen when I need to replace a disk. I know that after replacing the disk I should probably have to do something like this: (Assume ad0 is the new disk) gmirror configure -a gm0 gmirror insert gm0 /dev/ad1 But does that guarantee me that if ad0 fails, then I still have a bootable system (assuming bios knows to boot of ad1). Thanks for your time. From owner-freebsd-geom@FreeBSD.ORG Wed Aug 16 12:50:57 2006 Return-Path: X-Original-To: freebsd-geom@FreeBSD.org Delivered-To: freebsd-geom@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C88F216A4DE for ; Wed, 16 Aug 2006 12:50:57 +0000 (UTC) (envelope-from arne_woerner@yahoo.com) Received: from web30312.mail.mud.yahoo.com (web30312.mail.mud.yahoo.com [209.191.69.74]) by mx1.FreeBSD.org (Postfix) with SMTP id 85B9343D49 for ; Wed, 16 Aug 2006 12:50:56 +0000 (GMT) (envelope-from arne_woerner@yahoo.com) Received: (qmail 85638 invoked by uid 60001); 16 Aug 2006 12:50:55 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=0/M4uCh43DfgemFn1NxEnJVvITM/MUn9W0DbU7wjYTHHNjcfIGPO31OD7OOqmyjkv9hgW9pxmva1f1AAd97h3UDReCjVRuBVVykZwA6Hc6EOZV17XvxKSD3NetROVSRLAKxETM2Fitavof02HfqWTYsMS98/CrICCpVVgQD2kdA= ; Message-ID: <20060816125055.85636.qmail@web30312.mail.mud.yahoo.com> Received: from [213.54.79.182] by web30312.mail.mud.yahoo.com via HTTP; Wed, 16 Aug 2006 05:50:55 PDT Date: Wed, 16 Aug 2006 05:50:55 -0700 (PDT) From: "R. B. Riddick" To: Danny Carroll , freebsd-geom@FreeBSD.org In-Reply-To: <44E30387.5000203@dannysplace.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Cc: Subject: Re: Mirror MBR? 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, 16 Aug 2006 12:50:57 -0000 --- Danny Carroll wrote: > My main question is about the MBR. I dont see anywhere in the doc where > I should put a new boot record on the disk after doing: > If u mirror the whole disk (solution 1) the first sectors should be mirrored like the others (but not the last, which contains disk specific meta data). > dd if=/dev/zero of=/dev/ad0 bs=512 count=79 > What is that good for? Doesn't gmirror synchronize automatically? > Does this mean that the MBR from the mirror gets put onto this first disk? > During boot stages gmirror is not known. All boot programmes (BIOS, stage1, stage2, stage3) use the data on the first sectors of the disk, slice and/or partition) for booting... When the system mounts the root file system gmirror is needed and used if proper configured (that would be: gmirror module loaded before boot or compiled to kernel). > I ask because, I need to know what should happen when I need to replace > a disk. > If I were u, I would simulate all (or the imporant) scenarios: E. g.: 1. One disk failed while power is off... 2. One disk is added while power is off... 3. One disk recovers after power on (e. g. after a power failure, which corrupted the mirror)... If you are really busy as a bee, you could try putting a geom_nop device into the mirror and see, what happens if u suddenly configure the nop-disk to behave like a really bad disk... :-) > I know that after replacing the disk I should probably have to do > something like this: (Assume ad0 is the new disk) > > gmirror configure -a gm0 > What is that good for? I run my geom_mirrors always in AUTO_SYNC mode... E. g. in case of a power failure or so... > But does that guarantee me that if ad0 fails, then I still have a > bootable system (assuming bios knows to boot of ad1). > Yes, it should. At least if the BIOS is smart enough to look for another disk if the first one mentioned in BIOS configuration behaves like a dead disk... I tested it on my box and I think, that it worked fine... <-- this was no sworn testimony... -Arne --- Arne likes "Kentucky Fried Movie" (especially "A fistful of yen") :-) __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From owner-freebsd-geom@FreeBSD.ORG Wed Aug 16 12:52:00 2006 Return-Path: X-Original-To: freebsd-geom@FreeBSD.org Delivered-To: freebsd-geom@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 59A8116A509 for ; Wed, 16 Aug 2006 12:52:00 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from home.quip.cz (grimm.quip.cz [213.220.192.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id D76C643D49 for ; Wed, 16 Aug 2006 12:51:59 +0000 (GMT) (envelope-from 000.fbsd@quip.cz) Received: from [192.168.1.2] (qwork.quip.test [192.168.1.2]) by home.quip.cz (Postfix) with ESMTP id 95B3279F8; Wed, 16 Aug 2006 14:51:57 +0200 (CEST) Message-ID: <44E314ED.3050305@quip.cz> Date: Wed, 16 Aug 2006 14:51:57 +0200 From: Miroslav Lachman <000.fbsd@quip.cz> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 X-Accept-Language: cs, cz, en, en-us MIME-Version: 1.0 To: Danny Carroll References: <44E30387.5000203@dannysplace.net> In-Reply-To: <44E30387.5000203@dannysplace.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-geom@FreeBSD.org Subject: Re: Mirror MBR? 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, 16 Aug 2006 12:52:00 -0000 Danny Carroll wrote: > Hello all. > > I had a question about gmirror. I am using Ralf S Engelschall's > mirroring solution at http://people.freebsd.org/~rse/mirror/ > > I used solution one, since I am sure that I will never be using any > different disks. It's a pizzabox server, and I don't expect data growth > so the current disks are fine. > > My main question is about the MBR. I dont see anywhere in the doc where > I should put a new boot record on the disk after doing: > > dd if=/dev/zero of=/dev/ad0 bs=512 count=79 > > Does this mean that the MBR from the mirror gets put onto this first disk? > > I ask because, I need to know what should happen when I need to replace > a disk. > > I know that after replacing the disk I should probably have to do > something like this: (Assume ad0 is the new disk) > > gmirror configure -a gm0 > gmirror insert gm0 /dev/ad1 > > But does that guarantee me that if ad0 fails, then I still have a > bootable system (assuming bios knows to boot of ad1). I am using gmirror from this HowTo: http://www.onlamp.com/pub/a/bsd/2005/11/10/FreeBSD_Basics.html After disk replacement (done today), I made just two commands: gmirror forget gm0 gmirror insert -v gm0 ad6 First command is to "forget about old (not available) disk drive", the second adds new disk in to mirror gm0 and start autosynchronization (configure -a is default, so is not needed) Gmirror can boot from any drive, I think MBR is on both drives. Miroslav Lachman From owner-freebsd-geom@FreeBSD.ORG Wed Aug 16 12:58:00 2006 Return-Path: X-Original-To: freebsd-geom@FreeBSD.org Delivered-To: freebsd-geom@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7985B16A4DA; Wed, 16 Aug 2006 12:58:00 +0000 (UTC) (envelope-from marck@rinet.ru) Received: from woozle.rinet.ru (woozle.rinet.ru [195.54.192.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id BB62E43D46; Wed, 16 Aug 2006 12:57:59 +0000 (GMT) (envelope-from marck@rinet.ru) Received: from localhost (localhost [127.0.0.1]) by woozle.rinet.ru (8.13.6/8.13.6) with ESMTP id k7GCvwJ5072269; Wed, 16 Aug 2006 16:57:58 +0400 (MSD) (envelope-from marck@rinet.ru) Date: Wed, 16 Aug 2006 16:57:58 +0400 (MSD) From: Dmitry Morozovsky To: Pawel Jakub Dawidek Message-ID: <20060816164748.D71445@woozle.rinet.ru> X-NCC-RegID: ru.rinet X-OpenPGP-Key-ID: 6B691B03 MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (woozle.rinet.ru [0.0.0.0]); Wed, 16 Aug 2006 16:57:58 +0400 (MSD) Cc: freebsd-geom@FreeBSD.org Subject: gjournal setup and tuning 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, 16 Aug 2006 12:58:00 -0000 Hi there Pawel, are there any resources about "proper" gjournal setup and tuning? Or, can you recommend any seettings for some basic setups, such as - ftp/web server (mostly reads, resides on graid3) - database server (gmirror or gstripe on top of gmirrors) ? Thanks in advance. Sincerely, D.Marck [DM5020, MCK-RIPE, DM3-RIPN] ------------------------------------------------------------------------ *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru *** ------------------------------------------------------------------------ From owner-freebsd-geom@FreeBSD.ORG Thu Aug 17 02:54:45 2006 Return-Path: X-Original-To: freebsd-geom@freebsd.org Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CF2C916A4DA; Thu, 17 Aug 2006 02:54:45 +0000 (UTC) (envelope-from anderson@centtech.com) Received: from mh2.centtech.com (moat3.centtech.com [207.200.51.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7070C43D45; Thu, 17 Aug 2006 02:54:43 +0000 (GMT) (envelope-from anderson@centtech.com) Received: from [192.168.42.24] (andersonbox4.centtech.com [192.168.42.24]) by mh2.centtech.com (8.13.1/8.13.1) with ESMTP id k7H2sgWI074632; Wed, 16 Aug 2006 21:54:42 -0500 (CDT) (envelope-from anderson@centtech.com) Message-ID: <44E3DA8A.8060808@centtech.com> Date: Wed, 16 Aug 2006 21:55:06 -0500 From: Eric Anderson User-Agent: Thunderbird 1.5.0.5 (X11/20060802) MIME-Version: 1.0 To: Pawel Jakub Dawidek References: <20060808195202.GA1564@garage.freebsd.pl> <20060810192152.GE57857@europa.expro.pl> <20060810194304.GB1345@garage.freebsd.pl> <20060810200135.GF57857@europa.expro.pl> <20060810223901.GC1389@garage.freebsd.pl> In-Reply-To: <20060810223901.GC1389@garage.freebsd.pl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.87.1/1673/Wed Aug 16 18:20:48 2006 on mh2.centtech.com X-Virus-Status: Clean Cc: freebsd-fs@freebsd.org, freebsd-geom@freebsd.org Subject: Re: GJournal (hopefully) final patches. 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, 17 Aug 2006 02:54:45 -0000 On 08/10/06 17:39, Pawel Jakub Dawidek wrote: > On Thu, Aug 10, 2006 at 10:01:35PM +0200, Jan Srzednicki wrote: >> On Thu, Aug 10, 2006 at 09:43:04PM +0200, Pawel Jakub Dawidek wrote: >>> On Thu, Aug 10, 2006 at 09:21:52PM +0200, Jan Srzednicki wrote: >>>> Hello, >>>> >>>> I'd happily perform some testing, only if the aac(4) driver would also >>>> be patched. I know I can run gjournal w/o the BIO_FLUSH feature, but >>>> that would make any performance results rather worthles, wouldn't it? >>> From my tests BIO_FLUSH doesn't have huge impact on performance (if at >>> all), but I suspect it greatly depends on specific HW. >>> >>> Unfortunately I'm not able to implement BIO_FLUSH to all out storage >>> drivers. Currently BIO_FLUSH is supported by ata(4) (/dev/a[dr]X), >>> da(4) and amr(4). >> I see. Does that mean that all CAM-interfaced devices (like asr(4) or >> twa(4)) have this feature fully implemented? > > That's the theory. I'm using standard SCSI commands for this. From the > tests we made it seems that it works ok with twa(4)/twe(4). > I'd still be glad if someone with SCSI/CAM foo could look at the code. > By the way, this is true for at least the QLogic Fiber channel cards (isp). Eric -- ------------------------------------------------------------------------ Eric Anderson Sr. Systems Administrator Centaur Technology Anything that works is better than anything that doesn't. ------------------------------------------------------------------------ From owner-freebsd-geom@FreeBSD.ORG Thu Aug 17 13:14:19 2006 Return-Path: X-Original-To: freebsd-geom@freebsd.org Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5DD8316A4DD; Thu, 17 Aug 2006 13:14:19 +0000 (UTC) (envelope-from anderson@centtech.com) Received: from mh2.centtech.com (moat3.centtech.com [207.200.51.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8299F43F80; Thu, 17 Aug 2006 13:08:40 +0000 (GMT) (envelope-from anderson@centtech.com) Received: from [10.177.171.220] (neutrino.centtech.com [10.177.171.220]) by mh2.centtech.com (8.13.1/8.13.1) with ESMTP id k7HD8Wo5072469; Thu, 17 Aug 2006 08:08:32 -0500 (CDT) (envelope-from anderson@centtech.com) Message-ID: <44E46A68.6080602@centtech.com> Date: Thu, 17 Aug 2006 08:08:56 -0500 From: Eric Anderson User-Agent: Thunderbird 1.5.0.5 (X11/20060802) MIME-Version: 1.0 To: Pawel Jakub Dawidek References: <20060808195202.GA1564@garage.freebsd.pl> In-Reply-To: <20060808195202.GA1564@garage.freebsd.pl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.87.1/1676/Thu Aug 17 05:45:34 2006 on mh2.centtech.com X-Virus-Status: Clean Cc: freebsd-fs@freebsd.org, freebsd-geom@freebsd.org Subject: Re: GJournal (hopefully) final patches. 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, 17 Aug 2006 13:14:19 -0000 On 08/08/06 14:52, Pawel Jakub Dawidek wrote: > Hi. > > I'm pleased to announce hopefully the final gjournal patches. [..snip..] > To create journaled UFS file system on ad0s1d partition: > > # gjournal load > # gjournal label ad0s1d > # newfs -J /dev/ad0s1d.journal > # mount -o noatime,async /dev/ad0s1d.journal /mnt > > On reboot 'fsck_ffs -p /dev/ad0s1d.journal' will perform fast check. One > can still run regular check by not giving the -p option. I have a 10TB filesystem I created as above, and recently a crash caused it to now complain about the filesystem being dirty. When I do an fsck -p, here's what I get: # fsck -p /dev/label/vol10 /dev/label/vol10: UNEXPECTED INCONSISTENCY, CANNOT RUN FAST FSCK /dev/label/vol10: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY. # geom journal list Geom name: gjournal 647039251 ID: 647039251 Providers: 1. Name: da10.journal Mediasize: 10494183210496 (9.5T) Sectorsize: 512 Mode: r0w0e0 Consumers: 1. Name: da9 Mediasize: 7996964864 (7.4G) Sectorsize: 512 Mode: r1w1e1 Jend: 7996964352 Jstart: 0 Role: Journal 2. Name: da10 Mediasize: 10494183211008 (9.5T) Sectorsize: 512 Mode: r1w1e1 Role: Data GEOM_JOURNAL: Journal 647039251: da9 contains journal. GEOM_JOURNAL: Journal 647039251: da10 contains data. GEOM_JOURNAL: Journal da10 consistent. GEOM_JOURNAL: BIO_FLUSH supported by da9. GEOM_JOURNAL: BIO_FLUSH supported by da10. GEOM_LABEL: Label for provider da10.journal is label/vol10. # tunefs -p /dev/label/vol10 tunefs: ACLs: (-a) disabled tunefs: MAC multilabel: (-l) disabled tunefs: soft updates: (-n) enabled tunefs: gjournal: (-J) enabled tunefs: maximum blocks per file in a cylinder group: (-e) 2048 tunefs: average file size: (-f) 16384 tunefs: average number of files in a directory: (-s) 64 tunefs: minimum percentage of free space: (-m) 8% tunefs: optimization preference: (-o) time tunefs: volume label: (-L) -- ------------------------------------------------------------------------ Eric Anderson Sr. Systems Administrator Centaur Technology Anything that works is better than anything that doesn't. ------------------------------------------------------------------------ From owner-freebsd-geom@FreeBSD.ORG Thu Aug 17 14:09:17 2006 Return-Path: X-Original-To: freebsd-geom@freebsd.org Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EBD0B16A4DD; Thu, 17 Aug 2006 14:09:17 +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 ECC2F43D6E; Thu, 17 Aug 2006 14:09:07 +0000 (GMT) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id D0C305138A; Thu, 17 Aug 2006 16:09:05 +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 A3BB251339; Thu, 17 Aug 2006 16:09:00 +0200 (CEST) Date: Thu, 17 Aug 2006 16:08:57 +0200 From: Pawel Jakub Dawidek To: Eric Anderson Message-ID: <20060817140857.GB78978@garage.freebsd.pl> References: <20060808195202.GA1564@garage.freebsd.pl> <44E46A68.6080602@centtech.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="hHWLQfXTYDoKhP50" Content-Disposition: inline In-Reply-To: <44E46A68.6080602@centtech.com> X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 7.0-CURRENT i386 User-Agent: mutt-ng/devel-r804 (FreeBSD) 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-fs@freebsd.org, freebsd-geom@freebsd.org Subject: Re: GJournal (hopefully) final patches. 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, 17 Aug 2006 14:09:18 -0000 --hHWLQfXTYDoKhP50 Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Aug 17, 2006 at 08:08:56AM -0500, Eric Anderson wrote: > On 08/08/06 14:52, Pawel Jakub Dawidek wrote: > >Hi. > >I'm pleased to announce hopefully the final gjournal patches. > [..snip..] > >To create journaled UFS file system on ad0s1d partition: > > # gjournal load > > # gjournal label ad0s1d > > # newfs -J /dev/ad0s1d.journal > > # mount -o noatime,async /dev/ad0s1d.journal /mnt > >On reboot 'fsck_ffs -p /dev/ad0s1d.journal' will perform fast check. One > >can still run regular check by not giving the -p option. >=20 > I have a 10TB filesystem I created as above, and recently a crash caused = it to now complain about the filesystem being dirty. When I do an fsck -p,= here's what I get: >=20 > # fsck -p /dev/label/vol10 > /dev/label/vol10: UNEXPECTED INCONSISTENCY, CANNOT RUN FAST FSCK >=20 >=20 > /dev/label/vol10: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY. Do you have log from the boot before you saw this? I corrected one bug, but it was only possible to trigger when crash happened early in the boot process. Your crash was during or just after a boot maybe? --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --hHWLQfXTYDoKhP50 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.4 (FreeBSD) iD8DBQFE5Hh5ForvXbEpPzQRApI3AJ4k8nAJN9knFGuwcs6s9mJXdYFohgCeNATX 637xfew2YT2UEFT8V2dI5bo= =dD5d -----END PGP SIGNATURE----- --hHWLQfXTYDoKhP50-- From owner-freebsd-geom@FreeBSD.ORG Thu Aug 17 14:48:10 2006 Return-Path: X-Original-To: freebsd-geom@FreeBSD.org Delivered-To: freebsd-geom@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 83CD716A4E0; Thu, 17 Aug 2006 14:48:10 +0000 (UTC) (envelope-from anderson@centtech.com) Received: from mh2.centtech.com (moat3.centtech.com [207.200.51.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2345543D5E; Thu, 17 Aug 2006 14:48:09 +0000 (GMT) (envelope-from anderson@centtech.com) Received: from [10.177.171.220] (neutrino.centtech.com [10.177.171.220]) by mh2.centtech.com (8.13.1/8.13.1) with ESMTP id k7HEm69D088290; Thu, 17 Aug 2006 09:48:08 -0500 (CDT) (envelope-from anderson@centtech.com) Message-ID: <44E481BE.2080408@centtech.com> Date: Thu, 17 Aug 2006 09:48:30 -0500 From: Eric Anderson User-Agent: Thunderbird 1.5.0.5 (X11/20060802) MIME-Version: 1.0 To: Pawel Jakub Dawidek References: <20060808195202.GA1564@garage.freebsd.pl> <44E46A68.6080602@centtech.com> <20060817140857.GB78978@garage.freebsd.pl> In-Reply-To: <20060817140857.GB78978@garage.freebsd.pl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.87.1/1677/Thu Aug 17 08:56:09 2006 on mh2.centtech.com X-Virus-Status: Clean Cc: freebsd-fs@FreeBSD.org, freebsd-geom@FreeBSD.org Subject: Re: GJournal (hopefully) final patches. 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, 17 Aug 2006 14:48:10 -0000 On 08/17/06 09:08, Pawel Jakub Dawidek wrote: > On Thu, Aug 17, 2006 at 08:08:56AM -0500, Eric Anderson wrote: >> On 08/08/06 14:52, Pawel Jakub Dawidek wrote: >>> Hi. >>> I'm pleased to announce hopefully the final gjournal patches. >> [..snip..] >>> To create journaled UFS file system on ad0s1d partition: >>> # gjournal load >>> # gjournal label ad0s1d >>> # newfs -J /dev/ad0s1d.journal >>> # mount -o noatime,async /dev/ad0s1d.journal /mnt >>> On reboot 'fsck_ffs -p /dev/ad0s1d.journal' will perform fast check. One >>> can still run regular check by not giving the -p option. >> I have a 10TB filesystem I created as above, and recently a crash caused it to now complain about the filesystem being dirty. When I do an fsck -p, here's what I get: >> >> # fsck -p /dev/label/vol10 >> /dev/label/vol10: UNEXPECTED INCONSISTENCY, CANNOT RUN FAST FSCK >> >> >> /dev/label/vol10: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY. > > Do you have log from the boot before you saw this? > I corrected one bug, but it was only possible to trigger when crash > happened early in the boot process. Your crash was during or just after > a boot maybe? > Yes, I have the logs. What should I send you? Also, I just tried newfs'ing a new journaled device, and mounting it, then a few minutes later, crashing the system (not purposely though), and it too gives the same results as the other filesystem (same specs, 10Tb, etc). The first crash was within about 30 minutes of booting, the second one was about the same time-frame. Eric -- ------------------------------------------------------------------------ Eric Anderson Sr. Systems Administrator Centaur Technology Anything that works is better than anything that doesn't. ------------------------------------------------------------------------ From owner-freebsd-geom@FreeBSD.ORG Thu Aug 17 15:00:21 2006 Return-Path: X-Original-To: freebsd-geom@FreeBSD.org Delivered-To: freebsd-geom@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 54FA416A4DF; Thu, 17 Aug 2006 15:00:21 +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 B513343D5C; Thu, 17 Aug 2006 15:00:18 +0000 (GMT) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id AB5235133B; Thu, 17 Aug 2006 17:00:17 +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 74AF750EA7; Thu, 17 Aug 2006 17:00:05 +0200 (CEST) Date: Thu, 17 Aug 2006 17:00:02 +0200 From: Pawel Jakub Dawidek To: Eric Anderson Message-ID: <20060817150001.GC78978@garage.freebsd.pl> References: <20060808195202.GA1564@garage.freebsd.pl> <44E46A68.6080602@centtech.com> <20060817140857.GB78978@garage.freebsd.pl> <44E481BE.2080408@centtech.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ZmUaFz6apKcXQszQ" Content-Disposition: inline In-Reply-To: <44E481BE.2080408@centtech.com> X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 7.0-CURRENT i386 User-Agent: mutt-ng/devel-r804 (FreeBSD) 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-fs@FreeBSD.org, freebsd-geom@FreeBSD.org Subject: Re: GJournal (hopefully) final patches. 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, 17 Aug 2006 15:00:21 -0000 --ZmUaFz6apKcXQszQ Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Aug 17, 2006 at 09:48:30AM -0500, Eric Anderson wrote: > On 08/17/06 09:08, Pawel Jakub Dawidek wrote: > >On Thu, Aug 17, 2006 at 08:08:56AM -0500, Eric Anderson wrote: > >>On 08/08/06 14:52, Pawel Jakub Dawidek wrote: > >>>Hi. > >>>I'm pleased to announce hopefully the final gjournal patches. > >>[..snip..] > >>>To create journaled UFS file system on ad0s1d partition: > >>> # gjournal load > >>> # gjournal label ad0s1d > >>> # newfs -J /dev/ad0s1d.journal > >>> # mount -o noatime,async /dev/ad0s1d.journal /mnt > >>>On reboot 'fsck_ffs -p /dev/ad0s1d.journal' will perform fast check. O= ne > >>>can still run regular check by not giving the -p option. > >>I have a 10TB filesystem I created as above, and recently a crash cause= d it to now complain about the filesystem being dirty. When I do an fsck -= p, here's what I get: > >> > >># fsck -p /dev/label/vol10 > >>/dev/label/vol10: UNEXPECTED INCONSISTENCY, CANNOT RUN FAST FSCK > >> > >> > >>/dev/label/vol10: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY. > >Do you have log from the boot before you saw this? > >I corrected one bug, but it was only possible to trigger when crash > >happened early in the boot process. Your crash was during or just after > >a boot maybe? >=20 > Yes, I have the logs. What should I send you? I just need 'grep -i journal' from them. > Also, I just tried newfs'ing a new journaled device, and mounting it, the= n a few minutes later, crashing the system (not purposely though), and it t= oo gives the same=20 > results as the other filesystem (same specs, 10Tb, etc). >=20 > The first crash was within about 30 minutes of booting, the second one wa= s about the same time-frame. Maybe there was no writes? --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --ZmUaFz6apKcXQszQ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.4 (FreeBSD) iD8DBQFE5IRxForvXbEpPzQRArZ2AJ9MpJE0PmewY65ziM8n9nHFgabFRgCePMD3 qlD1J0dy7fV/q784cKACAiE= =X7eU -----END PGP SIGNATURE----- --ZmUaFz6apKcXQszQ-- From owner-freebsd-geom@FreeBSD.ORG Thu Aug 17 15:02:47 2006 Return-Path: X-Original-To: freebsd-geom@FreeBSD.org Delivered-To: freebsd-geom@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 482C916A4DA; Thu, 17 Aug 2006 15:02:47 +0000 (UTC) (envelope-from anderson@centtech.com) Received: from mh1.centtech.com (moat3.centtech.com [207.200.51.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 61DC843D8F; Thu, 17 Aug 2006 15:02:27 +0000 (GMT) (envelope-from anderson@centtech.com) Received: from [10.177.171.220] (neutrino.centtech.com [10.177.171.220]) by mh1.centtech.com (8.13.1/8.13.1) with ESMTP id k7HF2QqE091742; Thu, 17 Aug 2006 10:02:26 -0500 (CDT) (envelope-from anderson@centtech.com) Message-ID: <44E4851A.6020904@centtech.com> Date: Thu, 17 Aug 2006 10:02:50 -0500 From: Eric Anderson User-Agent: Thunderbird 1.5.0.5 (X11/20060802) MIME-Version: 1.0 To: Pawel Jakub Dawidek References: <20060808195202.GA1564@garage.freebsd.pl> <44E46A68.6080602@centtech.com> <20060817140857.GB78978@garage.freebsd.pl> <44E481BE.2080408@centtech.com> <20060817150001.GC78978@garage.freebsd.pl> In-Reply-To: <20060817150001.GC78978@garage.freebsd.pl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.87.1/1677/Thu Aug 17 08:56:09 2006 on mh1.centtech.com X-Virus-Status: Clean Cc: freebsd-fs@FreeBSD.org, freebsd-geom@FreeBSD.org Subject: Re: GJournal (hopefully) final patches. 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, 17 Aug 2006 15:02:47 -0000 On 08/17/06 10:00, Pawel Jakub Dawidek wrote: > On Thu, Aug 17, 2006 at 09:48:30AM -0500, Eric Anderson wrote: >> On 08/17/06 09:08, Pawel Jakub Dawidek wrote: >>> On Thu, Aug 17, 2006 at 08:08:56AM -0500, Eric Anderson wrote: >>>> On 08/08/06 14:52, Pawel Jakub Dawidek wrote: >>>>> Hi. >>>>> I'm pleased to announce hopefully the final gjournal patches. >>>> [..snip..] >>>>> To create journaled UFS file system on ad0s1d partition: >>>>> # gjournal load >>>>> # gjournal label ad0s1d >>>>> # newfs -J /dev/ad0s1d.journal >>>>> # mount -o noatime,async /dev/ad0s1d.journal /mnt >>>>> On reboot 'fsck_ffs -p /dev/ad0s1d.journal' will perform fast check. One >>>>> can still run regular check by not giving the -p option. >>>> I have a 10TB filesystem I created as above, and recently a crash caused it to now complain about the filesystem being dirty. When I do an fsck -p, here's what I get: >>>> >>>> # fsck -p /dev/label/vol10 >>>> /dev/label/vol10: UNEXPECTED INCONSISTENCY, CANNOT RUN FAST FSCK >>>> >>>> >>>> /dev/label/vol10: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY. >>> Do you have log from the boot before you saw this? >>> I corrected one bug, but it was only possible to trigger when crash >>> happened early in the boot process. Your crash was during or just after >>> a boot maybe? >> Yes, I have the logs. What should I send you? > > I just need 'grep -i journal' from them. > >> Also, I just tried newfs'ing a new journaled device, and mounting it, then a few minutes later, crashing the system (not purposely though), and it too gives the same >> results as the other filesystem (same specs, 10Tb, etc). >> >> The first crash was within about 30 minutes of booting, the second one was about the same time-frame. > > Maybe there was no writes? > There were no writes, absolutely. The only part of the fs that was touched, was the superblock (marking clean/dirty). Eric -- ------------------------------------------------------------------------ Eric Anderson Sr. Systems Administrator Centaur Technology Anything that works is better than anything that doesn't. ------------------------------------------------------------------------ From owner-freebsd-geom@FreeBSD.ORG Thu Aug 17 15:21:12 2006 Return-Path: X-Original-To: freebsd-geom@FreeBSD.org Delivered-To: freebsd-geom@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D34EB16A4DF; Thu, 17 Aug 2006 15:21: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 22D2043D55; Thu, 17 Aug 2006 15:21:10 +0000 (GMT) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id 76C4751392; Thu, 17 Aug 2006 17:21:09 +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 6A0C051339; Thu, 17 Aug 2006 17:21:02 +0200 (CEST) Date: Thu, 17 Aug 2006 17:20:59 +0200 From: Pawel Jakub Dawidek To: Eric Anderson Message-ID: <20060817152059.GD78978@garage.freebsd.pl> References: <20060808195202.GA1564@garage.freebsd.pl> <44E46A68.6080602@centtech.com> <20060817140857.GB78978@garage.freebsd.pl> <44E481BE.2080408@centtech.com> <20060817150001.GC78978@garage.freebsd.pl> <44E4851A.6020904@centtech.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="5p8PegU4iirBW1oA" Content-Disposition: inline In-Reply-To: <44E4851A.6020904@centtech.com> X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 7.0-CURRENT i386 User-Agent: mutt-ng/devel-r804 (FreeBSD) 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-fs@FreeBSD.org, freebsd-geom@FreeBSD.org Subject: Re: GJournal (hopefully) final patches. 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, 17 Aug 2006 15:21:12 -0000 --5p8PegU4iirBW1oA Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Aug 17, 2006 at 10:02:50AM -0500, Eric Anderson wrote: > >Maybe there was no writes? >=20 > There were no writes, absolutely. The only part of the fs that was touch= ed, was the superblock (marking clean/dirty). Ok, so this is the bug. When there was only one journal switch, gjournal will mark device as broken on boot. This is fixed in perforce already. I belive your file system is clean. Do you want to make it write-accessable again? --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --5p8PegU4iirBW1oA Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.4 (FreeBSD) iD8DBQFE5IlbForvXbEpPzQRAh1WAKDlLyvW6af5WZshCV2oM3LvGC0FnACgjBI0 jzEmu602KDd1KeMSol4vk7g= =+DPp -----END PGP SIGNATURE----- --5p8PegU4iirBW1oA-- From owner-freebsd-geom@FreeBSD.ORG Thu Aug 17 15:25:06 2006 Return-Path: X-Original-To: freebsd-geom@FreeBSD.org Delivered-To: freebsd-geom@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 36AFC16A4DF; Thu, 17 Aug 2006 15:25:06 +0000 (UTC) (envelope-from anderson@centtech.com) Received: from mh2.centtech.com (moat3.centtech.com [207.200.51.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id B761943D45; Thu, 17 Aug 2006 15:25:05 +0000 (GMT) (envelope-from anderson@centtech.com) Received: from [10.177.171.220] (neutrino.centtech.com [10.177.171.220]) by mh2.centtech.com (8.13.1/8.13.1) with ESMTP id k7HFP5f0094309; Thu, 17 Aug 2006 10:25:05 -0500 (CDT) (envelope-from anderson@centtech.com) Message-ID: <44E48A69.9010108@centtech.com> Date: Thu, 17 Aug 2006 10:25:29 -0500 From: Eric Anderson User-Agent: Thunderbird 1.5.0.5 (X11/20060802) MIME-Version: 1.0 To: Pawel Jakub Dawidek References: <20060808195202.GA1564@garage.freebsd.pl> <44E46A68.6080602@centtech.com> <20060817140857.GB78978@garage.freebsd.pl> <44E481BE.2080408@centtech.com> <20060817150001.GC78978@garage.freebsd.pl> <44E4851A.6020904@centtech.com> <20060817152059.GD78978@garage.freebsd.pl> In-Reply-To: <20060817152059.GD78978@garage.freebsd.pl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.87.1/1677/Thu Aug 17 08:56:09 2006 on mh2.centtech.com X-Virus-Status: Clean Cc: freebsd-fs@FreeBSD.org, freebsd-geom@FreeBSD.org Subject: Re: GJournal (hopefully) final patches. 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, 17 Aug 2006 15:25:06 -0000 On 08/17/06 10:20, Pawel Jakub Dawidek wrote: > On Thu, Aug 17, 2006 at 10:02:50AM -0500, Eric Anderson wrote: >>> Maybe there was no writes? >> There were no writes, absolutely. The only part of the fs that was touched, was the superblock (marking clean/dirty). > > Ok, so this is the bug. When there was only one journal switch, gjournal > will mark device as broken on boot. > This is fixed in perforce already. > > I belive your file system is clean. Do you want to make it > write-accessable again? > Yes, I believe it to be clean too. I can mount it rw, but I'd like to be able to 'convince' it that it is truly clean. Also - did you see my other thread about snapshot deadlock? Eric -- ------------------------------------------------------------------------ Eric Anderson Sr. Systems Administrator Centaur Technology Anything that works is better than anything that doesn't. ------------------------------------------------------------------------ From owner-freebsd-geom@FreeBSD.ORG Fri Aug 18 13:11:06 2006 Return-Path: X-Original-To: geom@freebsd.org Delivered-To: freebsd-geom@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E1EDA16A55C for ; Fri, 18 Aug 2006 13:11:06 +0000 (UTC) (envelope-from eksffa@freebsdbrasil.com.br) Received: from capeta.freebsdbrasil.com.br (vrrp.freebsdbrasil.com.br [200.210.70.30]) by mx1.FreeBSD.org (Postfix) with SMTP id E08F743D69 for ; Fri, 18 Aug 2006 13:10:51 +0000 (GMT) (envelope-from eksffa@freebsdbrasil.com.br) Received: (qmail 26916 invoked by uid 0); 18 Aug 2006 10:17:17 -0300 Received: from eksffa@freebsdbrasil.com.br by capeta.freebsdbrasil.com.br by uid 82 with qmail-scanner-1.22 (spamassassin: 2.64. Clear:RC:1(201.17.166.110):. Processed in 0.519609 secs); 18 Aug 2006 13:17:17 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=capeta; d=freebsdbrasil.com.br; b=WFGSGntlLuwNZ1CCxdunDjddSxa9X+lMdOUrHsri4nnClcjLAWH2f3N1tZUtp5BKJ6quuNcN/B732XVmguNgxtlKVXFbnaaQPkot4rDtbgEGqA7UGkPUffVMglOA1x2H ; Received: from unknown (HELO ?10.69.69.69?) (201.17.166.110) by capeta.freebsdbrasil.com.br with SMTP; 18 Aug 2006 10:17:16 -0300 Message-ID: <44E5BC56.5040200@freebsdbrasil.com.br> Date: Fri, 18 Aug 2006 10:10:46 -0300 From: Patrick Tracanelli Organization: FreeBSD Brasil LTDA User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.12) Gecko/20051013 X-Accept-Language: en-us, en MIME-Version: 1.0 To: geom@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Strategy to get ggated device mutually available in two systems. 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: Fri, 18 Aug 2006 13:11:07 -0000 Hello Geom'ers, What is the ideal strategy to get ggated device mutually available in two different systems, in a combination with gmirror class? I have tried some different approaches. My original idea was to gg.export a partition and use this same partition to 1) gmirror with a second disk on the local machine and 2) gmirror with the remote disk on the remote machine. Only the second step was possible because I could not export a gmirrored partition nor I could gmirror an exported partition. Now I am thinking of associating the local partition with a ggateN device using ggatel(8), export one of those (maybe the ggate local one, maybe the real device, I dont know yet) in such a way the exported device can, somehow (virtually, via ggate local device or phisically) be used for both, ggate exported device and gmirrored device. Or, if any other strategy seems more correct, I would appreciate suggestions. In summary I want to have gmirrored enviroment in two servers with one device commom to both servers, so I can be confident that both systems will always access the same data from both machines. If I can make my goals any clearer, let me know. Thank you. From owner-freebsd-geom@FreeBSD.ORG Fri Aug 18 17:58:34 2006 Return-Path: X-Original-To: freebsd-geom@freebsd.org Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4ABA216A4DA for ; Fri, 18 Aug 2006 17:58:34 +0000 (UTC) (envelope-from eksffa@freebsdbrasil.com.br) Received: from capeta.freebsdbrasil.com.br (vrrp.freebsdbrasil.com.br [200.210.70.30]) by mx1.FreeBSD.org (Postfix) with SMTP id 7AE7F43D49 for ; Fri, 18 Aug 2006 17:58:20 +0000 (GMT) (envelope-from eksffa@freebsdbrasil.com.br) Received: (qmail 79660 invoked by uid 0); 18 Aug 2006 15:04:43 -0300 Received: from eksffa@freebsdbrasil.com.br by capeta.freebsdbrasil.com.br by uid 82 with qmail-scanner-1.22 (spamassassin: 2.64. Clear:RC:1(201.17.166.110):. Processed in 0.52079 secs); 18 Aug 2006 18:04:43 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=capeta; d=freebsdbrasil.com.br; b=PeVaiKBTzcsBIIqrFdZULenaPlJKFrXCsjz6zAYbkh5RcL4WD1HEPB8vTsEWPFWALMWQxeJSQWqMYPh8cdZHX0X9g+G9mVTf8Y4G/afAMc5h5ae/VYsbePANTsJruxem ; Received: from unknown (HELO ?10.69.69.69?) (201.17.166.110) by capeta.freebsdbrasil.com.br with SMTP; 18 Aug 2006 15:04:42 -0300 Message-ID: <44E5FFB5.8030703@freebsdbrasil.com.br> Date: Fri, 18 Aug 2006 14:58:13 -0300 From: Patrick Tracanelli Organization: FreeBSD Brasil LTDA User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.12) Gecko/20051013 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-geom@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Strategy to get ggated device mutually available in two systems. 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: Fri, 18 Aug 2006 17:58:34 -0000 Hello Geom'ers, What is the ideal strategy to get ggated device mutually available in two different systems, in a combination with gmirror class? I have tried some different approaches. My original idea was to gg.export a partition and use this same partition to 1) gmirror with a second disk on the local machine and 2) gmirror with the remote disk on the remote machine. Only the second step was possible because I could not export a gmirrored partition nor I could gmirror an exported partition. Now I am thinking of associating the local partition with a ggateN device using ggatel(8), export one of those (maybe the ggate local one, maybe the real device, I dont know yet) in such a way the exported device can, somehow (virtually, via ggate local device or phisically) be used for both, ggate exported device and gmirrored device. Or, if any other strategy seems more correct, I would appreciate suggestions. In summary I want to have gmirrored enviroment in two servers with one device commom to both servers, so I can be confident that both systems will always access the same data from both machines. If I can make my goals any clearer, let me know. Thank you. From owner-freebsd-geom@FreeBSD.ORG Fri Aug 18 18:38:10 2006 Return-Path: X-Original-To: freebsd-geom@freebsd.org Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0B80116A4EC for ; Fri, 18 Aug 2006 18:38:10 +0000 (UTC) (envelope-from uspoerlein@gmail.com) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id 229E043DDC for ; Fri, 18 Aug 2006 18:37:15 +0000 (GMT) (envelope-from uspoerlein@gmail.com) Received: by nz-out-0102.google.com with SMTP id x3so589722nzd for ; Fri, 18 Aug 2006 11:37:14 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:date:from:to:cc:subject:message-id:mail-followup-to:references:mime-version:content-type:content-disposition:in-reply-to; b=MzAP9NqRqcRtUeiP72n4mIXjMDhA7MWJEByuq0kO1119VUhLuH0U++aBpry6jTjX/Ydrm3xLaSKJwz7pYLHdU9+1KevBYrPY6y8NBir7uxTe+KsvZSZlF0a7xxRVinSGvgAxo1pRdHY9V+yyQqpcDRo3DPbcr0QTcGQudyoTddM= Received: by 10.65.154.10 with SMTP id g10mr4140902qbo; Fri, 18 Aug 2006 11:37:14 -0700 (PDT) Received: from roadrunner.q.local ( [217.185.119.164]) by mx.gmail.com with ESMTP id p4sm2227586qba.2006.08.18.11.37.09; Fri, 18 Aug 2006 11:37:12 -0700 (PDT) Received: from roadrunner.q.local (localhost [127.0.0.1]) by roadrunner.q.local (8.13.6/8.13.6) with ESMTP id k7IIb59M001739; Fri, 18 Aug 2006 20:37:05 +0200 (CEST) (envelope-from uspoerlein@gmail.com) Received: (from q@localhost) by roadrunner.q.local (8.13.6/8.13.6/Submit) id k7HJ1rLL002368; Thu, 17 Aug 2006 21:01:53 +0200 (CEST) (envelope-from uspoerlein@gmail.com) Date: Thu, 17 Aug 2006 21:01:38 +0200 From: Ulrich Spoerlein To: Pawel Jakub Dawidek Message-ID: <20060817190138.GB1091@roadrunner.aventurien.local> Mail-Followup-To: Pawel Jakub Dawidek , Craig Boston , freebsd-fs@FreeBSD.org, freebsd-current@FreeBSD.org, freebsd-geom@FreeBSD.org References: <20060808195202.GA1564@garage.freebsd.pl> <20060810184702.GA8567@nowhere> <20060810192841.GA1345@garage.freebsd.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060810192841.GA1345@garage.freebsd.pl> Cc: freebsd-fs@FreeBSD.org, Craig Boston , freebsd-current@FreeBSD.org, freebsd-geom@FreeBSD.org Subject: Re: GJournal (hopefully) final patches. 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: Fri, 18 Aug 2006 18:38:10 -0000 Pawel Jakub Dawidek wrote: > On Thu, Aug 10, 2006 at 01:47:23PM -0500, Craig Boston wrote: > I prefer to put gjournal on the top, because it gives consistency to > layers below it. For example I can use geli with bigger sector size > (sector size greater than disk sector size in encryption-only-mode can > be unreliable on power failures, which is not the case when gjournal is > above geli), I can turn off synchronization of gmirror/graid3 after a > power failure, etc. I have been bitten by the bigger sector size + kernel crash, and it is not funny. Could you *please* add a note to the geli and/or gjournal manpages describing the various possibilities and their advantages/drawbacks? Thanks. Ulrich Spoerlein -- A: Yes. >Q: Are you sure? > >A: Because it reverses the logical flow of conversation. > >>Q: Why is top posting frowned upon? From owner-freebsd-geom@FreeBSD.ORG Fri Aug 18 20:55:14 2006 Return-Path: X-Original-To: freebsd-geom@freebsd.org Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 21F7F16A4DA for ; Fri, 18 Aug 2006 20:55:14 +0000 (UTC) (envelope-from jmelo@freebsdbrasil.com.br) Received: from capeta.freebsdbrasil.com.br (vrrp.freebsdbrasil.com.br [200.210.70.30]) by mx1.FreeBSD.org (Postfix) with SMTP id E76DD43D55 for ; Fri, 18 Aug 2006 20:55:12 +0000 (GMT) (envelope-from jmelo@freebsdbrasil.com.br) Received: (qmail 12779 invoked by uid 0); 18 Aug 2006 18:01:36 -0300 Received: from jmelo@freebsdbrasil.com.br by capeta.freebsdbrasil.com.br by uid 82 with qmail-scanner-1.22 (spamassassin: 2.64. Clear:RC:1(201.17.166.110):. Processed in 0.554079 secs); 18 Aug 2006 21:01:36 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=capeta; d=freebsdbrasil.com.br; b=Nv+Q+79shg2Fb4bH6i517JXgeh05rILnIaFchdQfM0J7SvfGvJZkPW8lVsOH8eeIygoa0RCaM4eFrvqjnD9A6XqUA7ORpEKOywYwlpuoiJRhjpbkUxEOVprLLNl385oR ; Received: from unknown (HELO ?10.69.69.2?) (201.17.166.110) by capeta.freebsdbrasil.com.br with SMTP; 18 Aug 2006 18:01:35 -0300 Message-ID: <44E62A7A.40708@freebsdbrasil.com.br> Date: Fri, 18 Aug 2006 18:00:42 -0300 From: Jean Milanez Melo User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050614) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-geom@freebsd.org X-Enigmail-Version: 0.89.6.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Strategy to get ggated device mutually available in two systems 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: Fri, 18 Aug 2006 20:55:14 -0000 Hello Geom'ers, What is the ideal strategy to get ggated device mutually available in two different systems, in a combination with gmirror class? I have tried some different approaches. My original idea was to gg.export a partition and use this same partition to 1) gmirror with a second disk on the local machine and 2) gmirror with the remote disk on the remote machine. Only the second step was possible because I could not export a gmirrored partition nor I could gmirror an exported partition. Now I am thinking of associating the local partition with a ggateN device using ggatel(8), export one of those (maybe the ggate local one, maybe the real device, I dont know yet) in such a way the exported device can, somehow (virtually, via ggate local device or phisically) be used for both, ggate exported device and gmirrored device. Or, if any other strategy seems more correct, I would appreciate suggestions. In summary I want to have gmirrored enviroment in two servers with one device commom to both servers, so I can be confident that both systems will always access the same data from both machines. If I can make my goals any clearer, let me know. Thank you. Jean From owner-freebsd-geom@FreeBSD.ORG Fri Aug 18 22:21:57 2006 Return-Path: X-Original-To: freebsd-geom@freebsd.org Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3B46816A4DD for ; Fri, 18 Aug 2006 22:21:57 +0000 (UTC) (envelope-from arne_woerner@yahoo.com) Received: from web30305.mail.mud.yahoo.com (web30305.mail.mud.yahoo.com [209.191.69.67]) by mx1.FreeBSD.org (Postfix) with SMTP id 29F6443D5F for ; Fri, 18 Aug 2006 22:21:53 +0000 (GMT) (envelope-from arne_woerner@yahoo.com) Received: (qmail 94782 invoked by uid 60001); 18 Aug 2006 22:21:52 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=o8AbPvthE+dVnCbVC4u0TetLKLY8Fs4/ncs0OVpNyHydr8lvc1unRjhCp2/AuqXXfMsmrQwCGf8p27oX+qzYXbP7QTuDPxAW6+cYsIeK6Du2sQ87zLtued+fEvvOiQGDRs70SV67sKZUqdhfKOe4UZD4u1wwr9OGsW2sTNy68/k= ; Message-ID: <20060818222152.94780.qmail@web30305.mail.mud.yahoo.com> Received: from [213.54.80.37] by web30305.mail.mud.yahoo.com via HTTP; Fri, 18 Aug 2006 15:21:52 PDT Date: Fri, 18 Aug 2006 15:21:52 -0700 (PDT) From: "R. B. Riddick" To: Jean Milanez Melo , freebsd-geom@freebsd.org In-Reply-To: <44E62A7A.40708@freebsdbrasil.com.br> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Cc: Subject: Re: Strategy to get ggated device mutually available in two systems 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: Fri, 18 Aug 2006 22:21:57 -0000 It is not necessary to resend your request so often... I will try to help u a little bit: --- Jean Milanez Melo wrote: > suggestions. In summary I want to have gmirrored enviroment in two > servers with one device commom to both servers, so I can be confident > that both systems will always access the same data from both machines. > U could try to access the ggate disk via localhost and from the remote host (I think that ggate allows multiple hosts to access it _via_ggate_). > If I can make my goals any clearer, let me know. > I would like to know, how u plan to do serialization/synchronization/locking... I mean: What if both hosts update the same sector? host A updates his local disk host B updates his local disk host B updates host A's local disk host A updates host B's local disk Then the mirror would be not in sync... Furthermore a file system like UFS does not like multiple read/write mounts (as far as I know)... Maybe AFS or arla/coda6_server/coda6_client from ports/net or so is more what u want? -Arne __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com