From owner-freebsd-geom@FreeBSD.ORG Sun Mar 5 11:21: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 DD04916A420 for ; Sun, 5 Mar 2006 11:21:45 +0000 (GMT) (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 68E8D43D46 for ; Sun, 5 Mar 2006 11:21:44 +0000 (GMT) (envelope-from gcubfg-freebsd-geom@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1FFrIv-0006xK-F7 for freebsd-geom@freebsd.org; Sun, 05 Mar 2006 12:21:39 +0100 Received: from 241-25-124-83.dsl.3u.net ([83.124.25.241]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 05 Mar 2006 12:21:37 +0100 Received: from christian.baer by 241-25-124-83.dsl.3u.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 05 Mar 2006 12:21:37 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-geom@freebsd.org From: Christian Baer Date: Sun, 5 Mar 2006 12:17:41 +0100 (CET) Organization: Convenimus Projekt Lines: 19 Message-ID: References: <20060208201852.GA732@garage.freebsd.pl> <200603021553.02591.list-freebsd-2004@morbius.sent.com> X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 241-25-124-83.dsl.3u.net User-Agent: slrn/0.9.8.1 (FreeBSD) Sender: news Subject: Re: -p with GELI 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: Sun, 05 Mar 2006 11:21:46 -0000 On Thu, 2 Mar 2006 15:52:58 +0000 RW wrote: > I currently use the -p option to avoid all the typing. I'm not too worried > about ps, but having the passphrase turn-up in a log file is a different > matter. Not to my knowledge. AFAIR -p was only added in gbde for testing purposes, i.e. creating filesystems for testing and debugging but without making the developer type in some passphrase all the time. This is the reason I wanted to be able to pipe a passphrase to geli. I could use geli in a script and could attach several providers without having to retype the passphrase five times. Regards Chris From owner-freebsd-geom@FreeBSD.ORG Sun Mar 5 11:31:36 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 EC19216A420 for ; Sun, 5 Mar 2006 11:31:36 +0000 (GMT) (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 5805243D46 for ; Sun, 5 Mar 2006 11:31:36 +0000 (GMT) (envelope-from gcubfg-freebsd-geom@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1FFrSZ-0008Mk-E6 for freebsd-geom@freebsd.org; Sun, 05 Mar 2006 12:31:35 +0100 Received: from 241-25-124-83.dsl.3u.net ([83.124.25.241]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 05 Mar 2006 12:31:35 +0100 Received: from christian.baer by 241-25-124-83.dsl.3u.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 05 Mar 2006 12:31:35 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-geom@freebsd.org From: Christian Baer Date: Sun, 5 Mar 2006 12:29:47 +0100 (CET) Organization: Convenimus Projekt Lines: 22 Message-ID: References: X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 241-25-124-83.dsl.3u.net User-Agent: slrn/0.9.8.1 (FreeBSD) Sender: news Subject: Re: GELI compatibility with GBDE 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: Sun, 05 Mar 2006 11:31:37 -0000 On Mon, 27 Feb 2006 02:36:03 +0000 Jack T wrote: > My question is: can GELI access > a partition that was encrypted by GBDE? This is a fair while back, but since the answer wasn't really given in the thread: definately NO. geli and gbde use *entirely* different concepts on storing the data. While geli uses the same key for the whole provider, gbde uses different, random ones. At the same time, geli uses IVs which gbde does not use. Even at a writing level, the two are different. I won't go into this at the moment - I'm still in the process of understanding it myself. :-) What I can tell you is this: making gbde and geli compatible is like making a plane and a submarine compatible, in the sense that they can both fly and go underwater without any drawbacks. Regards Chris From owner-freebsd-geom@FreeBSD.ORG Mon Mar 6 04:55:16 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 0020D16A422 for ; Mon, 6 Mar 2006 04:55:15 +0000 (GMT) (envelope-from killing@multiplay.co.uk) Received: from multiplay.co.uk (core6.multiplay.co.uk [85.236.96.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id 17B1843D46 for ; Mon, 6 Mar 2006 04:55:14 +0000 (GMT) (envelope-from killing@multiplay.co.uk) Received: from vader ([212.135.219.179]) by multiplay.co.uk (multiplay.co.uk [85.236.96.23]) (MDaemon.PRO.v8.1.3.R) with ESMTP id md50002351074.msg for ; Mon, 06 Mar 2006 04:54:57 +0000 Message-ID: <003501c640da$1a872330$b3db87d4@multiplay.co.uk> From: "Steven Hartland" To: Date: Mon, 6 Mar 2006 04:54:46 -0000 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2670 x-mimeole: Produced By Microsoft MimeOLE V6.00.2900.2670 X-Spam-Processed: multiplay.co.uk, Mon, 06 Mar 2006 04:54:57 +0000 (not processed: message from valid local sender) X-MDRemoteIP: 212.135.219.179 X-Return-Path: killing@multiplay.co.uk X-MDaemon-Deliver-To: freebsd-geom@freebsd.org X-MDAV-Processed: multiplay.co.uk, Mon, 06 Mar 2006 04:54:59 +0000 Subject: Re: g_vfs_done with offset greater than disk size 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, 06 Mar 2006 04:55:16 -0000 ----- Original Message ----- From: "Eric Anderson" > Steven Hartland wrote: >> I've been trying to get a problem fixed with a Highpoint 1820a crashing >> out with errors like: >> kernel: IAL: COMPLETION ERROR, adapter 0, channel 2, flags=104 >> kernel: ATA regs: error 10, sector count 20, LBA low ff, LBA mid ff, >> LBA high ff, device 4f, status 51 >> which results in the disk being dropped from the array. >> >> A sharp eyed engineer at Highpoint has just spotted the fact that the >> read error reported later is well beyond the end of the array ( 750Gb ): >> kernel: >> g_vfs_done():da0s1h[READ(offset=535260184576,length=131072)]error = 5 >> >> As such is it possible there is a problem in the FS that fsck is not >> detecting which could be causing this behaviour when an rsync ( read >> only ) is performed against it? >> >> If there is indeed a vfs error which fsck is not detecting how would I >> go about: >> 1. finding it >> 2. fixing it > > I recently sent a very similar issue to freebsd-geom list, with no > responses yet (just sent it last week). I've got a system with ICH6 (or > ICH7 maybe) controller, and a SATA disk. I don't believe it's a driver > issue, and I don't think it's an fs issue, since I was dd'ing an image > onto the disk, and the image contained linux partitioning and an ext2 > fs. I think it has to do with the tasting (or re-tasting) of the GEOM > devices, but that's pretty much a guess. Not so sure if its makes any difference but I can complete a: dd if=/dev/da0 of=/dev/null Without any issues at all on the array. Steve ================================================ This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. In the event of misdirection, illegible or incomplete transmission please telephone (023) 8024 3137 or return the E.mail to postmaster@multiplay.co.uk. From owner-freebsd-geom@FreeBSD.ORG Mon Mar 6 10:32:13 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 56A3016A420 for ; Mon, 6 Mar 2006 10:32:13 +0000 (GMT) (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 D904B43D4C for ; Mon, 6 Mar 2006 10:32:12 +0000 (GMT) (envelope-from gcubfg-freebsd-geom@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1FGD0S-0008KA-8N for freebsd-geom@freebsd.org; Mon, 06 Mar 2006 11:32:00 +0100 Received: from p508c266a.dip0.t-ipconnect.de ([80.140.38.106]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 06 Mar 2006 11:32:00 +0100 Received: from christian.baer by p508c266a.dip0.t-ipconnect.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 06 Mar 2006 11:32:00 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-geom@freebsd.org From: Christian Baer Date: Mon, 6 Mar 2006 11:25:43 +0100 (CET) Organization: Convenimus Projekt Lines: 27 Message-ID: X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: p508c266a.dip0.t-ipconnect.de User-Agent: slrn/0.9.8.1 (FreeBSD) Sender: news Subject: geli(8) makes more room on drive 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, 06 Mar 2006 10:32:13 -0000 Hi Peeps! Can someone explain this? I partitioned a drive (WD3200SD) to have only one big partition (/dev/ad10s1d). Then I did this: jon# newfs -O2 -U -o space -m 0 /dev/ad10s1d jon# mount /dev/ad10s1d /doof jon# df -h Filesystem Size Used Avail Capacity Mounted on /dev/ad10s1d 289G 4.0K 289G 0% /doof jon# umount /doof jon# geli init -s 4096 -l 256 /dev/ad10s1d jon# geli attach /dev/ad10s1d jon# newfs -O2 -U -o space -m 0 /dev/ad10s1d.eli [output of newfs snip...] jon# df -h Filesystem Size Used Avail Capacity Mounted on /dev/ad10s1d.eli 293G 8.0K 293G 0% /doof How does that work??? Regards Chris From owner-freebsd-geom@FreeBSD.ORG Mon Mar 6 11:01:20 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 17D0B16A422 for ; Mon, 6 Mar 2006 11:01:20 +0000 (GMT) (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 47D0343D55 for ; Mon, 6 Mar 2006 11:01:17 +0000 (GMT) (envelope-from gcubfg-freebsd-geom@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1FGDSf-0004mZ-0E for freebsd-geom@freebsd.org; Mon, 06 Mar 2006 12:01:09 +0100 Received: from p508c266a.dip0.t-ipconnect.de ([80.140.38.106]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 06 Mar 2006 12:01:08 +0100 Received: from christian.baer by p508c266a.dip0.t-ipconnect.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 06 Mar 2006 12:01:08 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-geom@freebsd.org From: Christian Baer Date: Mon, 6 Mar 2006 11:58:46 +0100 (CET) Organization: Convenimus Projekt Lines: 46 Message-ID: X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: p508c266a.dip0.t-ipconnect.de User-Agent: slrn/0.9.8.1 (FreeBSD) Sender: news Subject: Changing geli-providers from passphrase to keyfile 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, 06 Mar 2006 11:01:20 -0000 Hello there, folks! For security reasons [ what others are there? :-) ] I have several drives encrypted with geli. I am quite happy with how this works - appart from the speed maybe but that is a different matter. As suggested by Pawel, I have written a little script for attaching and mounting the encrypted filesystems. The whole thing works like this: - I supply the passphrase. - The script adds a little to the passphrase for each provider and hashes it through sha256. This is now the *real* passphrase.[1] - All the hashes (passphrases) are displayed on the screen. - geli(8) ist started to attach each provider. - I use copy and paste to "enter" each passphrase. - All filesystems are checked by fsck and mounted. Although diplaying the hashes isn't a real security problem because I don't attach the providers when someone is looking over my shoulder and even if, it is highly unlikely the he/she could remember the hashes and after I'm done I erase the scrollback from the terminal, I don't like the idea very much, because there is too much room for human error. I have made mistakes before. :-) I would really like to pipe the passphrase to geli using something like this: echo "passphrase" | geli attach /dev/ad0s1d but geli ignores that. geli only 'likes' this if a keyfile is used, i.e. you can pipe a keyfile to geli, but not a passphrase. I chose to use passphrases instead of keyfiles because of PKCS and the use of salt, which are both not used with keyfiles. If I want to change the script for attaching the providers so I only type my passphrase once and the rest runs by itself (no more hashes are displayed), I would have to change the current providers. geli supports changing passphrases. The question is, can I tell geli to attach a provider created with a passphrase using a keyfile? If this *is* possible, is it a good idea or rather not and, how is it done? Regards Chris [1] The idea is that I only have to remember one passphrase and at the same time, every provider has its own, completely different passphrase. From owner-freebsd-geom@FreeBSD.ORG Mon Mar 6 11:03:01 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 4CA1F16A420 for ; Mon, 6 Mar 2006 11:03:01 +0000 (GMT) (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 1204243D45 for ; Mon, 6 Mar 2006 11:03:01 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k26B30HY098189 for ; Mon, 6 Mar 2006 11:03:00 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k26B2wRN098007 for freebsd-geom@freebsd.org; Mon, 6 Mar 2006 11:02:58 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 6 Mar 2006 11:02:58 GMT Message-Id: <200603061102.k26B2wRN098007@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: peter 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, 06 Mar 2006 11:03:01 -0000 Current FreeBSD problem reports Critical problems Serious problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2005/01/21] kern/76538 geom [gbde] nfs-write on gbde partition stalls o [2005/08/04] kern/84556 geom [geom] GBDE-encrypted swap causes panic a o [2005/10/16] kern/87544 geom [gbde] mmaping large files on a gbde file o [2005/11/16] kern/89102 geom [geom_vfs] [panic] panic when forced unmo o [2005/12/08] bin/90093 geom fdisk(8) incapable of altering in-core ge o [2005/12/18] kern/90582 geom [geom_mirror] [panic] Restore cause panic 6 problems total. Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2005/02/26] bin/78131 geom gbde "destroy" not working. o [2005/03/26] kern/79251 geom [2TB] newfs fails on 2.6TB gbde device 2 problems total. From owner-freebsd-geom@FreeBSD.ORG Mon Mar 6 11:10:56 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 F1F0016A420 for ; Mon, 6 Mar 2006 11:10:55 +0000 (GMT) (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 8C06A43D73 for ; Mon, 6 Mar 2006 11:10:43 +0000 (GMT) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id 4BFDA516FE; Mon, 6 Mar 2006 12:10:28 +0100 (CET) Received: from localhost (ana50.internetdsl.tpnet.pl [83.17.82.50]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id 14A1D51983; Mon, 6 Mar 2006 12:10:04 +0100 (CET) Date: Mon, 6 Mar 2006 12:09:24 +0100 From: Pawel Jakub Dawidek To: Christian Baer Message-ID: <20060306110924.GB53437@garage.freebsd.pl> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="PmA2V3Z32TCmWXqI" Content-Disposition: inline In-Reply-To: X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 7.0-CURRENT i386 User-Agent: mutt-ng/devel-r535 (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-geom@freebsd.org Subject: Re: geli(8) makes more room on drive 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, 06 Mar 2006 11:10:56 -0000 --PmA2V3Z32TCmWXqI Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Mar 06, 2006 at 11:25:43AM +0100, Christian Baer wrote: +> Hi Peeps! +>=20 +> Can someone explain this? +>=20 +> I partitioned a drive (WD3200SD) to have only one big=20 +> partition (/dev/ad10s1d). Then I did this: +>=20 +> jon# newfs -O2 -U -o space -m 0 /dev/ad10s1d +> jon# mount /dev/ad10s1d /doof +> jon# df -h +> Filesystem Size Used Avail Capacity Mounted on +> /dev/ad10s1d 289G 4.0K 289G 0% /doof +>=20 +> jon# umount /doof +> jon# geli init -s 4096 -l 256 /dev/ad10s1d +> jon# geli attach /dev/ad10s1d +> jon# newfs -O2 -U -o space -m 0 /dev/ad10s1d.eli +> [output of newfs snip...] +> jon# df -h +> Filesystem Size Used Avail Capacity Mounted on +> /dev/ad10s1d.eli 293G 8.0K 293G 0% /doof +>=20 +> How does that work??? Geli's provider (ad10s1d.eli) uses bigger sector (4096 bytes instead of 512 bytes), which makes newfs to configure file system a bit different. You can also observe smaller number of cylinder groups, etc. --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --PmA2V3Z32TCmWXqI Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFEDBhkForvXbEpPzQRAuzbAKC3PKf9+FSQfHfCSlIJ0Fvo21AOtQCg3Q9+ PxsF55+06xc8iBZhPnVx7uw= =oOsN -----END PGP SIGNATURE----- --PmA2V3Z32TCmWXqI-- From owner-freebsd-geom@FreeBSD.ORG Mon Mar 6 11:30:37 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 211F116A420 for ; Mon, 6 Mar 2006 11:30:37 +0000 (GMT) (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 CC1C443D68 for ; Mon, 6 Mar 2006 11:30:34 +0000 (GMT) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id 8CB275174A; Mon, 6 Mar 2006 12:30:33 +0100 (CET) Received: from localhost (ana50.internetdsl.tpnet.pl [83.17.82.50]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id C7CDF516E1; Mon, 6 Mar 2006 12:30:25 +0100 (CET) Date: Mon, 6 Mar 2006 12:30:00 +0100 From: Pawel Jakub Dawidek To: Christian Baer Message-ID: <20060306113000.GC53437@garage.freebsd.pl> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="nmemrqcdn5VTmUEE" Content-Disposition: inline In-Reply-To: X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 7.0-CURRENT i386 User-Agent: mutt-ng/devel-r535 (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-geom@freebsd.org Subject: Re: Changing geli-providers from passphrase to keyfile 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, 06 Mar 2006 11:30:37 -0000 --nmemrqcdn5VTmUEE Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Mar 06, 2006 at 11:58:46AM +0100, Christian Baer wrote: +> geli supports changing passphrases. The question is, can I tell geli to +> attach a provider created with a passphrase using a keyfile? If this +> *is* possible, is it a good idea or rather not and, how is it done? No, this is not possible and AFAIR we discussed it in the last already. I'm not planning to add gbde(8)'s -p/-P options, because they only create confusion - they were designed to be used for testing and now are used in eg. /etc/rc.d/encswap. If you want to use one passphrase and still want PKCS#5v2 protection for it you're on your own. You may for example create one big file with random data and encrypt it with geli(8): # dd if=3D/dev/zero of=3D/etc/keys.bin bs=3D128k count=3D3 # mdconfig -a -f /etc/keys.bin # geli init md0 Enter new passphrase: Reenter new passphrase: # geli attach md0 Enter passphrase: # dd if=3D/dev/random of=3D/md0.eli bs=3D128k count=3D3 then use this random data to encrypt the real providers: # dd if=3D/dev/md0.eli bs=3D128k count=3D1 | geli attach -k - prov1 # dd if=3D/dev/md0.eli bs=3D128k skip=3D1 count=3D1 | geli attach -k - pro= v2 # dd if=3D/dev/md0.eli bs=3D128k skip=3D2 count=3D1 | geli attach -k - pro= v2 # geli detach md0 --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --nmemrqcdn5VTmUEE Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFEDB04ForvXbEpPzQRAm+5AJ4shq8p+ByXJXmK1UujChDCLK8evgCbBFPL l6ZatxU30mXeizSg2CFLfGA= =b7/f -----END PGP SIGNATURE----- --nmemrqcdn5VTmUEE-- From owner-freebsd-geom@FreeBSD.ORG Mon Mar 6 11:51:28 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 A973B16A420 for ; Mon, 6 Mar 2006 11:51:28 +0000 (GMT) (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 1195343D49 for ; Mon, 6 Mar 2006 11:51:27 +0000 (GMT) (envelope-from gcubfg-freebsd-geom@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1FGEF8-0004pF-Gr for freebsd-geom@freebsd.org; Mon, 06 Mar 2006 12:51:15 +0100 Received: from p508c266a.dip0.t-ipconnect.de ([80.140.38.106]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 06 Mar 2006 12:51:14 +0100 Received: from christian.baer by p508c266a.dip0.t-ipconnect.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 06 Mar 2006 12:51:14 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-geom@freebsd.org From: Christian Baer Date: Mon, 6 Mar 2006 12:42:39 +0100 (CET) Organization: Convenimus Projekt Lines: 12 Message-ID: References: <20060306110924.GB53437@garage.freebsd.pl> X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: p508c266a.dip0.t-ipconnect.de User-Agent: slrn/0.9.8.1 (FreeBSD) Sender: news Subject: Re: geli(8) makes more room on drive 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, 06 Mar 2006 11:51:28 -0000 On Mon, 6 Mar 2006 12:09:24 +0100 Pawel Jakub Dawidek wrote: > Geli's provider (ad10s1d.eli) uses bigger sector (4096 bytes instead of > 512 bytes), which makes newfs to configure file system a bit different. > You can also observe smaller number of cylinder groups, etc. Would it be a good idea to reduce the sector size on the provider to 512 so as to fit the drive? Or would this just increase the overhead? Does newfs create gigantic frag-sizes as a result? Regards Chris From owner-freebsd-geom@FreeBSD.ORG Mon Mar 6 12:01:29 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 7F5BF16A420 for ; Mon, 6 Mar 2006 12:01:29 +0000 (GMT) (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 E901B43D62 for ; Mon, 6 Mar 2006 12:01:14 +0000 (GMT) (envelope-from gcubfg-freebsd-geom@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1FGEOe-0006PU-0O for freebsd-geom@freebsd.org; Mon, 06 Mar 2006 13:01:04 +0100 Received: from p508c266a.dip0.t-ipconnect.de ([80.140.38.106]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 06 Mar 2006 13:01:04 +0100 Received: from christian.baer by p508c266a.dip0.t-ipconnect.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 06 Mar 2006 13:01:04 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-geom@freebsd.org From: Christian Baer Date: Mon, 6 Mar 2006 12:58:44 +0100 (CET) Organization: Convenimus Projekt Lines: 55 Message-ID: References: <20060306113000.GC53437@garage.freebsd.pl> X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: p508c266a.dip0.t-ipconnect.de User-Agent: slrn/0.9.8.1 (FreeBSD) Sender: news Subject: Re: Changing geli-providers from passphrase to keyfile 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, 06 Mar 2006 12:01:29 -0000 On Mon, 6 Mar 2006 12:30:00 +0100 Pawel Jakub Dawidek wrote: > No, this is not possible and AFAIR we discussed it in the last already. Actually, no we didn't. :-) > I'm not planning to add gbde(8)'s -p/-P options, because they only > create confusion - they were designed to be used for testing and now are > used in eg. /etc/rc.d/encswap. I didn't want that. :-) Just to clarify this: What I asked for in the mail was to let geli accept the passphrase from the standard input, just as it accepts the keyfile. I know I messed up completely while expressing this, sorry about that. What I was trying to get was to make this: echo "password" | geli -k - /dev/ad0 work with passphrases too, so I could pipe a passphrase to geli as I can a keyfile (like above). geli ignores anything piped to it in this way when it only expects a passphrase. You told me in that Email you are refering to, that you didn't want to implement that - and I am not complaining, please don't get me wrong here. I didn't know that geli would take passphrases piped to it when I initialized the providers (I wrote the script when they were all finished). I grabbed up your idea with the script: pass_da0=`echo "0${passphrase}0" | sha256` pass_da1=`echo "1${passphrase}1" | sha256` pass_da2=`echo "2${passphrase}2" | sha256` echo "${pass_da0}" | geli attach -k - da0 echo "${pass_da1}" | geli attach -k - da1 echo "${pass_da2}" | geli attach -k - da2 and found that it didn't work without the -k option. My mistake, I know. What I am basicly asking now, is if there is some way for me to use the -k option (like in your script about) while attaching the providers without having to copy all the data off the drives and initilising the providers from scratch. Since were are taking about quite a lot of drive space here, this could take pretty long. Sorry for being unclear the first time around. I hope I did a better job this time! Regards Christian From owner-freebsd-geom@FreeBSD.ORG Mon Mar 6 12:12:01 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 5011616A422 for ; Mon, 6 Mar 2006 12:12:01 +0000 (GMT) (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 592A043D4C for ; Mon, 6 Mar 2006 12:11:57 +0000 (GMT) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id 893DB5174A; Mon, 6 Mar 2006 13:11:56 +0100 (CET) Received: from localhost (ana50.internetdsl.tpnet.pl [83.17.82.50]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id 57587516E1; Mon, 6 Mar 2006 13:11:50 +0100 (CET) Date: Mon, 6 Mar 2006 13:11:25 +0100 From: Pawel Jakub Dawidek To: Christian Baer Message-ID: <20060306121125.GG53437@garage.freebsd.pl> References: <20060306113000.GC53437@garage.freebsd.pl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="5UGlQXeG3ziZS81+" Content-Disposition: inline In-Reply-To: X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 7.0-CURRENT i386 User-Agent: mutt-ng/devel-r535 (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-geom@freebsd.org Subject: Re: Changing geli-providers from passphrase to keyfile 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, 06 Mar 2006 12:12:01 -0000 --5UGlQXeG3ziZS81+ Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Mar 06, 2006 at 12:58:44PM +0100, Christian Baer wrote: +> What I am basicly asking now, is if there is some way for me to use +> the -k option (like in your script about) while attaching the providers +> without having to copy all the data off the drives and initilising the +> providers from scratch. Since were are taking about quite a lot of +> drive space here, this could take pretty long. +>=20 +> Sorry for being unclear the first time around. I hope I did a better job +> this time! So what you basically want is to change your passphrase to a keyfile? # echo piped-passphrase | geli setkey -P -K - ad0s1d Enter passphrase: # echo piped-passphrase | geli attach -p -k - ad0s1d --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --5UGlQXeG3ziZS81+ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFEDCbtForvXbEpPzQRAvAaAKCVC53rf+IBCunCyTMB9lkLoorxcQCgkLy0 CAGV7hJAY7fbD96dluvwewE= =vQxA -----END PGP SIGNATURE----- --5UGlQXeG3ziZS81+-- From owner-freebsd-geom@FreeBSD.ORG Mon Mar 6 14:19:51 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 B755816A422 for ; Mon, 6 Mar 2006 14:19:51 +0000 (GMT) (envelope-from cochard@gmail.com) Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.192]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6F3CE43D48 for ; Mon, 6 Mar 2006 14:19:49 +0000 (GMT) (envelope-from cochard@gmail.com) Received: by nproxy.gmail.com with SMTP id x4so888824nfb for ; Mon, 06 Mar 2006 06:19:48 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:sender:to:subject:cc:in-reply-to:mime-version:content-type:references; b=F4pHDfexxO/y7YtjI0tW8XciAMF4UaDbocr/fzbgJDY92xKQmKHpXk/aJHMTFZ7MYu0pFuF+VoYxV+1BcpNTUDyEv800baacXBoNFI8AjU0VRRHyIdBwAE6apkfgQ5I7CiJ572ZIGiG97eYaTAJ+9vGcmzJkJTqJEjNoadhhP9k= Received: by 10.48.3.3 with SMTP id 3mr1074806nfc; Mon, 06 Mar 2006 06:19:47 -0800 (PST) Received: by 10.48.216.14 with HTTP; Mon, 6 Mar 2006 06:19:47 -0800 (PST) Message-ID: <3131aa530603060619o6fd23c8bl@mail.gmail.com> Date: Mon, 6 Mar 2006 15:19:47 +0100 From: "Olivier Cochard" Sender: cochard@gmail.com To: "Lukas Ertl" In-Reply-To: MIME-Version: 1.0 References: <3131aa530602271250r458dd9fep@mail.gmail.com> <3131aa530602271316n479af14fi@mail.gmail.com> <3131aa530602271330t5b94992ei@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-geom@freebsd.org Subject: Re: Gvinum RAID5 volume don't work after a simple reboot X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Olivier Cochard List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Mar 2006 14:19:51 -0000 I can reproduce the problem (tested under VMware). It's a long mail, But i can reproduce at each time! For resume: When I create a RAID 5 volume, I must run newfs twice for have a permanent raid volume (if not, I loose the RAID 5 when I reboot the PC). Details: - VMware workstation 5.5.1 - Tested with I'm using a small FreeBSD system (6.0 with FreeNAS 0.6 and 6.1beta with FreeNAS 0.63) - Have 3 disks of 100Mb each (ad0, ad1, ad3) --------------------------------------------------- Step 1: Initialized and format the 3 disks with theses commands: /sbin/fdisk -I -b /boot/mbr ad0 /bin/dd if=3D/dev/zero of=3D/dev/ad0s1 bs=3D32k count=3D16 /sbin/bsdlabel -w ad0s1 auto Editing the bsdlabel for each: - replacing c: by a: - changing "unused" to "vinum" --------------------------------------------------- Step 2: Create this raid.conf file: drive disk_ad0 device /dev/ad0s1 drive disk_ad1 device /dev/ad1s1 drive disk_ad3 device /dev/ad3s1 volume raid5 plex org raid5 256k sd length 102M drive disk_ad0 sd length 102M drive disk_ad1 sd length 102M drive disk_ad3 --------------------------------------------------- Step 3: Create the volume: /sbin/gvinum create raid.conf --------------------------------------------------- Step 4:Start the volume /sbin/gvinum start raid5 For information at this state, all it's ok: 3 drives: D disk_ad3 State: up /dev/ad3s1 A: 0/102 MB (0%) D disk_ad1 State: up /dev/ad1s1 A: 0/102 MB (0%) D disk_ad0 State: up /dev/ad0s1 A: 0/102 MB (0%) 1 volume: V raid5 State: up Plexes: 1 Size: 204 MB 1 plex: P raid5.p0 R5 State: up Subdisks: 3 Size: 204 MB 3 subdisks: S raid5.p0.s2 State: up D: disk_ad3 Size: 102 MB S raid5.p0.s1 State: up D: disk_ad1 Size: 102 MB S raid5.p0.s0 State: up D: disk_ad0 Size: 102 MB --------------------------------------------------- Step 5: Create filesystem on this volume /sbin/newfs -U /dev/gvinum/raid5 --------------------------------------------------- Step 6: I can mount it wihtout problem, and copy lot's of file on it withou= t problem: $ mount /dev/md0 on / (ufs, local) devfs on /dev (devfs, local) /dev/fd0 on /cf (msdosfs, local, read-only) /dev/gvinum/raid5 on /mnt/raid5mnt (ufs, local, soft-updates) touch /mnt/raid5mnt test.txt --------------------------------------------------- Step 7: I reboot the system. The rebuilding of the raid volume take a long time... (1 minutes for 3 disk of 100Mb each). --------------------------------------------------- Step 8: Impossible to mount the raid5 volume: $ mount /dev/gvinum/raid5 /mnt/raid5 mount: /dev/gvinum/raid5 on /mnt/raid5: incorrect super block $ fsck -t ufs /dev/gvinum/raid5 Cannot find file system superblock fsck_ufs: /dev/gvinum/raid5: can't read disk label ** /dev/gvinum/raid5 ioctl (GCINFO): Inappropriate ioctl for device Loosing all the files.... !!!! --------------------------------------------------- Step 9: Re-create the filesystem /sbin/newfs -U /dev/gvinum/raid5 --------------------------------------------------- Step 10: Then I can re-mount a filesystem without problem (but without the file!) $ mount /dev/md0 on / (ufs, local) devfs on /dev (devfs, local) /dev/fd0 on /cf (msdosfs, local, read-only) /dev/gvinum/raid5 on /mnt/raid5mnt (ufs, local, soft-updates) And create file.. touch /mnt/raid5mnt titi.txt --------------------------------------------------- Step 11: Reboot for the second time (after re-create the filesystem a secon= d time) No problem! I can mount the RAID volume without problem. Regards, Olivier -- Olivier Cochard FreeNAS main developer http://www.freenas.org Skype: callto://ocochard 2006/2/27, Lukas Ertl : > > On Mon, 27 Feb 2006, Olivier Cochard wrote: > > > Yes, the volume is UP but I can't mount it, and the fsck report the > error > > message previously post. > > Hm, actually, no idea. Maybe the first superblock got lost somehow, and > you can find an alternate superblock to mount the FS. Using "newfs -N" > should print out how a FS would be created without doing it, so you can > find the locations of the alternate superblocks. > > regards, > le > > -- > Lukas Ertl http://homepage.univie.ac.at/l.ertl/ > le@FreeBSD.org http://people.freebsd.org/~le/ > From owner-freebsd-geom@FreeBSD.ORG Mon Mar 6 14:27:50 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 DB69B16A420 for ; Mon, 6 Mar 2006 14:27:50 +0000 (GMT) (envelope-from le@FreeBSD.org) Received: from imap1u.univie.ac.at (imap1u.univie.ac.at [131.130.1.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id E19A743D49 for ; Mon, 6 Mar 2006 14:27:42 +0000 (GMT) (envelope-from le@FreeBSD.org) Received: from pcle2.cc.univie.ac.at (pcle2.cc.univie.ac.at [131.130.2.177]) by imap1u.univie.ac.at (8.12.10/8.12.10) with ESMTP id k26EPtkP090447 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 6 Mar 2006 15:25:57 +0100 (CET) Date: Mon, 6 Mar 2006 15:25:55 +0100 (CET) From: Lukas Ertl To: Olivier Cochard In-Reply-To: <3131aa530603060619o6fd23c8bl@mail.gmail.com> Message-ID: <20060306152245.I32814@pcle2.cc.univie.ac.at> References: <3131aa530602271250r458dd9fep@mail.gmail.com> <3131aa530602271316n479af14fi@mail.gmail.com> <3131aa530602271330t5b94992ei@mail.gmail.com> <3131aa530603060619o6fd23c8bl@mail.gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-DCC-ZID-Univie-Metrics: mx8 4248; Body=0 Fuz1=0 Fuz2=0 Cc: freebsd-geom@FreeBSD.org Subject: Re: Gvinum RAID5 volume don't work after a simple reboot 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, 06 Mar 2006 14:27:51 -0000 On Mon, 6 Mar 2006, Olivier Cochard wrote: > /sbin/bsdlabel -w ad0s1 auto > > Editing the bsdlabel for each: > - replacing c: by a: "Replacing" means what in this context? > - changing "unused" to "vinum" Shouldn't be necessary. > --------------------------------------------------- > Step 2: Create this raid.conf file: > > drive disk_ad0 device /dev/ad0s1 > drive disk_ad1 device /dev/ad1s1 > drive disk_ad3 device /dev/ad3s1 Why do you create a bsdlabel on the slices when you don't use it then? I suspect that's the source of the problems you have. Take the bsdlabel as it is generated by "bsdlabel -w", and don't replace anything in there. Use the 'a' partition. regards, le -- Lukas Ertl http://homepage.univie.ac.at/l.ertl/ le@FreeBSD.org http://people.freebsd.org/~le/ From owner-freebsd-geom@FreeBSD.ORG Mon Mar 6 14:39:02 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 5109C16A423 for ; Mon, 6 Mar 2006 14:39:02 +0000 (GMT) (envelope-from cochard@gmail.com) Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.193]) by mx1.FreeBSD.org (Postfix) with ESMTP id E71D443D46 for ; Mon, 6 Mar 2006 14:39:00 +0000 (GMT) (envelope-from cochard@gmail.com) Received: by nproxy.gmail.com with SMTP id k26so892280nfc for ; Mon, 06 Mar 2006 06:39:00 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:sender:to:subject:cc:in-reply-to:mime-version:content-type:references; b=XottcRjSt6QsYFnXaYYjaOHHUwL6DF26jMPvWw8kizNvsL6fpTiywz/qH8RJyUI+enZTpvgEywsLw43XK4jSzr7tSooDgC/RW7QoM0PlvOMps7NxOHYehFsfgA8j1pwUbjIWx/5JZeu73ogokMQyAxjWxi3OP7+d+lxHqi+xLI4= Received: by 10.49.41.4 with SMTP id t4mr2451827nfj; Mon, 06 Mar 2006 06:38:59 -0800 (PST) Received: by 10.48.216.14 with HTTP; Mon, 6 Mar 2006 06:38:59 -0800 (PST) Message-ID: <3131aa530603060638g6c056fdaj@mail.gmail.com> Date: Mon, 6 Mar 2006 15:38:59 +0100 From: "Olivier Cochard" Sender: cochard@gmail.com To: "Lukas Ertl" In-Reply-To: <20060306152245.I32814@pcle2.cc.univie.ac.at> MIME-Version: 1.0 References: <3131aa530602271250r458dd9fep@mail.gmail.com> <3131aa530602271316n479af14fi@mail.gmail.com> <3131aa530602271330t5b94992ei@mail.gmail.com> <3131aa530603060619o6fd23c8bl@mail.gmail.com> <20060306152245.I32814@pcle2.cc.univie.ac.at> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-geom@freebsd.org Subject: Re: Gvinum RAID5 volume don't work after a simple reboot X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Olivier Cochard List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Mar 2006 14:39:02 -0000 Thanks for your remarks. I will try it. Olivier 2006/3/6, Lukas Ertl : > > On Mon, 6 Mar 2006, Olivier Cochard wrote: > > > /sbin/bsdlabel -w ad0s1 auto > > > > Editing the bsdlabel for each: > > - replacing c: by a: > > "Replacing" means what in this context? > > > - changing "unused" to "vinum" > > Shouldn't be necessary. > > > --------------------------------------------------- > > Step 2: Create this raid.conf file: > > > > drive disk_ad0 device /dev/ad0s1 > > drive disk_ad1 device /dev/ad1s1 > > drive disk_ad3 device /dev/ad3s1 > > Why do you create a bsdlabel on the slices when you don't use it then? > > I suspect that's the source of the problems you have. > > Take the bsdlabel as it is generated by "bsdlabel -w", and don't replace > anything in there. Use the 'a' partition. > > regards, > le > > -- > Lukas Ertl http://homepage.univie.ac.at/l.ertl/ > le@FreeBSD.org http://people.freebsd.org/~le/ > _______________________________________________ > freebsd-geom@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-geom > To unsubscribe, send any mail to "freebsd-geom-unsubscribe@freebsd.org" > From owner-freebsd-geom@FreeBSD.ORG Mon Mar 6 15:39: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 686F116A420 for ; Mon, 6 Mar 2006 15:39:22 +0000 (GMT) (envelope-from cochard@gmail.com) Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.200]) by mx1.FreeBSD.org (Postfix) with ESMTP id F2E9443D67 for ; Mon, 6 Mar 2006 15:39:09 +0000 (GMT) (envelope-from cochard@gmail.com) Received: by nproxy.gmail.com with SMTP id l37so891559nfc for ; Mon, 06 Mar 2006 07:39:08 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:sender:to:subject:cc:in-reply-to:mime-version:content-type:references; b=XA9f1j8xR5uD+9WSfAbmbESLLJPiPCK34LroYIzTQ93ki3KjJtlGVTiDOA/iBOrsHH/T3YHA07PD7g9+IxdijmiTV6neerwLZ+DNQnL460tCXhN45PF6nHQdVEToUjKd2m2EVj7OOHP4IHu3aev/LtNN32gUIUd3DRPsPPC49iE= Received: by 10.48.226.12 with SMTP id y12mr2488079nfg; Mon, 06 Mar 2006 07:39:08 -0800 (PST) Received: by 10.48.216.14 with HTTP; Mon, 6 Mar 2006 07:39:08 -0800 (PST) Message-ID: <3131aa530603060739p2de1ac45h@mail.gmail.com> Date: Mon, 6 Mar 2006 16:39:08 +0100 From: "Olivier Cochard" Sender: cochard@gmail.com To: "Lukas Ertl" In-Reply-To: <3131aa530603060638g6c056fdaj@mail.gmail.com> MIME-Version: 1.0 References: <3131aa530602271250r458dd9fep@mail.gmail.com> <3131aa530602271316n479af14fi@mail.gmail.com> <3131aa530602271330t5b94992ei@mail.gmail.com> <3131aa530603060619o6fd23c8bl@mail.gmail.com> <20060306152245.I32814@pcle2.cc.univie.ac.at> <3131aa530603060638g6c056fdaj@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-geom@freebsd.org Subject: Re: Gvinum RAID5 volume don't work after a simple reboot X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Olivier Cochard List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Mar 2006 15:39:22 -0000 I've changed the procedure... but no changes: the Raid Volume refuse to works after the reboot. Here is the new procedure I've used: 1. initializing hard drive: /bin/dd if=3D/dev/zero of=3D/dev/ad0 bs=3D1k count=3D20"); /sbin/fdisk -I -b /boot/mbr ad0 /sbin/bsdlabel -w ad0 auto 2. Generating config file: $ cat /var/etc/raid.conf drive disk_ad1 device /dev/ad1a drive disk_ad2 device /dev/ad2a drive disk_ad3 device /dev/ad3a volume raid5 plex org raid5 256k sd length 102M drive disk_ad1 sd length 102M drive disk_ad2 sd length 102M drive disk_ad3 3. Create a filesystem on it: /sbin/newfs -U /dev/gvinum/raid5 4. Mount it and put a file without problem 5. Reboot... Same problem. Olivier 2006/3/6, Olivier Cochard < olivier@freenas.org>: > > Thanks for your remarks. > I will try it. > > Olivier > > > 2006/3/6, Lukas Ertl : > > > > On Mon, 6 Mar 2006, Olivier Cochard wrote: > > > > > /sbin/bsdlabel -w ad0s1 auto > > > > > > Editing the bsdlabel for each: > > > - replacing c: by a: > > > > "Replacing" means what in this context? > > > > > - changing "unused" to "vinum" > > > > Shouldn't be necessary. > > > > > --------------------------------------------------- > > > Step 2: Create this raid.conf file: > > > > > > drive disk_ad0 device /dev/ad0s1 > > > drive disk_ad1 device /dev/ad1s1 > > > drive disk_ad3 device /dev/ad3s1 > > > > Why do you create a bsdlabel on the slices when you don't use it then? > > > > I suspect that's the source of the problems you have. > > > > Take the bsdlabel as it is generated by "bsdlabel -w", and don't replac= e > > anything in there. Use the 'a' partition. > > > > regards, > > le > > > > -- > > Lukas Ertl http://homepage.univie.ac.at/l.ertl/ > > le@FreeBSD.org http://people.freebsd.org/~le/ > > _______________________________________________ > > freebsd-geom@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-geom > > To unsubscribe, send any mail to " freebsd-geom-unsubscribe@freebsd.org= " > > > > -- Olivier Cochard FreeNAS main developer http://www.freenas.org Skype: callto://ocochard From owner-freebsd-geom@FreeBSD.ORG Mon Mar 6 15:50:56 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 C32C716A420 for ; Mon, 6 Mar 2006 15:50:56 +0000 (GMT) (envelope-from le@FreeBSD.org) Received: from imap1u.univie.ac.at (imap1u.univie.ac.at [131.130.1.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id CF57343D5A for ; Mon, 6 Mar 2006 15:50:51 +0000 (GMT) (envelope-from le@FreeBSD.org) Received: from pcle2.cc.univie.ac.at (pcle2.cc.univie.ac.at [131.130.2.177]) by imap1u.univie.ac.at (8.12.10/8.12.10) with ESMTP id k26FiVkP033622 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 6 Mar 2006 16:44:33 +0100 (CET) Date: Mon, 6 Mar 2006 16:44:31 +0100 (CET) From: Lukas Ertl To: Olivier Cochard In-Reply-To: <3131aa530603060739p2de1ac45h@mail.gmail.com> Message-ID: <20060306164339.J32814@pcle2.cc.univie.ac.at> References: <3131aa530602271250r458dd9fep@mail.gmail.com> <3131aa530602271316n479af14fi@mail.gmail.com> <3131aa530602271330t5b94992ei@mail.gmail.com> <3131aa530603060619o6fd23c8bl@mail.gmail.com> <20060306152245.I32814@pcle2.cc.univie.ac.at> <3131aa530603060638g6c056fdaj@mail.gmail.com> <3131aa530603060739p2de1ac45h@mail.gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-DCC-ZID-Univie-Metrics: mx9.univie.ac.at 4249; Body=0 Fuz1=0 Fuz2=0 Cc: freebsd-geom@FreeBSD.org Subject: Re: Gvinum RAID5 volume don't work after a simple reboot 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, 06 Mar 2006 15:50:56 -0000 On Mon, 6 Mar 2006, Olivier Cochard wrote: > Here is the new procedure I've used: > > 1. initializing hard drive: > /bin/dd if=/dev/zero of=/dev/ad0 bs=1k count=20"); > /sbin/fdisk -I -b /boot/mbr ad0 > /sbin/bsdlabel -w ad0 auto > > 2. Generating config file: > $ cat /var/etc/raid.conf > drive disk_ad1 device /dev/ad1a > drive disk_ad2 device /dev/ad2a > drive disk_ad3 device /dev/ad3a Why don't you just use a BIOS slice and a bsdlabel, like "ad0s1a"? regards, le -- Lukas Ertl http://homepage.univie.ac.at/l.ertl/ le@FreeBSD.org http://people.freebsd.org/~le/ From owner-freebsd-geom@FreeBSD.ORG Mon Mar 6 16:21:58 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 7A18816A420 for ; Mon, 6 Mar 2006 16:21:58 +0000 (GMT) (envelope-from cochard@gmail.com) Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3260343D4C for ; Mon, 6 Mar 2006 16:21:54 +0000 (GMT) (envelope-from cochard@gmail.com) Received: by nproxy.gmail.com with SMTP id o25so915623nfa for ; Mon, 06 Mar 2006 08:21:53 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:sender:to:subject:cc:in-reply-to:mime-version:content-type:references; b=KTGUyQz3BigtUCQyf7/rMxhFW4rKQgrGelK0saGlB6k+sZaqAZy3X5vWAssyFk2TE1/QTjHXquQTmPlhBCfjHS1bbhVuxp6doRY41CSFyQUwfq8GhVTwUN/plB/y/bl6wzjE8QudJeVLXz6BhLDzbbc1w0BoxYK0v3krz96r+4w= Received: by 10.48.49.1 with SMTP id w1mr2490309nfw; Mon, 06 Mar 2006 08:21:52 -0800 (PST) Received: by 10.48.216.14 with HTTP; Mon, 6 Mar 2006 08:21:52 -0800 (PST) Message-ID: <3131aa530603060821m53a307h@mail.gmail.com> Date: Mon, 6 Mar 2006 17:21:52 +0100 From: "Olivier Cochard" Sender: cochard@gmail.com To: "Lukas Ertl" In-Reply-To: <20060306164339.J32814@pcle2.cc.univie.ac.at> MIME-Version: 1.0 References: <3131aa530602271250r458dd9fep@mail.gmail.com> <3131aa530602271316n479af14fi@mail.gmail.com> <3131aa530602271330t5b94992ei@mail.gmail.com> <3131aa530603060619o6fd23c8bl@mail.gmail.com> <20060306152245.I32814@pcle2.cc.univie.ac.at> <3131aa530603060638g6c056fdaj@mail.gmail.com> <3131aa530603060739p2de1ac45h@mail.gmail.com> <20060306164339.J32814@pcle2.cc.univie.ac.at> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-geom@freebsd.org Subject: Re: Gvinum RAID5 volume don't work after a simple reboot X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Olivier Cochard List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Mar 2006 16:21:58 -0000 Sorry, I missunderstand your last email. I've changed the procedure... and same problem at reboot. Here is the new procedure: /bin/dd if=3D/dev/zero of=3D/dev/ad0 bs=3D1k count=3D20 /sbin/fdisk -I -b /boot/mbr ad0 /bin/dd if=3D/dev/zero of=3D/dev/ad0s1 bs=3D32k count=3D16 /sbin/bsdlabel -w ad0s1 auto the raid.conf file: drive disk_ad1 device /dev/ad1s1a drive disk_ad2 device /dev/ad2s1a drive disk_ad3 device /dev/ad3s1a volume raid5 plex org raid5 256k sd length 102M drive disk_ad1 sd length 102M drive disk_ad2 sd length 102M drive disk_ad3 Olivier 2006/3/6, Lukas Ertl : > > On Mon, 6 Mar 2006, Olivier Cochard wrote: > > > Here is the new procedure I've used: > > > > 1. initializing hard drive: > > /bin/dd if=3D/dev/zero of=3D/dev/ad0 bs=3D1k count=3D20"); > > /sbin/fdisk -I -b /boot/mbr ad0 > > /sbin/bsdlabel -w ad0 auto > > > > 2. Generating config file: > > $ cat /var/etc/raid.conf > > drive disk_ad1 device /dev/ad1a > > drive disk_ad2 device /dev/ad2a > > drive disk_ad3 device /dev/ad3a > > Why don't you just use a BIOS slice and a bsdlabel, like "ad0s1a"? > > regards, > le > > -- > Lukas Ertl http://homepage.univie.ac.at/l.ertl/ > le@FreeBSD.org http://people.freebsd.org/~le/ > From owner-freebsd-geom@FreeBSD.ORG Mon Mar 6 16:49:30 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 6373716A420 for ; Mon, 6 Mar 2006 16:49:30 +0000 (GMT) (envelope-from le@FreeBSD.org) Received: from imap1u.univie.ac.at (imap1u.univie.ac.at [131.130.1.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id CD62143D48 for ; Mon, 6 Mar 2006 16:49:28 +0000 (GMT) (envelope-from le@FreeBSD.org) Received: from korben (korben.prv.univie.ac.at [131.130.7.98]) by imap1u.univie.ac.at (8.12.10/8.12.10) with ESMTP id k26GhVkP060588 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Mon, 6 Mar 2006 17:43:33 +0100 (CET) Date: Mon, 6 Mar 2006 17:43:30 +0100 From: Lukas Ertl To: Olivier Cochard In-Reply-To: <3131aa530603060821m53a307h@mail.gmail.com> Message-ID: References: <3131aa530602271250r458dd9fep@mail.gmail.com> <3131aa530602271316n479af14fi@mail.gmail.com> <3131aa530602271330t5b94992ei@mail.gmail.com> <3131aa530603060619o6fd23c8bl@mail.gmail.com> <20060306152245.I32814@pcle2.cc.univie.ac.at> <3131aa530603060638g6c056fdaj@mail.gmail.com> <3131aa530603060739p2de1ac45h@mail.gmail.com> <20060306164339.J32814@pcle2.cc.univie.ac.at> <3131aa530603060821m53a307h@mail.gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-DCC-ZID-Univie-Metrics: mx8 4248; Body=0 Fuz1=0 Fuz2=0 Cc: freebsd-geom@FreeBSD.org Subject: Re: Gvinum RAID5 volume don't work after a simple reboot 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, 06 Mar 2006 16:49:30 -0000 On Mon, 6 Mar 2006, Olivier Cochard wrote: > Sorry, I missunderstand your last email. > > I've changed the procedure... and same problem at reboot. OK, now I'm a bit puzzled... let me think about it. :-) regards, le -- Lukas Ertl http://homepage.univie.ac.at/l.ertl/ le@FreeBSD.org http://people.freebsd.org/~le/ From owner-freebsd-geom@FreeBSD.ORG Mon Mar 6 20:07:01 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 8F17116A420 for ; Mon, 6 Mar 2006 20:07:01 +0000 (GMT) (envelope-from nivo+d+1142193990.10c187@yuckfou.org) Received: from ssdd.xs4all.nl (ssdd.xs4all.nl [195.64.89.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id CEE1D43D5A for ; Mon, 6 Mar 2006 20:06:29 +0000 (GMT) (envelope-from nivo+d+1142193990.10c187@yuckfou.org) Received: from localhost (localhost [127.0.0.1]) by imhotep.yuckfou.org (Postfix) with ESMTP id 108CA50 for ; Mon, 6 Mar 2006 21:06:44 +0100 (CET) Received: from ssdd.xs4all.nl ([127.0.0.1]) by localhost (imhotep.is-root.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 66720-05 for ; Mon, 6 Mar 2006 21:06:30 +0100 (CET) Received: by imhotep.yuckfou.org (Postfix, from userid 1000) id B78D659; Mon, 6 Mar 2006 21:06:30 +0100 (CET) Received: from [192.168.2.239] (turbata-xp.gondel.local [192.168.2.239]) by localhost.yuckfou.org (tmda-ofmipd) with ESMTP; Mon, 06 Mar 2006 21:06:25 +0100 (CET) Message-ID: <440C9630.2080002@yuckfou.org> Date: Mon, 06 Mar 2006 21:06:08 +0100 User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: freebsd-geom@freebsd.org X-Enigmail-Version: 0.94.0.0 OpenPGP: id=AD3A5AAD; url=http://www.is-root.com/nv.pgp Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig85F27E4EB37AF7F6C372D358" From: Nils Vogels X-Delivery-Agent: TMDA/1.0.3 (Seattle Slew) X-TMDA-Fingerprint: SrXzw1lhmZc0nTXo/qUUHvspXvw X-Virus-Scanned: amavisd-new at is-root.com X-Spam-Status: No, score=-3.103 tagged_above=-999 required=6.31 tests=[ALL_TRUSTED=-1.8, AWL=1.296, BAYES_00=-2.599] X-Spam-Score: -3.103 X-Spam-Level: Subject: ZFS port using GEOM 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, 06 Mar 2006 20:07:01 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig85F27E4EB37AF7F6C372D358 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi there! I'm reading up on ZFS, Solaris's new filesystem that has a level of RAID built in. You can read it too at http://www.opensolaris.org/os/community/zfs/whatis/ While reading the documents, I was really charmed by the features ZFS has incorporated, and was wondering if there was any effort within the FreeBSD community to port ZFS to FreeBSD (using GEOM would seem the most likely choice, so thats why I'm posting to this list.) Research on various mailing lists taught me that there is only a few mentions on the -hackers list in 2004, nothing else seems to pop up. Are there any plans or efforts to incorporate ZFS into FreeBSD, that you know of, or constructions with similar features? It would save me an install of OpenSolaris, plus the effort needed to learn the internals of yet another *NIX version :-) Greetings, Nils --------------enig85F27E4EB37AF7F6C372D358 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.1 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFEDJYwMzNX/a06Wq0RAmOIAJ9ETQqArD7NPmd7IBZkuSt4l2gfmgCfQV/I uuKRHQHvkBSOzQNXz/eD3l0= =sS9D -----END PGP SIGNATURE----- --------------enig85F27E4EB37AF7F6C372D358-- From owner-freebsd-geom@FreeBSD.ORG Tue Mar 7 04:27: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 7181016A420 for ; Tue, 7 Mar 2006 04:27:45 +0000 (GMT) (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 F0FCA43D45 for ; Tue, 7 Mar 2006 04:27:44 +0000 (GMT) (envelope-from gcubfg-freebsd-geom@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1FGTnK-00014f-VE for freebsd-geom@freebsd.org; Tue, 07 Mar 2006 05:27:35 +0100 Received: from p508c266a.dip0.t-ipconnect.de ([80.140.38.106]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 07 Mar 2006 05:27:34 +0100 Received: from christian.baer by p508c266a.dip0.t-ipconnect.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 07 Mar 2006 05:27:34 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-geom@freebsd.org From: Christian Baer Date: Mon, 6 Mar 2006 20:51:15 +0100 (CET) Organization: Convenimus Projekt Lines: 16 Message-ID: References: <20060306113000.GC53437@garage.freebsd.pl> <20060306121125.GG53437@garage.freebsd.pl> X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: p508c266a.dip0.t-ipconnect.de User-Agent: slrn/0.9.8.1 (FreeBSD) Sender: news Subject: Re: Changing geli-providers from passphrase to keyfile 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, 07 Mar 2006 04:27:45 -0000 On Mon, 6 Mar 2006 13:11:25 +0100 Pawel Jakub Dawidek wrote: > So what you basically want is to change your passphrase to a keyfile? > > # echo piped-passphrase | geli setkey -P -K - ad0s1d > Enter passphrase: > # echo piped-passphrase | geli attach -p -k - ad0s1d Yup, that was it! :-) Thanks for the help! Does this in any way affect the strength of the security or does it have other drawbacks? Can I still save the metadata with 'backup'? Regards Chris From owner-freebsd-geom@FreeBSD.ORG Thu Mar 9 08:02:58 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 84A3316A420 for ; Thu, 9 Mar 2006 08:02:58 +0000 (GMT) (envelope-from fb-geom@psconsult.nl) Received: from mx0.psconsult.nl (ps226.psconsult.nl [213.222.19.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id EAC7B43D48 for ; Thu, 9 Mar 2006 08:02:57 +0000 (GMT) (envelope-from fb-geom@psconsult.nl) Received: from phuket.psconsult.nl (localhost [127.0.0.1]) by mx0.psconsult.nl (8.12.8p2/8.12.8) with ESMTP id k2982tpe086794 for ; Thu, 9 Mar 2006 09:02:55 +0100 (CET) (envelope-from fb-geom@psconsult.nl) Received: (from paul@localhost) by phuket.psconsult.nl (8.12.8p2/8.12.8/Submit) id k2982tDZ086793 for freebsd-geom@freebsd.org; Thu, 9 Mar 2006 09:02:55 +0100 (CET) Date: Thu, 9 Mar 2006 09:02:55 +0100 From: Paul Schenkeveld To: freebsd-geom@freebsd.org Message-ID: <20060309080255.GA86676@psconsult.nl> Mail-Followup-To: freebsd-geom@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.6i Subject: gvinum missing setupstate/setstate 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, 09 Mar 2006 08:02:58 -0000 Hello, I'm upgrading several servers from 4-STABLE to 6-STABLE by replacing the disks with /, /var, /usr but the data disks stay. All disks were mirrored using vinum (4-S) and will be using gvinum (6-S). Since gvinum does not appear to correctly recognize the configuration saved by vinum, I wipe it out before the upgrade by writing 265 blocks of zeroes over each partition containing vinum and running gvinum create afterwards. I know that the data on the datadisks are mirrored correctly as they were so while running 4-STABLE, so I'd prefer not to re-synchronize those disks (2 pairs of two 500GB disks per server). So I tried the 'volume setupstate' while creating but that seems not supported. Also, doing setstate up afterwards seems not supported. Is there any way making gvinum trust me that the mirror is in good shape without copying over the whole 1TB making the machine very slow for several hours? Thanks, Paul Schenkeveld From owner-freebsd-geom@FreeBSD.ORG Thu Mar 9 10:39:53 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 3519D16A420 for ; Thu, 9 Mar 2006 10:39:53 +0000 (GMT) (envelope-from le@FreeBSD.org) Received: from imap1u.univie.ac.at (imap1u.univie.ac.at [131.130.1.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id 998DF43D55 for ; Thu, 9 Mar 2006 10:39:52 +0000 (GMT) (envelope-from le@FreeBSD.org) Received: from korben.prv.univie.ac.at (korben.prv.univie.ac.at [131.130.7.98]) by imap1u.univie.ac.at (8.12.10/8.12.10) with ESMTP id k29AIlUq078369 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 9 Mar 2006 11:18:49 +0100 (CET) Date: Thu, 9 Mar 2006 11:18:45 +0100 (CET) From: Lukas Ertl To: Paul Schenkeveld In-Reply-To: <20060309080255.GA86676@psconsult.nl> Message-ID: <20060309111815.B6916@korben.prv.univie.ac.at> References: <20060309080255.GA86676@psconsult.nl> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-DCC-ZID-Univie-Metrics: mx8 4248; Body=0 Fuz1=0 Fuz2=0 Cc: freebsd-geom@FreeBSD.org Subject: Re: gvinum missing setupstate/setstate 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, 09 Mar 2006 10:39:53 -0000 On Thu, 9 Mar 2006, Paul Schenkeveld wrote: > I know that the data on the datadisks are mirrored correctly as they > were so while running 4-STABLE, so I'd prefer not to re-synchronize > those disks (2 pairs of two 500GB disks per server). So I tried the > 'volume setupstate' while creating but that seems not supported. > Also, doing setstate up afterwards seems not > supported. Try "setstate -f up name.p1.s0". regards, le -- Lukas Ertl http://homepage.univie.ac.at/l.ertl/ le@FreeBSD.org http://people.freebsd.org/~le/ From owner-freebsd-geom@FreeBSD.ORG Thu Mar 9 19:30:37 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 A7A0016A420 for ; Thu, 9 Mar 2006 19:30:37 +0000 (GMT) (envelope-from xride@x12.dk) Received: from swip.net (mailfe06.swip.net [212.247.154.161]) by mx1.FreeBSD.org (Postfix) with ESMTP id E7A2743D45 for ; Thu, 9 Mar 2006 19:30:36 +0000 (GMT) (envelope-from xride@x12.dk) X-T2-Posting-ID: lkM/Dn7LTUP9vUt2XCoVCw== X-Cloudmark-Score: 0.000000 [] Received: from x12.dk ([83.72.97.237] verified) by mailfe06.swip.net (CommuniGate Pro SMTP 5.0.8) with ESMTP id 148925592; Thu, 09 Mar 2006 20:30:34 +0100 Received: by x12.dk (Postfix, from userid 666) id 107D550839; Thu, 9 Mar 2006 20:30:32 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by x12.dk (Postfix) with ESMTP id 06A965082A; Thu, 9 Mar 2006 20:30:31 +0100 (CET) Date: Thu, 9 Mar 2006 20:30:31 +0100 (CET) From: Soeren Straarup To: Nils Vogels In-Reply-To: <440C9630.2080002@yuckfou.org> Message-ID: <20060309202614.F60677@x12.dk> References: <440C9630.2080002@yuckfou.org> MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="0-494171202-1141932631=:60677" Cc: freebsd-geom@freebsd.org Subject: Re: ZFS port using GEOM 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, 09 Mar 2006 19:30:37 -0000 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --0-494171202-1141932631=:60677 Content-Type: TEXT/PLAIN; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE On Mon, 6 Mar 2006, Nils Vogels wrote: > Hi there! > > I'm reading up on ZFS, Solaris's new filesystem that has a level of RAID > built in. You can read it too at > http://www.opensolaris.org/os/community/zfs/whatis/ > > While reading the documents, I was really charmed by the features ZFS > has incorporated, and was wondering if there was any effort within the > FreeBSD community to port ZFS to FreeBSD (using GEOM would seem the most > likely choice, so thats why I'm posting to this list.) > > Research on various mailing lists taught me that there is only a few > mentions on the -hackers list in 2004, nothing else seems to pop up. > > Are there any plans or efforts to incorporate ZFS into FreeBSD, that you > know of, or constructions with similar features? > It would save me an install of OpenSolaris, plus the effort needed to > learn the internals of yet another *NIX version :-) > > Greetings, > > Nils > > I haven't heard of any one actually working on porting it. So as i always say "send-pr with a patch" (; I've looked at it the idea seems neat But it haven't found the time, motivation and skills to try porting it. Best regards S=F8ren Straarup Soeren Straarup | aka OZ2DAK aka Xride FreeBSD wannabe | FreeBSD since 2.2.6-R Incorrect documentation is often worse than no documentation. - Bertrand Meyer --0-494171202-1141932631=:60677-- From owner-freebsd-geom@FreeBSD.ORG Fri Mar 10 12:05:05 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 456D316A422; Fri, 10 Mar 2006 12:05:05 +0000 (GMT) (envelope-from fb-geom@psconsult.nl) Received: from mx0.psconsult.nl (ps226.psconsult.nl [213.222.19.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6588043D76; Fri, 10 Mar 2006 12:05:02 +0000 (GMT) (envelope-from fb-geom@psconsult.nl) Received: from phuket.psconsult.nl (localhost [127.0.0.1]) by mx0.psconsult.nl (8.12.8p2/8.12.8) with ESMTP id k2AC51pe012264; Fri, 10 Mar 2006 13:05:01 +0100 (CET) (envelope-from fb-geom@psconsult.nl) Received: (from paul@localhost) by phuket.psconsult.nl (8.12.8p2/8.12.8/Submit) id k2AC50rv012263; Fri, 10 Mar 2006 13:05:01 +0100 (CET) Date: Fri, 10 Mar 2006 13:05:00 +0100 From: Paul Schenkeveld To: freebsd-geom@freebsd.org Message-ID: <20060310120500.GA11758@psconsult.nl> Mail-Followup-To: freebsd-geom@freebsd.org, Lukas Ertl References: <20060309080255.GA86676@psconsult.nl> <20060309111815.B6916@korben.prv.univie.ac.at> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060309111815.B6916@korben.prv.univie.ac.at> User-Agent: Mutt/1.5.6i Cc: Lukas Ertl Subject: Re: gvinum missing setupstate/setstate 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, 10 Mar 2006 12:05:05 -0000 Hi Lukas, On Thu, Mar 09, 2006 at 11:18:45AM +0100, Lukas Ertl wrote: > On Thu, 9 Mar 2006, Paul Schenkeveld wrote: > > >I know that the data on the datadisks are mirrored correctly as they > >were so while running 4-STABLE, so I'd prefer not to re-synchronize > >those disks (2 pairs of two 500GB disks per server). So I tried the > >'volume setupstate' while creating but that seems not supported. > >Also, doing setstate up afterwards seems not > >supported. > > Try "setstate -f up name.p1.s0". That worked, thanks! I may have found another reproducable problem with gvinum however. My estimate here is that 'gvinum create' on a set of disks with no vinum configuration present writes unreliable metadata if the config file has more than a couple of volumes. I can't fix the source (ENOTIME, and probably EINSUFFICIENTEXPERIENCE with geom and gvinum code) so below is the story which made me feel gvinum create is broken. This server is finally up after a downtime of more than 24 hours so my next opportunity to test will be the next server, somewhere next month. The long (& boring) story: For the upgrade from 4.x to 6-STABLE, I first installed a new couple of SCSI disks: # fdisk -s da0 /dev/da0: 8924 cyl 255 hd 63 sec Part Start Size Type Flags 1: 63 2088387 0xa5 0x00 2: 2088450 141275610 0xa5 0x80 # disklabel da0s1 # /dev/da0s1: 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 1564099 524288 4.2BSD 0 0 0 b: 524288 0 swap c: 2088387 0 unused 0 0 # disklabel da0s2 # /dev/da0s2: 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 524288 2097433 4.2BSD 2048 16384 32776 c: 141275610 0 unused 0 0 e: 141275594 16 vinum da1 is exactly the same. The first slice on each disk has 6.0-RELEASE installed on it which I use as a kind of Fixit environment (faster than CD), it also contains an up-to-date copy of my vinum configuration file. There are 12 gvinum volumes, including swap, /, /var, /usr, /home. Because of problems I saw with vinum in the past my standard procedure for changing anything with any [g]vinum configuration is: - reboot the machine and stay in single-user mode - vinum resetconfig or even: dd bs=512 count=265 < /dev/zero > vinum_partition - vinum create /etc/vinum.conf Since resetconfig is not supported I use the dd method on >= FB-6. Note that I always reboot before dd so geom_vinum is not yet loaded at that time. I have tried many times to follow the above procedure on this server after I added two existing large mirrored filesystems on 4 ATA disks of 500GB to this system and added their config to /etc/vinum.conf. Every time, it looks OK after gvinum create but after a reboot subdisks, plexes and volumes show up as down, stale or empty and sometimes a drive is reported down. Explicit gvinum saveconfig after gvinum create does not help either. To rule out kernel differences between 6.0-R and 6-STABLE I also tried with the 6.0-R on both da[01]s1a and da[01]s2a and with 6-STABLE on both slices. I always ended up having down/stale/empty objects after reboot but sometimes only half of each mirror was gone, sometimes both plexes of each mirror. Reducing the vinum config to only cover the 2 SCSI disks and even taking the ATA disks and controllers out of the machine did not help. Then, around 2:30 am last night I remembered that when I first built the new disks I started with only swap, /, /tmp, /var, /usr and /home and added the other volumes later. Eureka! I reduced /etc/vinum.conf to only contain these volumes, dd'ed /dev/zero over the vinum metadata for the 2^infinitied time, gvinum create, reboot to single user and everything turned up ok! Both booting F1 (da0s1a) or F2 (gvinum/root) are stable and no matter how many reboots all objects remain up. Then I added the remaining volumes of my SCSI disks and the two large volumes on the ATA disks, had to setstate -f up on every subdisk of every second plex and the system (at least 10 reboots later now) is still fine. > regards, > le Regards and thanks a lot for all your effords geomifying vinum! Paul Schenkeveld From owner-freebsd-geom@FreeBSD.ORG Sat Mar 11 01:25:04 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 E686916A64B for ; Sat, 11 Mar 2006 01:24:56 +0000 (GMT) (envelope-from fb-geom@psconsult.nl) Received: from mx0.psconsult.nl (ps226.psconsult.nl [213.222.19.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id 103A346424 for ; Fri, 10 Mar 2006 15:29:02 +0000 (GMT) (envelope-from fb-geom@psconsult.nl) Received: from phuket.psconsult.nl (localhost [127.0.0.1]) by mx0.psconsult.nl (8.12.8p2/8.12.8) with ESMTP id k2AFT0pe014456 for ; Fri, 10 Mar 2006 16:29:00 +0100 (CET) (envelope-from fb-geom@psconsult.nl) Received: (from paul@localhost) by phuket.psconsult.nl (8.12.8p2/8.12.8/Submit) id k2AFT0iS014454 for freebsd-geom@freebsd.org; Fri, 10 Mar 2006 16:29:00 +0100 (CET) Date: Fri, 10 Mar 2006 16:29:00 +0100 From: Paul Schenkeveld To: freebsd-geom@freebsd.org Message-ID: <20060310152859.GA14414@psconsult.nl> Mail-Followup-To: freebsd-geom@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.6i Subject: ggatec patch 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, 11 Mar 2006 01:25:04 -0000 Hi, Observed on a recent 6-STABLE Ggatec create prints the allocated provider name to stdout. When stdout is used in `` or piped, nothing is output. Adding fflush() cures the problem: Index: ggatec.c =================================================================== RCS file: /FreeBSD/cvs/src/sbin/ggate/ggatec/ggatec.c,v retrieving revision 1.6 diff -u -r1.6 ggatec.c --- ggatec.c 10 Jul 2005 21:10:20 -0000 1.6 +++ ggatec.c 10 Mar 2006 15:24:25 -0000 @@ -457,8 +457,10 @@ snprintf(ggioc.gctl_info, sizeof(ggioc.gctl_info), "%s:%u %s", host, port, path); g_gate_ioctl(G_GATE_CMD_CREATE, &ggioc); - if (unit == -1) + if (unit == -1) { printf("%s%u\n", G_GATE_PROVIDER_NAME, ggioc.gctl_unit); + fflush(stdout); + } unit = ggioc.gctl_unit; mydaemon(); Regards, Paul Schenkeveld From owner-freebsd-geom@FreeBSD.ORG Sat Mar 11 02:47:07 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 A967D16A41F; Sat, 11 Mar 2006 02:47:07 +0000 (GMT) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 500BC43D45; Sat, 11 Mar 2006 02:47:07 +0000 (GMT) (envelope-from linimon@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 k2B2l7Do062254; Sat, 11 Mar 2006 02:47:07 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k2B2l7xD062250; Sat, 11 Mar 2006 02:47:07 GMT (envelope-from linimon) Date: Sat, 11 Mar 2006 02:47:07 GMT From: Mark Linimon Message-Id: <200603110247.k2B2l7xD062250@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-geom@FreeBSD.org Cc: Subject: Re: kern/94299: [geom] missing printf locking for geom_mirror boot messages? 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, 11 Mar 2006 02:47:07 -0000 Old Synopsis: missing printf locking for geom_mirror boot messages? New Synopsis: [geom] missing printf locking for geom_mirror boot messages? Responsible-Changed-From-To: freebsd-bugs->freebsd-geom Responsible-Changed-By: linimon Responsible-Changed-When: Sat Mar 11 02:46:42 UTC 2006 Responsible-Changed-Why: Over to maintainer(s). http://www.freebsd.org/cgi/query-pr.cgi?pr=94299 From owner-freebsd-geom@FreeBSD.ORG Sat Mar 11 18:21:56 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 1163B16A41F for ; Sat, 11 Mar 2006 18:21:56 +0000 (GMT) (envelope-from cochard@gmail.com) Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.203]) by mx1.FreeBSD.org (Postfix) with ESMTP id F1AC643D45 for ; Sat, 11 Mar 2006 18:21:54 +0000 (GMT) (envelope-from cochard@gmail.com) Received: by nproxy.gmail.com with SMTP id l37so711770nfc for ; Sat, 11 Mar 2006 10:21:53 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:sender:to:subject:mime-version:content-type; b=WmNSUMhNJsVc8c7Z1Zb8nO4faucEyy7uXyLDphie0RXIPW06dT8AGQimRidvg7odMLZ2rabxJIBHnVYsMji0vqsEQuG+2wR+VGBThXf9iWV1RtF90v8jzyRzQMEpv6E65GPg2rBRWICQTDaP2xCCvYsEAG47oVx90fzOwLaepok= Received: by 10.49.43.1 with SMTP id v1mr86819nfj; Sat, 11 Mar 2006 10:21:53 -0800 (PST) Received: by 10.48.216.14 with HTTP; Sat, 11 Mar 2006 10:21:53 -0800 (PST) Message-ID: <3131aa530603111021x183cdb67y@mail.gmail.com> Date: Sat, 11 Mar 2006 19:21:53 +0100 From: "Olivier Cochard" Sender: cochard@gmail.com To: freebsd-geom@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: gvinum: problem for adding drives X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Olivier Cochard List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Mar 2006 18:21:56 -0000 Hi all, Lot's of my users have a problem for creating gvinum volume (raid1). When they create a volume, they have a 100% for the drives (and not a 0%). What 's mean this value ? Personnaly, I can't reproduce the problem with my VMware machine, but here is their gvinum state: Software RAID information and status: 2 drives: D disk_ad3 State: up /dev/ad3s1a A: 194479/194479 MB (100%) D disk_ad2 State: up /dev/ad2s1a A: 194479/194479 MB (100%) 1 volume: V raid State: down Plexes: 2 Size: 0 B 2 plexes: P raid.p1 C State: down Subdisks: 0 Size: 0 B P raid.p0 C State: down Subdisks: 0 Size: 0 B 0 subdisks: =3D> No subdisks! And here is the commands used (example for 1 disk): /bin/dd if=3D/dev/zero of=3D/dev/ad2 bs=3D1k count=3D20 /sbin/fdisk -I -b /boot/mbr ad2 /bin/dd if=3D/dev/zero of=3D/dev/ad2s1 bs=3D32k count=3D16 /sbin/bsdlabel -w ad2s1 auto the raid.conf file: drive disk_ad2 device /dev/ad2s1a drive disk_ad3 device /dev/ad3s1a volume V plex org concat sd length 194479M drive disk_ad2 sd length 194479M drive disk_ad3 Regards, Olivier From owner-freebsd-geom@FreeBSD.ORG Sat Mar 11 18:56:25 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 5FAD616A41F for ; Sat, 11 Mar 2006 18:56:25 +0000 (GMT) (envelope-from le@FreeBSD.org) Received: from imap1u.univie.ac.at (imap1u.univie.ac.at [131.130.1.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6F02B43D45 for ; Sat, 11 Mar 2006 18:56:24 +0000 (GMT) (envelope-from le@FreeBSD.org) Received: from korben (le.vpn.univie.ac.at [131.130.222.177]) by imap1u.univie.ac.at (8.12.10/8.12.10) with ESMTP id k2BItvUC062060 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Sat, 11 Mar 2006 19:56:02 +0100 (CET) Date: Sat, 11 Mar 2006 19:55:49 +0100 From: Lukas Ertl To: Olivier Cochard In-Reply-To: <3131aa530603111021x183cdb67y@mail.gmail.com> Message-ID: References: <3131aa530603111021x183cdb67y@mail.gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-DCC-ZID-Univie-Metrics: mx8 4248; Body=0 Fuz1=0 Fuz2=0 Cc: freebsd-geom@FreeBSD.org Subject: Re: gvinum: problem for adding drives 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, 11 Mar 2006 18:56:25 -0000 On Sat, 11 Mar 2006, Olivier Cochard wrote: > And here is the commands used (example for 1 disk): > > /bin/dd if=/dev/zero of=/dev/ad2 bs=1k count=20 > /sbin/fdisk -I -b /boot/mbr ad2 > /bin/dd if=/dev/zero of=/dev/ad2s1 bs=32k count=16 > /sbin/bsdlabel -w ad2s1 auto > > the raid.conf file: > drive disk_ad2 device /dev/ad2s1a > drive disk_ad3 device /dev/ad3s1a > volume V > plex org concat > sd length 194479M drive disk_ad2 > sd length 194479M drive disk_ad3 I'm not sure what's happening here either, but if they want to use the whole drive they may just set "sd length 0 drive ..." to autosize it. regards, le -- Lukas Ertl http://homepage.univie.ac.at/l.ertl/ le@FreeBSD.org http://people.freebsd.org/~le/