From owner-freebsd-geom@FreeBSD.ORG Sun Sep 18 04:16:22 2005 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 991E816A420 for ; Sun, 18 Sep 2005 04:16:22 +0000 (GMT) (envelope-from sudakov@sibptus.tomsk.ru) Received: from relay2.tomsk.ru (relay2.tomsk.ru [212.73.124.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id BE76043D45 for ; Sun, 18 Sep 2005 04:16:21 +0000 (GMT) (envelope-from sudakov@sibptus.tomsk.ru) X-Virus-Scanned: by Dr.Web (R) daemon for FreeBSD, version 4.32.1 (2004-08-30) at relay2.tomsk.ru Received: from [172.16.138.125] (account sudakovva@sibptus.tomsk.ru HELO admin.sibptus.tomsk.ru) by relay2.tomsk.ru (CommuniGate Pro SMTP 4.3.2) with ESMTPSA id 1209609; Sun, 18 Sep 2005 11:16:19 +0700 Received: (from sudakov@localhost) by admin.sibptus.tomsk.ru (8.12.9p2/8.12.9/Submit) id j8I4GIUe059208; Sun, 18 Sep 2005 11:16:18 +0700 (OMSST) (envelope-from sudakov) Date: Sun, 18 Sep 2005 11:16:18 +0700 From: Victor Sudakov To: Danny Howard Message-ID: <20050918041618.GA59139@admin.sibptus.tomsk.ru> References: <20050916073012.GA31056@admin.sibptus.tomsk.ru> <20050916225527.GT11689@ratchet.nebcorp.com> <20050917041700.GA46650@admin.sibptus.tomsk.ru> <20050917220415.GA73188@ratchet.nebcorp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050917220415.GA73188@ratchet.nebcorp.com> User-Agent: Mutt/1.4.2.1i Organization: AO "Svyaztransneft", SibPTUS X-PGP-Key: http://vas.tomsk.ru/vas.asc Cc: freebsd-geom@freebsd.org Subject: Re: Create a mirror on disk with valid data 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, 18 Sep 2005 04:16:22 -0000 Danny Howard wrote: > > > > > > I have only ever mirrored disks with data on them. Its a question of > > > bootstrap - does the mirror comes first or does the data you are going > > > to mirror come first? > > > > Suppose the disk has valuable data in the last sector and you are > > going to create a mirror from this disk. What is going to happen when > > the last sector is overwritten with the mirror metadata? Your data will > > be lost, right? Suppose you need to access the last sector, access > > will be denied, right? > > >From what I have read, the gmirror stuff uses a sector of the disk that > isn't used at the end, and if you format a disk in such a way that that > free sector is unavailable, you can not set up a gmirror. Where have you read this? Where is it documented? I would like to read this too. I provided some screen output, do you mean to say I have formatted the disk incorrectly prior to mirroring it? > > If you find a scenario in which setting up a gmirror destroys data on a > disk, then please use send-pr to file a bug, so that that issue can be > fixed. I have found a scenario in which a gmirror prevents a partition from being newfs'ed. Is this enough for a PR ? > > But, if your question is "does gmirror do evil things to existing data" > then I'll answer that I and others have gmirrored quite a few disks with > existing data Have you and others tried to access the last sector of those disks? For example, with dd? May I ask you to try? > and I'm not aware that anybody has been bitten by your > hypothesis. Have you looked at the screen output I provided? What was I doing wrong? -- Victor Sudakov, VAS4-RIPE, VAS47-RIPN From owner-freebsd-geom@FreeBSD.ORG Mon Sep 19 08:56:33 2005 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 977F816A41F for ; Mon, 19 Sep 2005 08:56:33 +0000 (GMT) (envelope-from sudakov@sibptus.tomsk.ru) Received: from relay2.tomsk.ru (relay2.tomsk.ru [212.73.124.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id C560043D46 for ; Mon, 19 Sep 2005 08:56:32 +0000 (GMT) (envelope-from sudakov@sibptus.tomsk.ru) X-Virus-Scanned: by Dr.Web (R) daemon for FreeBSD, version 4.32.1 (2004-08-30) at relay2.tomsk.ru Received: from [172.16.138.125] (account sudakovva@sibptus.tomsk.ru HELO admin.sibptus.tomsk.ru) by relay2.tomsk.ru (CommuniGate Pro SMTP 4.3.2) with ESMTPSA id 1214920; Mon, 19 Sep 2005 15:56:25 +0700 Received: (from sudakov@localhost) by admin.sibptus.tomsk.ru (8.12.9p2/8.12.9/Submit) id j8J8uP4k074159; Mon, 19 Sep 2005 15:56:25 +0700 (OMSST) (envelope-from sudakov) Date: Mon, 19 Sep 2005 15:56:25 +0700 From: Victor Sudakov To: Danny Howard Message-ID: <20050919085625.GF73933@admin.sibptus.tomsk.ru> References: <20050916073012.GA31056@admin.sibptus.tomsk.ru> <20050916225527.GT11689@ratchet.nebcorp.com> <20050917041700.GA46650@admin.sibptus.tomsk.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050917041700.GA46650@admin.sibptus.tomsk.ru> User-Agent: Mutt/1.4.2.1i Organization: AO "Svyaztransneft", SibPTUS X-PGP-Key: http://vas.tomsk.ru/vas.asc Cc: freebsd-geom@freebsd.org Subject: Re: Create a mirror on disk with valid data 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, 19 Sep 2005 08:56:33 -0000 Victor Sudakov wrote: > > > > I have only ever mirrored disks with data on them. Its a question of > > bootstrap - does the mirror comes first or does the data you are going > > to mirror come first? > > Suppose the disk has valuable data in the last sector and you are > going to create a mirror from this disk. What is going to happen when > the last sector is overwritten with the mirror metadata? Your data will > be lost, right? Suppose you need to access the last sector, access > will be denied, right? I have done some experimenting and found out the following. If you plan to put data onto a disk first, and convert the disk into a mirror later, the disk should be from the very beginning labelled so that the area for data is one sector smaller than disklabel suggests. If this condition is met, I believe converting a disk with data into a mirror is safe. -- Victor Sudakov, VAS4-RIPE, VAS47-RIPN From owner-freebsd-geom@FreeBSD.ORG Mon Sep 19 11:02:11 2005 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 5BFF616A423 for ; Mon, 19 Sep 2005 11:02:10 +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 C2F1543D49 for ; Mon, 19 Sep 2005 11:02:09 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8JB299E018046 for ; Mon, 19 Sep 2005 11:02:09 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8JB28jg018040 for freebsd-geom@freebsd.org; Mon, 19 Sep 2005 11:02:08 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 19 Sep 2005 11:02:08 GMT Message-Id: <200509191102.j8JB28jg018040@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, 19 Sep 2005 11:02:11 -0000 Current FreeBSD problem reports Critical problems Serious problems 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 Tue Sep 20 15:34:13 2005 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 A283F16A41F for ; Tue, 20 Sep 2005 15:34:13 +0000 (GMT) (envelope-from frank@barda.agala.net) Received: from mail.agala.net (I8a04.i.pppool.de [85.73.138.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id EAABD43D4C for ; Tue, 20 Sep 2005 15:34:11 +0000 (GMT) (envelope-from frank@barda.agala.net) Received: from mail.agala.net (barda [192.168.20.1]) by barda.agala.net (Postfix) with ESMTP id 219AC119CBB for ; Tue, 20 Sep 2005 17:34:18 +0200 (CEST) Received: from abakus.agala.net (abakus.agala.net [192.168.223.2]) by mail.agala.net (Postfix) with ESMTP id 37FDB119CB8 for ; Tue, 20 Sep 2005 17:34:17 +0200 (CEST) From: "Frank J. Beckmann" Organization: agala naga doron To: freebsd-geom@freebsd.org Date: Tue, 20 Sep 2005 17:33:57 +0200 User-Agent: KMail/1.8.2 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200509201734.00353.frank@barda.agala.net> X-Scanned-By: emfilter 1.0 @ 192.168.20.1 X-DSPAM-Result: Innocent X-DSPAM-Processed: Tue Sep 20 17:34:19 2005 X-DSPAM-Confidence: 1.0000 X-DSPAM-Probability: 0.0023 X-DSPAM-Signature: 218,43302bfb783805072418529 X-DSPAM-Factors: 27, Organization*naga+doron, 0.40000, Message-Id*agala+net, 0.40000, From*Frank, 0.40000, Subject*encrypted, 0.40000, Content-Type*text+plain, 0.40000, Content-Disposition*inline, 0.40000, Content-Type*charset+iso, 0.40000, Date*Tue+Sep, 0.40000, Received*37FDB119CB8, 0.40000, Subject: geli encrypted memory disk? 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, 20 Sep 2005 15:34:13 -0000 Hi, after upgrading to FreeBSD 6.0-BETA4 from the 17th I wanted to play a bit with geli. First try was an encryptet memory disk. dd if=/dev/zero of=/var/sdisk bs=2028 count=220 mdconfig -a -t vnode -S 2048 -f /var/sdisk -u 3 geli init -a AES -s 2048 /dev/md3 Geli asks me the new password twice and then exits with the following error: Cannot store metadata on /dev/md3: Invalid argument. What am I doing wrong? -- Greetings Frank From owner-freebsd-geom@FreeBSD.ORG Tue Sep 20 16:02:25 2005 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 4EB7C16A433 for ; Tue, 20 Sep 2005 16:02:25 +0000 (GMT) (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 96CCA43D46 for ; Tue, 20 Sep 2005 16:02:23 +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 j8KG2INo089908; Tue, 20 Sep 2005 11:02:19 -0500 (CDT) (envelope-from anderson@centtech.com) Message-ID: <4330328C.6070109@centtech.com> Date: Tue, 20 Sep 2005 11:02:20 -0500 From: Eric Anderson User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.11) Gecko/20050914 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Frank J. Beckmann" References: <200509201734.00353.frank@barda.agala.net> In-Reply-To: <200509201734.00353.frank@barda.agala.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.82/1091/Tue Sep 20 08:59:01 2005 on mh2.centtech.com X-Virus-Status: Clean Cc: freebsd-geom@freebsd.org Subject: Re: geli encrypted memory disk? 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, 20 Sep 2005 16:02:25 -0000 Frank J. Beckmann wrote: > Hi, > > after upgrading to FreeBSD 6.0-BETA4 from the 17th I wanted to play a bit with > geli. First try was an encryptet memory disk. > > dd if=/dev/zero of=/var/sdisk bs=2028 count=220 > mdconfig -a -t vnode -S 2048 -f /var/sdisk -u 3 > geli init -a AES -s 2048 /dev/md3 > > Geli asks me the new password twice and then exits with the following error: > > Cannot store metadata on /dev/md3: Invalid argument. > > What am I doing wrong? Probably the bs=2028 is messing things up? Eric -- ------------------------------------------------------------------------ Eric Anderson Sr. Systems Administrator Centaur Technology Anything that works is better than anything that doesn't. ------------------------------------------------------------------------ From owner-freebsd-geom@FreeBSD.ORG Tue Sep 20 16:42:09 2005 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 6D2F116A41F for ; Tue, 20 Sep 2005 16:42:09 +0000 (GMT) (envelope-from frank@barda.agala.net) Received: from mail.agala.net (I8a04.i.pppool.de [85.73.138.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id A6C1F43D45 for ; Tue, 20 Sep 2005 16:42:07 +0000 (GMT) (envelope-from frank@barda.agala.net) Received: from mail.agala.net (barda [192.168.20.1]) by barda.agala.net (Postfix) with ESMTP id BC9D4119CBB for ; Tue, 20 Sep 2005 18:42:12 +0200 (CEST) Received: from abakus.agala.net (abakus.agala.net [192.168.223.2]) by mail.agala.net (Postfix) with ESMTP id A5C8B119CB8 for ; Tue, 20 Sep 2005 18:42:11 +0200 (CEST) From: "Frank J. Beckmann" Organization: agala naga doron To: freebsd-geom@freebsd.org Date: Tue, 20 Sep 2005 18:41:47 +0200 User-Agent: KMail/1.8.2 References: <200509201734.00353.frank@barda.agala.net> <4330328C.6070109@centtech.com> In-Reply-To: <4330328C.6070109@centtech.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200509201841.52329.frank@barda.agala.net> X-Scanned-By: emfilter 1.0 @ 192.168.20.1 X-DSPAM-Result: Innocent X-DSPAM-Processed: Tue Sep 20 18:42:15 2005 X-DSPAM-Confidence: 1.0000 X-DSPAM-Probability: 0.0023 X-DSPAM-Signature: 218,43303be6804552171715342 X-DSPAM-Factors: 27, Organization*naga+doron, 0.40000, Message-Id*agala+net, 0.40000, From*Frank, 0.40000, Subject*encrypted, 0.40000, Content-Type*text+plain, 0.40000, Content-Disposition*inline, 0.40000, References*barda+agala, 0.40000, > References*com, 0.40000, Content-Type*charset+iso, 0.40000, References*frank+barda, 0.40000, Date*Tue+Sep, 0.40000, Subject: Re: geli encrypted memory disk? 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, 20 Sep 2005 16:42:09 -0000 Moin, am Dienstag, 20. September 2005 18:02 schrieb Eric Anderson: > Frank J. Beckmann wrote: > > after upgrading to FreeBSD 6.0-BETA4 from the 17th I wanted to play a bit > > with geli. First try was an encryptet memory disk. > > > > dd if=/dev/zero of=/var/sdisk bs=2028 count=220 > > mdconfig -a -t vnode -S 2048 -f /var/sdisk -u 3 > > geli init -a AES -s 2048 /dev/md3 > > > > Geli asks me the new password twice and then exits with the following > > error: > > > > Cannot store metadata on /dev/md3: Invalid argument. > > > > What am I doing wrong? > > Probably the bs=2028 is messing things up? Oh, yes, that was it. I always looked at mdconfig and geli only. Thank you very much. -- Frank From owner-freebsd-geom@FreeBSD.ORG Wed Sep 21 21:37:32 2005 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 030EC16A41F for ; Wed, 21 Sep 2005 21:37:32 +0000 (GMT) (envelope-from mmakkes@science.uva.nl) Received: from imap.science.uva.nl (imap.science.uva.nl [146.50.4.51]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3C1C343D58 for ; Wed, 21 Sep 2005 21:37:28 +0000 (GMT) (envelope-from mmakkes@science.uva.nl) Received: from ow66.science.uva.nl [146.50.9.103] by imap.science.uva.nl with ESMTP (sendmail 8.11.6p2/config 11.35). id j8LLbOD18382; Wed, 21 Sep 2005 23:37:24 +0200 X-Organisation: Faculty of Science, University of Amsterdam, The Netherlands X-URL: http://www.science.uva.nl/ Received: by ow66.science.uva.nl (Postfix, from userid 14577) id D61DA740EE; Wed, 21 Sep 2005 23:37:23 +0200 (CEST) Date: Wed, 21 Sep 2005 23:37:23 +0200 From: Marc To: freebsd-geom@freebsd.org Message-ID: <20050921213722.GA10203@science.uva.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i X-Operating-System: Linux 2.6.11-ict1_l i686 X-Virus-Scanned: by amavisd-new Subject: gvinum raid5 not comming up 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, 21 Sep 2005 21:37:32 -0000 Hi all, I just tried to create a raid5 set, but the set doens't seem to come up after: bringing all disks down with "vinum setstate stale " then starting the config with "gvinum start " The kernel reports that all GOEM_VINUM are ready... But nothings happening. please advice. Yours, -marc [config] drive d0 device /dev/ad4a drive d1 device /dev/ad6a drive d2 device /dev/ad8a drive d3 device /dev/ad10a drive d4 device /dev/ad12a drive d5 device /dev/ad14a drive d6 device /dev/ad16a drive d7 device /dev/ad18a volume data plex org raid5 982k sd length 0 drive d0 sd length 0 drive d1 sd length 0 drive d2 sd length 0 drive d3 sd length 0 drive d4 sd length 0 drive d5 sd length 0 drive d6 sd length 0 drive d7 [end config] [outp gvinum list] # gvinum list 0 drives: 1 volume: V data State: down Plexes: 0 Size: 0 B 1 plex: P data.p0 R5 State: down Subdisks: 0 Size: 0 B 8 subdisks: S data.p0.s0 State: stale D: d0 Size: 232 GB S data.p0.s1 State: stale D: d1 Size: 232 GB S data.p0.s2 State: stale D: d2 Size: 232 GB S data.p0.s3 State: stale D: d3 Size: 232 GB S data.p0.s4 State: stale D: d4 Size: 232 GB S data.p0.s5 State: stale D: d5 Size: 232 GB S data.p0.s6 State: stale D: d6 Size: 232 GB S data.p0.s7 State: stale D: d7 Size: 232 GB [end] From owner-freebsd-geom@FreeBSD.ORG Wed Sep 21 21:42:43 2005 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 02D9F16A41F for ; Wed, 21 Sep 2005 21:42:43 +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 638B043D49 for ; Wed, 21 Sep 2005 21:42:40 +0000 (GMT) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id 28A0E52CF6; Wed, 21 Sep 2005 23:42:38 +0200 (CEST) Received: from localhost (dls5.neoplus.adsl.tpnet.pl [83.24.48.5]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id A30D152CD0; Wed, 21 Sep 2005 23:42:28 +0200 (CEST) Date: Wed, 21 Sep 2005 23:41:42 +0200 From: Pawel Jakub Dawidek To: "Frank J. Beckmann" Message-ID: <20050921213630.GA1167@garage.freebsd.pl> References: <200509201734.00353.frank@barda.agala.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="O5XBE6gyVG5Rl6Rj" Content-Disposition: inline In-Reply-To: <200509201734.00353.frank@barda.agala.net> X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 7.0-CURRENT i386 User-Agent: mutt-ng devel (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=-0.5 required=3.0 tests=BAYES_00,RCVD_IN_NJABL_DUL, RCVD_IN_SORBS_DUL autolearn=no version=3.0.4 Cc: freebsd-geom@freebsd.org Subject: Re: geli encrypted memory disk? 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, 21 Sep 2005 21:42:43 -0000 --O5XBE6gyVG5Rl6Rj Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Sep 20, 2005 at 05:33:57PM +0200, Frank J. Beckmann wrote: +> Hi, +>=20 +> after upgrading to FreeBSD 6.0-BETA4 from the 17th I wanted to play a bi= t with=20 +> geli. First try was an encryptet memory disk. +>=20 +> dd if=3D/dev/zero of=3D/var/sdisk bs=3D2028 count=3D220 +> mdconfig -a -t vnode -S 2048 -f /var/sdisk -u 3 +> geli init -a AES -s 2048 /dev/md3 +>=20 +> Geli asks me the new password twice and then exits with the following er= ror: +>=20 +> Cannot store metadata on /dev/md3: Invalid argument. +>=20 +> What am I doing wrong? You used 2028 block size with dd(1), you probably wanted to use 2048. --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --O5XBE6gyVG5Rl6Rj Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFDMdOWForvXbEpPzQRAuCFAJ9co5beaoVn7NQPQ1zKsrasZ5Q3mgCglD+0 ZkMrEEurQ+E+ssSdXS82YRU= =++bc -----END PGP SIGNATURE----- --O5XBE6gyVG5Rl6Rj-- From owner-freebsd-geom@FreeBSD.ORG Wed Sep 21 21:48:01 2005 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 E308B16A420 for ; Wed, 21 Sep 2005 21:48:01 +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 17AD943D48 for ; Wed, 21 Sep 2005 21:48:00 +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 j8LLlltr017845 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Wed, 21 Sep 2005 23:47:48 +0200 (CEST) Date: Wed, 21 Sep 2005 23:47:47 +0200 From: Lukas Ertl To: Marc In-Reply-To: <20050921213722.GA10203@science.uva.nl> Message-ID: References: <20050921213722.GA10203@science.uva.nl> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-geom@FreeBSD.org Subject: Re: gvinum raid5 not comming up 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, 21 Sep 2005 21:48:02 -0000 On Wed, 21 Sep 2005, Marc wrote: > I just tried to create a raid5 set, but the set doens't seem to come up > after: Which OS level are you running? I committed a fix that should solve this problem a few weeks ago. cheers, 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 Sep 22 06:11:29 2005 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 E49C016A41F; Thu, 22 Sep 2005 06:11:29 +0000 (GMT) (envelope-from mmakkes@science.uva.nl) Received: from imap.science.uva.nl (imap.science.uva.nl [146.50.4.51]) by mx1.FreeBSD.org (Postfix) with ESMTP id F252643D46; Thu, 22 Sep 2005 06:11:28 +0000 (GMT) (envelope-from mmakkes@science.uva.nl) Received: from ow66.science.uva.nl [146.50.9.103] by imap.science.uva.nl with ESMTP (sendmail 8.11.6p2/config 11.35). id j8M6BQD01719; Thu, 22 Sep 2005 08:11:26 +0200 X-Organisation: Faculty of Science, University of Amsterdam, The Netherlands X-URL: http://www.science.uva.nl/ Received: by ow66.science.uva.nl (Postfix, from userid 14577) id CB7AE740F0; Thu, 22 Sep 2005 08:11:25 +0200 (CEST) Date: Thu, 22 Sep 2005 08:11:25 +0200 From: Marc Makkes To: Lukas Ertl Message-ID: <20050922061125.GA13391@science.uva.nl> References: <20050921213722.GA10203@science.uva.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i X-Operating-System: Linux 2.6.11-ict1_l i686 X-Virus-Scanned: by amavisd-new Cc: freebsd-geom@FreeBSD.org Subject: Re: gvinum raid5 not comming up 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, 22 Sep 2005 06:11:30 -0000 Hi Lukas, On Wed, Sep 21, 2005 at 11:47:47PM +0200, Lukas Ertl wrote: > On Wed, 21 Sep 2005, Marc wrote: > > >I just tried to create a raid5 set, but the set doens't seem to come up > >after: > > Which OS level are you running? I committed a fix that should solve this > problem a few weeks ago. I'm running: FreeBSD 7.0-CURRENT FreeBSD 7.0-CURRENT #2: Mon Sep 19 17:28:01 CEST 2005 xander@:/usr/obj/usr/src/sys/FreeBSD_CURRENT amd64 My last update was on monday. Could it be that some mirrors are slow with syncing? Yours, -marc From owner-freebsd-geom@FreeBSD.ORG Thu Sep 22 07:38:41 2005 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 4AE2816A41F for ; Thu, 22 Sep 2005 07:38:41 +0000 (GMT) (envelope-from le@FreeBSD.org) Received: from imap1u.univie.ac.at (imap1.unet.univie.ac.at [131.130.1.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4D79B43D49 for ; Thu, 22 Sep 2005 07:38:40 +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 j8M7bUtr019947 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Thu, 22 Sep 2005 09:37:32 +0200 (CEST) Date: Thu, 22 Sep 2005 09:37:31 +0200 From: Lukas Ertl To: Marc Makkes In-Reply-To: <20050922061125.GA13391@science.uva.nl> Message-ID: References: <20050921213722.GA10203@science.uva.nl> <20050922061125.GA13391@science.uva.nl> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-geom@FreeBSD.org Subject: Re: gvinum raid5 not comming up 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, 22 Sep 2005 07:38:41 -0000 On Thu, 22 Sep 2005, Marc Makkes wrote: >>> I just tried to create a raid5 set, but the set doens't seem to come up >>> after: >> >> Which OS level are you running? I committed a fix that should solve this >> problem a few weeks ago. > > I'm running: > > FreeBSD 7.0-CURRENT FreeBSD 7.0-CURRENT #2: Mon Sep 19 17:28:01 CEST > 2005 xander@:/usr/obj/usr/src/sys/FreeBSD_CURRENT amd64 > > My last update was on monday. Could it be that some mirrors are slow > with syncing? No, that should be recent enough. Hmmm, are you loading the geom_vinum kld at the boot loader or after booting the OS? thanks, 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 Sep 22 08:46:27 2005 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 84C1016A41F; Thu, 22 Sep 2005 08:46:27 +0000 (GMT) (envelope-from mmakkes@science.uva.nl) Received: from imap.science.uva.nl (imap.science.uva.nl [146.50.4.51]) by mx1.FreeBSD.org (Postfix) with ESMTP id 39FC943D6B; Thu, 22 Sep 2005 08:46:21 +0000 (GMT) (envelope-from mmakkes@science.uva.nl) Received: from ow66.science.uva.nl [146.50.9.103] by imap.science.uva.nl with ESMTP (sendmail 8.11.6p2/config 11.35). id j8M8kJD14698; Thu, 22 Sep 2005 10:46:19 +0200 X-Organisation: Faculty of Science, University of Amsterdam, The Netherlands X-URL: http://www.science.uva.nl/ Received: by ow66.science.uva.nl (Postfix, from userid 14577) id C7140740F0; Thu, 22 Sep 2005 10:46:18 +0200 (CEST) Date: Thu, 22 Sep 2005 10:46:18 +0200 From: Marc Makkes To: Lukas Ertl Message-ID: <20050922084618.GB13391@science.uva.nl> References: <20050921213722.GA10203@science.uva.nl> <20050922061125.GA13391@science.uva.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i X-Operating-System: Linux 2.6.11-ict1_l i686 X-Virus-Scanned: by amavisd-new Cc: freebsd-geom@FreeBSD.org Subject: Re: gvinum raid5 not comming up 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, 22 Sep 2005 08:46:27 -0000 On Thu, Sep 22, 2005 at 09:37:31AM +0200, Lukas Ertl wrote: > On Thu, 22 Sep 2005, Marc Makkes wrote: > > >>>I just tried to create a raid5 set, but the set doens't seem to come up > >>>after: > >> > >>Which OS level are you running? I committed a fix that should solve this > >>problem a few weeks ago. > > > >I'm running: > > > >FreeBSD 7.0-CURRENT FreeBSD 7.0-CURRENT #2: Mon Sep 19 17:28:01 CEST > >2005 xander@:/usr/obj/usr/src/sys/FreeBSD_CURRENT amd64 > > > >My last update was on monday. Could it be that some mirrors are slow > >with syncing? > > No, that should be recent enough. Hmmm, are you loading the geom_vinum > kld at the boot loader or after booting the OS? At boot loader time, /boot/defaults/loader.conf says geom_vinum_load="YES" % kldstat Id Refs Address Size Name 1 2 0xffffffff80100000 8727a0 kernel 2 1 0xffffffff80973000 17c48 geom_vinum.ko yours, -marc From owner-freebsd-geom@FreeBSD.ORG Fri Sep 23 10:09:12 2005 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 73F5316A41F; Fri, 23 Sep 2005 10:09:12 +0000 (GMT) (envelope-from mmakkes@science.uva.nl) Received: from imap.science.uva.nl (imap.science.uva.nl [146.50.4.51]) by mx1.FreeBSD.org (Postfix) with ESMTP id 07D9643D5E; Fri, 23 Sep 2005 10:09:08 +0000 (GMT) (envelope-from mmakkes@science.uva.nl) Received: from ow66.science.uva.nl [146.50.9.103] by imap.science.uva.nl with ESMTP (sendmail 8.11.6p2/config 11.35). id j8NA94D07480; Fri, 23 Sep 2005 12:09:04 +0200 X-Organisation: Faculty of Science, University of Amsterdam, The Netherlands X-URL: http://www.science.uva.nl/ Received: by ow66.science.uva.nl (Postfix, from userid 14577) id 0F1E6740F2; Fri, 23 Sep 2005 12:09:03 +0200 (CEST) Date: Fri, 23 Sep 2005 12:09:03 +0200 From: Marc Makkes To: Lukas Ertl Message-ID: <20050923100903.GA17415@science.uva.nl> References: <20050921213722.GA10203@science.uva.nl> <20050922061125.GA13391@science.uva.nl> <20050922084618.GB13391@science.uva.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050922084618.GB13391@science.uva.nl> User-Agent: Mutt/1.4.1i X-Operating-System: Linux 2.6.11-ict1_l i686 X-Virus-Scanned: by amavisd-new Cc: freebsd-geom@FreeBSD.org Subject: Re: gvinum raid5 not comming up 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, 23 Sep 2005 10:09:12 -0000 Lukas, On Thu, Sep 22, 2005 at 10:46:18AM +0200, Marc Makkes wrote: > On Thu, Sep 22, 2005 at 09:37:31AM +0200, Lukas Ertl wrote: > > On Thu, 22 Sep 2005, Marc Makkes wrote: > > > > >>>I just tried to create a raid5 set, but the set doens't seem to come up > > >>>after: > > >> > > >>Which OS level are you running? I committed a fix that should solve this > > >>problem a few weeks ago. > > > > > >I'm running: > > > > > >FreeBSD 7.0-CURRENT FreeBSD 7.0-CURRENT #2: Mon Sep 19 17:28:01 CEST > > >2005 xander@:/usr/obj/usr/src/sys/FreeBSD_CURRENT amd64 > > > > > >My last update was on monday. Could it be that some mirrors are slow > > >with syncing? > > > > No, that should be recent enough. Hmmm, are you loading the geom_vinum > > kld at the boot loader or after booting the OS? > > At boot loader time, /boot/defaults/loader.conf says > > geom_vinum_load="YES" > > % kldstat > Id Refs Address Size Name > 1 2 0xffffffff80100000 8727a0 kernel > 2 1 0xffffffff80973000 17c48 geom_vinum.ko Any idea how to get the the volume up? can i provide additional debug? -marc From owner-freebsd-geom@FreeBSD.ORG Fri Sep 23 20:04:35 2005 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 D0AA816A41F for ; Fri, 23 Sep 2005 20:04:35 +0000 (GMT) (envelope-from frank@barda.agala.net) Received: from mail.agala.net (I80e1.i.pppool.de [85.73.128.225]) by mx1.FreeBSD.org (Postfix) with ESMTP id ED4B343D45 for ; Fri, 23 Sep 2005 20:04:33 +0000 (GMT) (envelope-from frank@barda.agala.net) Received: from mail.agala.net (barda [192.168.20.1]) by barda.agala.net (Postfix) with ESMTP id C8AA9119CBB for ; Fri, 23 Sep 2005 22:02:19 +0200 (CEST) Received: from abakus.agala.net (abakus.agala.net [192.168.223.2]) by mail.agala.net (Postfix) with ESMTP id F3A98119CBA for ; Fri, 23 Sep 2005 22:02:18 +0200 (CEST) From: "Frank J. Beckmann" Organization: agala naga doron To: freebsd-geom@freebsd.org Date: Fri, 23 Sep 2005 22:04:21 +0200 User-Agent: KMail/1.8.2 References: <200509201734.00353.frank@barda.agala.net> <20050921213630.GA1167@garage.freebsd.pl> In-Reply-To: <20050921213630.GA1167@garage.freebsd.pl> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200509232204.23606.frank@barda.agala.net> X-Scanned-By: emfilter 1.0 @ 192.168.20.1 X-DSPAM-Result: Innocent X-DSPAM-Processed: Fri Sep 23 22:02:21 2005 X-DSPAM-Confidence: 1.0000 X-DSPAM-Probability: 0.0023 X-DSPAM-Signature: 218,43345f4d641771199052252 X-DSPAM-Factors: 27, Organization*naga+doron, 0.40000, Message-Id*agala+net, 0.40000, > From*Frank, 0.40000, Subject*encrypted, 0.40000, > Content-Type*text+plain, 0.40000, References*GA1167+garage, 0.40000, > Content-Disposition*inline, 0.40000, Subject: Re: geli encrypted memory disk? 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, 23 Sep 2005 20:04:35 -0000 Hi, am Mittwoch, 21. September 2005 23:41 schrieb Pawel Jakub Dawidek: > On Tue, Sep 20, 2005 at 05:33:57PM +0200, Frank J. Beckmann wrote: > +> after upgrading to FreeBSD 6.0-BETA4 from the 17th I wanted to play a > bit with +> geli. First try was an encryptet memory disk. > +> > +> dd if=/dev/zero of=/var/sdisk bs=2028 count=220 > +> mdconfig -a -t vnode -S 2048 -f /var/sdisk -u 3 > +> geli init -a AES -s 2048 /dev/md3 > +> > +> Geli asks me the new password twice and then exits with the following > error: +> > +> Cannot store metadata on /dev/md3: Invalid argument. > +> > +> What am I doing wrong? > > You used 2028 block size with dd(1), you probably wanted to use 2048. Yes, that was my fault, like Eric pointed out. It works now. I wanted to use 2048, but I didn't see my typo. Now I could create a geli encryptet DVD. I create a file backed memory disk. Then I create an ISO image. I put the image on the memory disk, then I burn the file on the DVD. Now I can attach the DVD and the ISO file system is on the attached device. -- Bye Frank