From owner-freebsd-geom@FreeBSD.ORG Sun Sep 11 00:56:45 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 C2FF116A41F for ; Sun, 11 Sep 2005 00:56:45 +0000 (GMT) (envelope-from ke.han@redstarling.com) Received: from smtp102.biz.mail.re2.yahoo.com (smtp102.biz.mail.re2.yahoo.com [68.142.229.216]) by mx1.FreeBSD.org (Postfix) with SMTP id 3D72F43D48 for ; Sun, 11 Sep 2005 00:56:45 +0000 (GMT) (envelope-from ke.han@redstarling.com) Received: (qmail 66638 invoked from network); 11 Sep 2005 00:56:44 -0000 Received: from unknown (HELO ?192.168.1.2?) (jhancock@patternware.com@218.79.215.81 with plain) by smtp102.biz.mail.re2.yahoo.com with SMTP; 11 Sep 2005 00:56:40 -0000 Message-ID: <432380BA.209@redstarling.com> Date: Sun, 11 Sep 2005 08:56:26 +0800 From: "ke.han" User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Nick Evans References: <20050910165926.40c5354d@speedstar.syphen.net> In-Reply-To: <20050910165926.40c5354d@speedstar.syphen.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-geom Subject: Re: GELI hardware performance. 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, 11 Sep 2005 00:56:45 -0000 Thanks for the comparison. As a newcomer to both GELI and gbde, it would be niced to know how these numbers compare to no encryption on the same hardware. How hard would it be to run these performance tests on the same hardware with no GELI? It seems that for drives that put through over 100Mbs that your results of around 14 to 27 Mbs (block output) are pretty low. Am I readin the numbers wrong? comparing apples to oranges? any help in my understanding is appreciated as I'm trying to decide how to solve a new server setup. thanks, ke han Nick Evans wrote: >Just a quick performance comparison between software and hardware >backed GELI partitions with bonnie > >Software: > >Per char output: 12384 K/sec, 20.5% CPU >Block output: 14408 K/sec, 7.2% CPU >Rewrite: 6908 K/sec, 4.3% CPU > >Per char input: 18848 K/sec, 35.2% CPU >Block input: 13965 K/sec, 6.1% CPU > >Seeks/sec: 837.2, 5.7% CPU > > >Hardware: > >Per char output: 27107 K/sec, 54.4% CPU >Block output: 27109 K/sec, 18.9% CPU >Rewrite: 10201 K/sec, 6.8% CPU > >Per char input: 27370 K/sec, 57.0% CPU >Block input: 25463 K/sec, 13.2% CPU > >Seeks/sec: 709.3, 5.8% CPU > >This is using 256-bit AES with a VPN1401 Soekris board. There's a >definite improvement in throughput. > >Nick >_______________________________________________ >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 Sun Sep 11 02:24:31 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 7115F16A435 for ; Sun, 11 Sep 2005 02:24:31 +0000 (GMT) (envelope-from nevans@syphen.net) Received: from sccrmhc11.comcast.net (sccrmhc11.comcast.net [204.127.202.55]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0338543D46 for ; Sun, 11 Sep 2005 02:24:30 +0000 (GMT) (envelope-from nevans@syphen.net) Received: from syphen.net ([68.45.49.199]) by comcast.net (sccrmhc11) with ESMTP id <2005091102242901100bbqmbe>; Sun, 11 Sep 2005 02:24:29 +0000 Received: from speedstar.syphen.net (speedstar [192.168.0.11]) by syphen.net (Postfix) with ESMTP id D1D7261C55; Sat, 10 Sep 2005 22:24:56 -0400 (EDT) Date: Sat, 10 Sep 2005 22:24:19 -0400 From: Nick Evans To: "ke.han" Message-ID: <20050910222419.0e9dadaf@speedstar.syphen.net> In-Reply-To: <432380BA.209@redstarling.com> References: <20050910165926.40c5354d@speedstar.syphen.net> <432380BA.209@redstarling.com> X-Mailer: Sylpheed-Claws 1.9.13 (GTK+ 2.6.9; i386-portbld-freebsd6.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-geom Subject: Re: GELI hardware performance. 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, 11 Sep 2005 02:24:32 -0000 On Sun, 11 Sep 2005 08:56:26 +0800 "ke.han" wrote: > Thanks for the comparison. As a newcomer to both GELI and gbde, it > would be niced to know how these numbers compare to no encryption on > the same hardware. How hard would it be to run these performance > tests on the same hardware with no GELI? > It seems that for drives that put through over 100Mbs that your > results of around 14 to 27 Mbs (block output) are pretty low. Am I > readin the numbers wrong? comparing apples to oranges? > any help in my understanding is appreciated as I'm trying to decide > how to solve a new server setup. > thanks, ke han > No GELI, same disk: Per char output: 45967 K/sec, 82.2% CPU Block output: 56019 K/sec, 35.9% CPU Rewrite: 15833 K/sec, 10.5% CPU Per char input: 31412 K/sec, 60.8% CPU Block input: 40143 K/sec, 17.5% CPU Seeks/sec: 853.2, 5.2% CPU Looks like ~50-85% of the original performance when hardware crypto is used. Not bad considering. From owner-freebsd-geom@FreeBSD.ORG Mon Sep 12 11:02:00 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 A31E316A41F for ; Mon, 12 Sep 2005 11:02:00 +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 59FB543D46 for ; Mon, 12 Sep 2005 11:02:00 +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.3/8.13.3) with ESMTP id j8CB20pq025399 for ; Mon, 12 Sep 2005 11:02:00 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8CB1xLN025393 for freebsd-geom@freebsd.org; Mon, 12 Sep 2005 11:01:59 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 12 Sep 2005 11:01:59 GMT Message-Id: <200509121101.j8CB1xLN025393@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, 12 Sep 2005 11:02:00 -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 Mon Sep 12 15:42: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 3BE9E16A41F for ; Mon, 12 Sep 2005 15:42:22 +0000 (GMT) (envelope-from npekyong28@yahoo.com) Received: from web51809.mail.yahoo.com (web51809.mail.yahoo.com [206.190.38.240]) by mx1.FreeBSD.org (Postfix) with SMTP id 900C343D48 for ; Mon, 12 Sep 2005 15:42:21 +0000 (GMT) (envelope-from npekyong28@yahoo.com) Received: (qmail 69071 invoked by uid 60001); 12 Sep 2005 15:42:17 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=4ikRbe5ovSTxPyvxym7mQF58zpKtThEs6WOwpGghQqdXrnndXu6AyJi/SLdCQE1SfJdtylyh3GVwqDy7U6WcoGk5jdV367RHeTAOdA2V0N5tm01LRVmglwZOfun1E72YI6HX/Ct388wIeyecXau6KETZAA827VAX43e2uhoGm30= ; Message-ID: <20050912154217.69069.qmail@web51809.mail.yahoo.com> Received: from [202.156.6.69] by web51809.mail.yahoo.com via HTTP; Mon, 12 Sep 2005 08:42:17 PDT Date: Mon, 12 Sep 2005 08:42:17 -0700 (PDT) From: Ng Pek Yong To: freebsd-questions@freebsd.org, freebsd-geom@freebsd.org In-Reply-To: <200509101051.50672.4711@chello.at> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Cc: Subject: Re: Recompiled freebsd 5.4 cannot boot up with geom_mirror 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, 12 Sep 2005 15:42:22 -0000 --- Christian Hiris <4711@chello.at> wrote: > On Saturday 10 September 2005 04:06:04, Ng Pek Yong > wrote: > > --- Christian Hiris <4711@chello.at> wrote: > > > On Friday 09 September 2005 17:04:17, Ng Pek > Yong > > > > > > wrote: > > > > Hi, > > > > > > > > I am having some problem with geom_mirror on a > > > > > > freebsd > > > > > > > 5.4. > > > > > > > > I followed the steps described in > > > > http://people.freebsd.org/~rse/mirror/ > > > > and got geom_mirror up on a stock freebsd 5.4, > > > > including / partition itself. > > > > > > > > The problem came when I compiled the kernel. > After > > > > pulling in the latest source tree, compiling > and > > > > installing the new kernel, I find that the OS > can > > > > > > no > > > > > > > longer bootup. > > > > > > > > I did with 2 kernel configurations. The 1st is > > > > completely identical to the stock kernel > config. > > > > > > The > > > > > > > 2nd has an extra line "options GEOM_MIRROR". > > > > Both failed to boot up although the errors are > > > > different. > > > > > > You don't need "options GEOM_MIRROR" in your > > > kernelconfig to run gmirror. > > > > > > > 1st config > > > > ---------- > > > > The boot process got stucked when it tries to > > > > > > mount / > > > > > > > The error message is something like this > > > > Mount root from ufs:/dev/mirror/gm0s1a > > > > setrootbyname failed > > > > ffs_mountroot: can't find rootvp > > > > Root mount failed: 6 > > > > > > Maybe there is a typo in your /etc/fstab. Enter > a > > > "?" here to get a list of > > > all your geom devices. Then try to mount / from > the > > > correct device by > > > entering "ufs:mirror/your_root_device" at the > > > "mountroot>" prompt. > > > > I can boot up with kernel.old without problem, so > > there is no typo. > > > > Anyway, I tried your method and list the devices. > I > > get something like > > > > List of GEOM managed disk devices: > > ad1s1f..ad1s1a ad0s1f..ad0s1a acd0 ad1s1 ad0s1 > ad1 > > ad0 fd0 > > > > Obviously something is wrong here. I am supposed > to > > get devices that look like 'gm0s1a' etc > > > > Let me emphasize again. I haven't modified > anything to > > the kernel, not even the kernel options. How could > it > > be so wrong then? > > Did you run "make buildworld" before you run "make > buildkernel"? > Maybe kernel and world are out of sync on your > system. > Yes, that was the problem. Looks like I have a lot to learn about FreeBSD ;) Thanks for helping! Regards, -PY > Cheers, > ch > > -- > Christian Hiris <4711@chello.at> | OpenPGP KeyID > 0x3BCA53BE > OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and > http://pgp.mit.edu > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From owner-freebsd-geom@FreeBSD.ORG Fri Sep 16 07:30:18 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 4585716A41F for ; Fri, 16 Sep 2005 07:30:18 +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 7E06043D46 for ; Fri, 16 Sep 2005 07:30:17 +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 X-Spam-Checker-Version: SpamAssassin 3.0.4 on 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 1201837 for freebsd-geom@freebsd.org; Fri, 16 Sep 2005 14:30:13 +0700 Received: (from sudakov@localhost) by admin.sibptus.tomsk.ru (8.12.9p2/8.12.9/Submit) id j8G7UCcI031229 for freebsd-geom@freebsd.org; Fri, 16 Sep 2005 14:30:12 +0700 (OMSST) (envelope-from sudakov) Date: Fri, 16 Sep 2005 14:30:12 +0700 From: Victor Sudakov To: freebsd-geom@freebsd.org Message-ID: <20050916073012.GA31056@admin.sibptus.tomsk.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Organization: AO "Svyaztransneft", SibPTUS X-PGP-Key: http://vas.tomsk.ru/vas.asc Subject: 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: Fri, 16 Sep 2005 07:30:18 -0000 Colleagues, gmirror(8) says that a mirror can be created from a disk with existing data. However, other sources like http://ezine.daemonnews.org/200502/diskmirror.html say that the mirror device should be first partitioned, labelled and formatted. The second way seems to me more feasible. From experimenting with different disks I have found out that (according to fdisk) the size of gm0 is several sectors smaller than that of ad0. I said to myself, that is the overhead of the gmirror metadata. How could it then be possible to create a mirror from a disk with existing data, like the man page suggests? The gmirror metadata could then be overwritten with user data or vice versa. Any input is very much appreciated. -- Victor Sudakov, VAS4-RIPE, VAS47-RIPN From owner-freebsd-geom@FreeBSD.ORG Fri Sep 16 10:42:21 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 70A3416A41F for ; Fri, 16 Sep 2005 10:42:21 +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 A057C43D46 for ; Fri, 16 Sep 2005 10:42:20 +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 X-Spam-Checker-Version: SpamAssassin 3.0.4 on 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 1203329 for freebsd-geom@freebsd.org; Fri, 16 Sep 2005 17:42:17 +0700 Received: (from sudakov@localhost) by admin.sibptus.tomsk.ru (8.12.9p2/8.12.9/Submit) id j8GAgGpF033634 for freebsd-geom@freebsd.org; Fri, 16 Sep 2005 17:42:16 +0700 (OMSST) (envelope-from sudakov) Date: Fri, 16 Sep 2005 17:42:16 +0700 From: Victor Sudakov To: freebsd-geom@freebsd.org Message-ID: <20050916104216.GA33576@admin.sibptus.tomsk.ru> References: <20050916073012.GA31056@admin.sibptus.tomsk.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050916073012.GA31056@admin.sibptus.tomsk.ru> User-Agent: Mutt/1.4.2.1i Organization: AO "Svyaztransneft", SibPTUS X-PGP-Key: http://vas.tomsk.ru/vas.asc 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: Fri, 16 Sep 2005 10:42:21 -0000 Victor Sudakov wrote: > > How could it then be possible to create a mirror from a disk with > existing data, like the man page suggests? The gmirror metadata could > then be overwritten with user data or vice versa. Perhaps someone would like to comment on this, which I think proves my point: testbsd5# dd if=/dev/zero of=/dev/ad2 count=500 500+0 records in 500+0 records out 256000 bytes transferred in 1.243238 secs (205914 bytes/sec) testbsd5# fdisk -BI ad2 ******* Working on device /dev/ad2 ******* fdisk: invalid fdisk partition table found testbsd5# fdisk -BI ad2 ******* Working on device /dev/ad2 ******* testbsd5# disklabel -w /dev/ad2s1 auto testbsd5# newfs ad2s1a /dev/ad2s1a: 1023.7MB (2096560 sectors) block size 16384, fragment size 2048 using 6 cylinder groups of 183.77MB, 11761 blks, 23552 inodes. super-block backups (for fsck -b #) at: 160, 376512, 752864, 1129216, 1505568, 1881920 testbsd5# testbsd5# gmirror label gm1 ad2 testbsd5# newfs /dev/mirror/gm1s1a newfs: wtfs: 512 bytes at sector 2096560: Unknown error: 0 testbsd5# testbsd5# disklabel /dev/mirror/gm1s1 # /dev/mirror/gm1s1: 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 2096561 16 4.2BSD 2048 16384 28552 c: 2096577 0 unused 0 0 # "raw" part, don't edit testbsd5# -- Victor Sudakov, VAS4-RIPE, VAS47-RIPN From owner-freebsd-geom@FreeBSD.ORG Fri Sep 16 22:55: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 A0E3A16A41F for ; Fri, 16 Sep 2005 22:55:27 +0000 (GMT) (envelope-from djh@nebcorp.com) Received: from ratchet.nebcorp.com (ratchet.nebcorp.com [205.217.153.72]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7501043D45 for ; Fri, 16 Sep 2005 22:55:27 +0000 (GMT) (envelope-from djh@nebcorp.com) Received: by ratchet.nebcorp.com (Postfix, from userid 1014) id 42A4DD9829; Fri, 16 Sep 2005 15:55:27 -0700 (PDT) Date: Fri, 16 Sep 2005 15:55:27 -0700 From: Danny Howard To: Victor Sudakov Message-ID: <20050916225527.GT11689@ratchet.nebcorp.com> References: <20050916073012.GA31056@admin.sibptus.tomsk.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050916073012.GA31056@admin.sibptus.tomsk.ru> User-Agent: Mutt/1.4.2.1i X-Loop: djhoward@uiuc.edu 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: Fri, 16 Sep 2005 22:55:27 -0000 Victor, 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? My crib sheet is at http://dannyman.toldme.com/2005/01/24/freebsd-howto-gmirror-system/ -danny -- http://dannyman.toldme.com/ From owner-freebsd-geom@FreeBSD.ORG Sat Sep 17 04:17:07 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 1315916A41F for ; Sat, 17 Sep 2005 04:17:07 +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 2C9B543D45 for ; Sat, 17 Sep 2005 04:17:04 +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 X-Spam-Checker-Version: SpamAssassin 3.0.4 on 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 1206478; Sat, 17 Sep 2005 11:17:01 +0700 Received: (from sudakov@localhost) by admin.sibptus.tomsk.ru (8.12.9p2/8.12.9/Submit) id j8H4H0Gk046875; Sat, 17 Sep 2005 11:17:00 +0700 (OMSST) (envelope-from sudakov) Date: Sat, 17 Sep 2005 11:17:00 +0700 From: Victor Sudakov To: Danny Howard Message-ID: <20050917041700.GA46650@admin.sibptus.tomsk.ru> References: <20050916073012.GA31056@admin.sibptus.tomsk.ru> <20050916225527.GT11689@ratchet.nebcorp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050916225527.GT11689@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: Sat, 17 Sep 2005 04:17:07 -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? > > My crib sheet is at > http://dannyman.toldme.com/2005/01/24/freebsd-howto-gmirror-system/ I have read this document. Have you ever tried to newfs a partition you have mirrored this way? Look at my second mail (screen output), it seems that such a partition cannot be newfs'ed without changing the label, because access to the last sector is denied. Please try to: 1. fdisk and label a disk, create a partition that occupies the whole disk. "disklabel -w ad0s1 auto" will automatically create an "a" partition for you. 2. create a mirror from this disk, e.g. "gmirror label gm1 ad0" 3. newfs /dev/mirror/gm1s1a and see what happens. -- Victor Sudakov, VAS4-RIPE, VAS47-RIPN From owner-freebsd-geom@FreeBSD.ORG Sat Sep 17 22:04:16 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 CF92316A41F for ; Sat, 17 Sep 2005 22:04:15 +0000 (GMT) (envelope-from djh@nebcorp.com) Received: from ratchet.nebcorp.com (ratchet.nebcorp.com [205.217.153.72]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9D50143D45 for ; Sat, 17 Sep 2005 22:04:15 +0000 (GMT) (envelope-from djh@nebcorp.com) Received: by ratchet.nebcorp.com (Postfix, from userid 1014) id 4B801D9823; Sat, 17 Sep 2005 15:04:15 -0700 (PDT) Date: Sat, 17 Sep 2005 15:04:15 -0700 From: Danny Howard To: Victor Sudakov Message-ID: <20050917220415.GA73188@ratchet.nebcorp.com> 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 X-Loop: djhoward@uiuc.edu 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: Sat, 17 Sep 2005 22:04:16 -0000 On Sat, Sep 17, 2005 at 11:17:00AM +0700, Victor Sudakov wrote: > 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. 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. 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 and I'm not aware that anybody has been bitten by your hypothesis. Thanks, -danny -- http://dannyman.toldme.com/