From owner-freebsd-geom@FreeBSD.ORG Mon Jun 25 11:07:18 2012 Return-Path: Delivered-To: freebsd-geom@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BFCEC106567A for ; Mon, 25 Jun 2012 11:07:18 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id A0E1A8FC16 for ; Mon, 25 Jun 2012 11:07:18 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q5PB7Iag078325 for ; Mon, 25 Jun 2012 11:07:18 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q5PB7HH9078322 for freebsd-geom@FreeBSD.org; Mon, 25 Jun 2012 11:07:17 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 25 Jun 2012 11:07:17 GMT Message-Id: <201206251107.q5PB7HH9078322@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-geom@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-geom@FreeBSD.org 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, 25 Jun 2012 11:07:18 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- a bin/169077 geom bsdinstall(8) does not use partition labels in /etc/fs f kern/165745 geom [geom] geom_multipath page fault on removed drive o kern/165428 geom [glabel][patch] Add xfs support to glabel o kern/164254 geom [geom] gjournal not stopping on GPT partitions o kern/164252 geom [geom] gjournal overflow o kern/164143 geom [geom] Partition table not recognized after upgrade R8 a kern/163020 geom [geli] [patch] enable the Camellia-XTS on GEOM ELI o kern/162010 geom [geli] panic: Provider's error should be set (error=0) o kern/161979 geom [geom] glabel doesn't update after newfs, and glabel s o kern/161752 geom [geom] glabel(8) doesn't get gpt label change o bin/161677 geom gpart(8) Probably bug in gptboot o kern/160562 geom [geom][patch] Allow to insert new component to geom_ra o kern/160409 geom [geli] failed to attach provider f kern/159595 geom [geom] [panic] panic on gmirror unload in vbox [regres p kern/158398 geom [headers] [patch] includes o kern/158197 geom [geom] geom_cache with size>1000 leads to panics o kern/157879 geom [libgeom] [regression] ABI change without version bump o kern/157863 geom [geli] kbdmux prevents geli passwords from being enter o kern/157739 geom [geom] GPT labels with geom_multipath o kern/157724 geom [geom] gpart(8) 'add' command must preserve gap for sc o kern/157723 geom [geom] GEOM should not process 'c' (raw) partitions fo o kern/157108 geom [gjournal] dumpon(8) fails on gjournal providers o kern/155994 geom [geom] Long "Suspend time" when reading large files fr o kern/154226 geom [geom] GEOM label does not change when you modify them o kern/150858 geom [geom] [geom_label] [patch] glabel(8) is not compatibl o kern/150626 geom [geom] [gjournal] gjournal(8) destroys label o kern/150555 geom [geom] gjournal unusable on GPT partitions o kern/150334 geom [geom] [udf] [patch] geom label does not support UDF o kern/149762 geom volume labels with rogue characters o bin/149215 geom [panic] [geom_part] gpart(8): Delete linux's slice via o kern/147667 geom [gmirror] Booting with one component of a gmirror, the o kern/145818 geom [geom] geom_stat_open showing cached information for n o kern/145042 geom [geom] System stops booting after printing message "GE o kern/143455 geom gstripe(8) in RELENG_8 (31st Jan 2010) broken o kern/142563 geom [geom] [hang] ioctl freeze in zpool o kern/141740 geom [geom] gjournal(8): g_journal_destroy concurrent error o kern/140352 geom [geom] gjournal + glabel not working o kern/135898 geom [geom] Severe filesystem corruption - large files or l o kern/134113 geom [geli] Problem setting secondary GELI key o kern/133931 geom [geli] [request] intentionally wrong password to destr o bin/132845 geom [geom] [patch] ggated(8) does not close files opened a o bin/131415 geom [geli] keystrokes are unregulary sent to Geli when typ o kern/131353 geom [geom] gjournal(8) kernel lock o kern/129674 geom [geom] gjournal root did not mount on boot o kern/129645 geom gjournal(8): GEOM_JOURNAL causes system to fail to boo o kern/129245 geom [geom] gcache is more suitable for suffix based provid o kern/127420 geom [geom] [gjournal] [panic] Journal overflow on gmirrore o kern/124973 geom [gjournal] [patch] boot order affects geom_journal con o kern/124969 geom gvinum(8): gvinum raid5 plex does not detect missing s o kern/123962 geom [panic] [gjournal] gjournal (455Gb data, 8Gb journal), o kern/123122 geom [geom] GEOM / gjournal kernel lock o kern/122738 geom [geom] gmirror list "losts consumers" after gmirror de o kern/122067 geom [geom] [panic] Geom crashed during boot o kern/121364 geom [gmirror] Removing all providers create a "zombie" mir o kern/120091 geom [geom] [geli] [gjournal] geli does not prompt for pass o kern/115856 geom [geli] ZFS thought it was degraded when it should have o kern/115547 geom [geom] [patch] [request] let GEOM Eli get password fro f kern/113957 geom [gmirror] gmirror is intermittently reporting a degrad o kern/113837 geom [geom] unable to access 1024 sector size storage o kern/113419 geom [geom] geom fox multipathing not failing back o kern/107707 geom [geom] [patch] [request] add new class geom_xbox360 to o kern/94632 geom [geom] Kernel output resets input while GELI asks for o kern/90582 geom [geom] [panic] Restore cause panic string (ffs_blkfree o bin/90093 geom fdisk(8) incapable of altering in-core geometry o kern/87544 geom [gbde] mmaping large files on a gbde filesystem deadlo o bin/86388 geom [geom] [geom_part] periodic(8) daily should backup gpa o kern/84556 geom [geom] [panic] GBDE-encrypted swap causes panic at shu o kern/79251 geom [2TB] newfs fails on 2.6TB gbde device o kern/79035 geom [vinum] gvinum unable to create a striped set of mirro o bin/78131 geom gbde(8) "destroy" not working. 70 problems total. From owner-freebsd-geom@FreeBSD.ORG Mon Jun 25 16:01:59 2012 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 92EA4106564A for ; Mon, 25 Jun 2012 16:01:59 +0000 (UTC) (envelope-from etnapierala@googlemail.com) Received: from mail-ee0-f54.google.com (mail-ee0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id 1B8B98FC19 for ; Mon, 25 Jun 2012 16:01:58 +0000 (UTC) Received: by eeke49 with SMTP id e49so1649580eek.13 for ; Mon, 25 Jun 2012 09:01:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=sender:subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; bh=uB3bD8UltJQGfm8Rg3ooJMQwdPqug4qIpLWMxzmAs/Y=; b=Z9mOLcgJJP8iBrfK8VvFROxNrSxajyh0oSI1W0Y6uMoxcRGIZ2GXMz8WdIqJWqPhL4 wyj0+bf8IiS69J6QGQJngH4VUzROOiIQs30Hnv7eiIurnn9nPkJAZSOCBGy8VZUgM7q8 MprcmCjls0BZZ4uV3e1g8VSBXP3ZK312a80o5SZk+BLlduycPTHjowJ2ZuYzy+DBFT6q u+sIsqQXTAdV9/08eoLR8gC7bmMnzNxsQscBC0DWdwvo+14HGFcFOOiuaSTUAv1JeNxP X3/4wNM48P81A8WjCOa2Q6mR9HxZPJmTNayguEOuHtqS3h8ummo6B9gN+3XvHfpVlLTQ O+6w== Received: by 10.14.29.71 with SMTP id h47mr2547120eea.129.1340640117338; Mon, 25 Jun 2012 09:01:57 -0700 (PDT) Received: from [192.168.1.103] (45.81.datacomsa.pl. [195.34.81.45]) by mx.google.com with ESMTPS id m46sm122222463eeh.9.2012.06.25.09.01.54 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 25 Jun 2012 09:01:56 -0700 (PDT) Sender: =?UTF-8?Q?Edward_Tomasz_Napiera=C5=82a?= Mime-Version: 1.0 (Apple Message framework v1278) Content-Type: text/plain; charset=iso-8859-2 From: =?iso-8859-2?Q?Edward_Tomasz_Napiera=B3a?= In-Reply-To: <4FE06CF2.7040108@dilkie.com> Date: Mon, 25 Jun 2012 18:01:52 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <66124C32-541E-4E7A-A285-F05B0E6F3B49@FreeBSD.org> References: <4FE06CF2.7040108@dilkie.com> To: Lee Dilkie X-Mailer: Apple Mail (2.1278) Cc: Rudi Kramer , freebsd-geom@freebsd.org Subject: Re: Gconcat + growfs: we are not growing 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, 25 Jun 2012 16:01:59 -0000 Wiadomo=B6=E6 napisana przez Lee Dilkie w dniu 19 cze 2012, o godz. = 14:13: > Hi Rudi, >=20 > Seems like you are hitting the same growfs bug that gets all of us = that > try to do this simple task. >=20 > growfs needs a patch to use 64 bit math inside... >=20 > I created such a beast a while back, based on some earlier work and > fixed it up a bit myself. >=20 > I'm a bit surprised that this hasn't been fixed in a newer freebsd > release but such is life I guess. Actually, it did - it should work fine in recent 9-STABLE. --=20 If you cut off my head, what would I say? Me and my head, or me and my = body? From owner-freebsd-geom@FreeBSD.ORG Tue Jun 26 14:52:30 2012 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2D197106564A for ; Tue, 26 Jun 2012 14:52:30 +0000 (UTC) (envelope-from icameto@gmail.com) Received: from mail-wg0-f50.google.com (mail-wg0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id B1A148FC16 for ; Tue, 26 Jun 2012 14:52:29 +0000 (UTC) Received: by wgbds11 with SMTP id ds11so5093889wgb.31 for ; Tue, 26 Jun 2012 07:52:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=mwB2haVzpVdJZsYw7IyCCLtvMxWzqllMdKKAIEbnQ+8=; b=WFklzSQQx5qJL5uDtBEsnJVwBmfB44FxyH2HlLqpfsoA1fEb9syAgTpIUTzzR18940 l8SusnYZD6cPCRoTbnXbO8FDbVoP3WuiR5Bok1Sw+1IE+UAa8iAM2RX31ADAl/PPRf47 80rPai7IIFoOzib+vZxbGSab/rlxF1TW+FSq16uOD1KvXX/iQm892Y4OqURr+MRXjJR9 vdcVYUIsH2c0nWm808QKj7z0DGPZ74XoOELFopccEVaor0sa19/dO4ZKm71c6Ww+GpDs WzD7HNsUhIZmZ4RSEtGpnh8yJRmR5l41c/EvGFSrYe2eLd9TV3Tc9mi4O6r8XyDOB0Qz jPRA== MIME-Version: 1.0 Received: by 10.216.203.80 with SMTP id e58mr8203459weo.41.1340722348372; Tue, 26 Jun 2012 07:52:28 -0700 (PDT) Received: by 10.216.224.228 with HTTP; Tue, 26 Jun 2012 07:52:28 -0700 (PDT) Date: Tue, 26 Jun 2012 17:52:28 +0300 Message-ID: From: icameto icameto To: freebsd-geom@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: GELI Passphrase changing 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, 26 Jun 2012 14:52:30 -0000 Hi everyone, I d like to ask you a question about geli and pasphrase changing. # dd if=/dev/random of=/root/da1.key bs=64 count=1 # geli init -s 4096 -K /root/da1.key /dev/da1 # geli attach -k /root/da1.key /dev/da1 How can I change the passphrase for my GELI device? Please give me an advice. I have not change the old key file . When I enter this command, I get an error . # geli setkey -k /etc/geli/da1.key /dev/da1.eli geli: Cannot read metadata from /dev/da1.eli: Invalid argument. Is there anyone can help me ? Thanks in advance Sincerely From owner-freebsd-geom@FreeBSD.ORG Tue Jun 26 15:42:42 2012 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 855491065675 for ; Tue, 26 Jun 2012 15:42:42 +0000 (UTC) (envelope-from rwmaillists@googlemail.com) Received: from mail-ee0-f54.google.com (mail-ee0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id 1683B8FC1B for ; Tue, 26 Jun 2012 15:42:41 +0000 (UTC) Received: by eeke49 with SMTP id e49so41989eek.13 for ; Tue, 26 Jun 2012 08:42:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=date:from:to:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type:content-transfer-encoding; bh=pnK+OpE2ycKdsE8tGL8aCGr7OmhakMjSxh6fMDiYXig=; b=iKStnTt1rKSQiKoim4o3yTrJbQ/VlcxCSLKab1TWVmC6jzraVXteNH2s5ZIZVPwH82 B/iJYi7p9aLK1RIZBJ1EPBMZMXzcwDAkKvgUOJwvHjekX6ZfkbjvEpU/FnE0raoQdTsu w0ABVx/SZxlb4l/CyRzHOo2I1FNc24hm2kv4Nm6gdk9pr6GAs4eJbQbRaOoH88KOoMIT 9694DBjstT3NC8BvPIgD6kaoAa0vE0MGJBhIFLUUa6gHGSJYBBe69hJ5ut5/c5O5lKE7 o3AbN1mylgEdOedALKIur+T0iK5WEJSyKRNpXDmLtt6mX9VPADY8XtHjb3gRfmamuUoL 0ZNw== Received: by 10.14.47.5 with SMTP id s5mr3198878eeb.191.1340725361287; Tue, 26 Jun 2012 08:42:41 -0700 (PDT) Received: from gumby.homeunix.com (87-194-105-247.bethere.co.uk. [87.194.105.247]) by mx.google.com with ESMTPS id a16sm150228732eeg.0.2012.06.26.08.42.39 (version=SSLv3 cipher=OTHER); Tue, 26 Jun 2012 08:42:39 -0700 (PDT) Date: Tue, 26 Jun 2012 16:42:37 +0100 From: RW To: freebsd-geom@freebsd.org Message-ID: <20120626164237.15a95327@gumby.homeunix.com> In-Reply-To: References: X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.6; amd64-portbld-freebsd8.3) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: GELI Passphrase changing 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, 26 Jun 2012 15:42:42 -0000 On Tue, 26 Jun 2012 17:52:28 +0300 icameto icameto wrote: > Hi everyone, > > I d like to ask you a question about geli and pasphrase changing. > > # dd if=/dev/random of=/root/da1.key bs=64 count=1 > > # geli init -s 4096 -K /root/da1.key /dev/da1 > > # geli attach -k /root/da1.key /dev/da1 > > How can I change the passphrase for my GELI device? Please give me an > advice. I have not change the old key file . When I enter this > command, I get an error . > > # geli setkey -k /etc/geli/da1.key /dev/da1.eli > geli: Cannot read metadata from /dev/da1.eli: Invalid argument. That should probably be -K. You've already attached the device so you don't need the old passphrase or keyfile. From owner-freebsd-geom@FreeBSD.ORG Tue Jun 26 16:27:11 2012 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id F27C51065673 for ; Tue, 26 Jun 2012 16:27:10 +0000 (UTC) (envelope-from etnapierala@googlemail.com) Received: from mail-ee0-f54.google.com (mail-ee0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id 824AD8FC0C for ; Tue, 26 Jun 2012 16:27:10 +0000 (UTC) Received: by eeke49 with SMTP id e49so72042eek.13 for ; Tue, 26 Jun 2012 09:27:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=sender:from:content-type:content-transfer-encoding:subject:date :message-id:to:mime-version:x-mailer; bh=a0cs7M6l39Oc9ixl/IPlAnBvlUbmziRu44A1Oq8Rilg=; b=hXg+kgfMNXAHQwsGu7dVAfoWzF4mjEMdxIqNpOE9r+ONDAZt0SscKxu75jUKZFzo6w opkpNFf+GHJkt5QT3P6V87WheLc1wDlV9Q38D2HHdbjXbRRRuVmhaakPR+r6CrPOgDG/ atRWUC+kQsjm2u6cyrY0buBE3kcbha0FzwnnQFt0iGBtrm5N11YPGDhD5xL9o4mj5FSf ibrr1o0Z1R1WP+5DCgTijfVltmVndfNYIZCM2UB/i4m4v5UkwnzhUClj1XVTBTFPVqnT T2Qm27mdQfzxH6mHqLBjuFAb04cTWVFvmEdK9rlzR8VY2UTXWJiMiNPx24krmGFkHGfS YtbA== Received: by 10.14.94.142 with SMTP id n14mr3410609eef.211.1340728029376; Tue, 26 Jun 2012 09:27:09 -0700 (PDT) Received: from [192.168.1.103] (45.81.datacomsa.pl. [195.34.81.45]) by mx.google.com with ESMTPS id m46sm132627334eeh.9.2012.06.26.09.27.07 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 26 Jun 2012 09:27:08 -0700 (PDT) Sender: =?UTF-8?Q?Edward_Tomasz_Napiera=C5=82a?= From: =?iso-8859-2?Q?Edward_Tomasz_Napiera=B3a?= Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Tue, 26 Jun 2012 18:27:05 +0200 Message-Id: To: freebsd-geom@freebsd.org Mime-Version: 1.0 (Apple Message framework v1278) X-Mailer: Apple Mail (2.1278) Subject: GEOM provider resizing. 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, 26 Jun 2012 16:27:11 -0000 Hello. At http://people.freebsd.org/~trasz/geom-resize.diff you will find a patch that implements GEOM resizing. This includes: 1. New class method, resize(), called after mediasize gets updated, 2. New routine, g_resize_provider(), to use by class owning the provider to notify others that the provider size has changed, 3. New routine, disk_resize(), to use by disk drivers to notify others that the disk got resized, 4. Changes to geom_nop and geom_mountver to demonstrate how to implement resizing, 5. Change to da(4) driver to notify GEOM when a LUN changes size, 6. Change to geom_part(4) to handle resizing and to be able to use "gpart resize" for mounted partitions, and 7. Various fixes neccessary for this to work. Review and testing is welcome. Thanks to FreeBSD Foundation for sponsoring this. -- If you cut off my head, what would I say? Me and my head, or me and my body? From owner-freebsd-geom@FreeBSD.ORG Tue Jun 26 19:06:01 2012 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 09C68106566C for ; Tue, 26 Jun 2012 19:06:01 +0000 (UTC) (envelope-from feld@feld.me) Received: from feld.me (unknown [IPv6:2607:f4e0:100:300::2]) by mx1.freebsd.org (Postfix) with ESMTP id D48398FC1D for ; Tue, 26 Jun 2012 19:06:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=feld.me; s=blargle; h=In-Reply-To:Message-Id:From:Content-Transfer-Encoding:Mime-Version:Date:References:Subject:To:Content-Type; bh=nbuDPG4fZSVbWwz+Gr/ykd+ZUutUduoH1QI0Qo0KRH0=; b=tTvrl4sytnUX15Tx7PqA1nZ67HMBQUU4pDXo7iCrB2ZglvB3I9dn26UcYFmJ4Y+h7yviqxk20Oc9LnkFbtCHgyqU7wi9Z1GzEWIvoutt4kH2JtG0OPa4F9I2Zf8pSJtr; Received: from localhost ([127.0.0.1] helo=mwi1.coffeenet.org) by feld.me with esmtp (Exim 4.77 (FreeBSD)) (envelope-from ) id 1Sjb5J-0000Dp-33 for freebsd-geom@freebsd.org; Tue, 26 Jun 2012 14:06:00 -0500 Received: from feld@feld.me by mwi1.coffeenet.org (Archiveopteryx 3.1.4) with esmtpa id 1340737556-94480-94479/5/63; Tue, 26 Jun 2012 19:05:56 +0000 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes To: freebsd-geom@freebsd.org References: Date: Tue, 26 Jun 2012 14:05:56 -0500 Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Mark Felder Message-Id: In-Reply-To: User-Agent: Opera Mail/12.00 (FreeBSD) X-SA-Score: -1.5 Subject: Re: GEOM provider resizing. 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, 26 Jun 2012 19:06:01 -0000 On Tue, 26 Jun 2012 11:27:05 -0500, Edward Tomasz Napiera=C5=82a =20 wrote: > > Review and testing is welcome. Thanks to FreeBSD Foundation for =20 > sponsoring > this. Does this possibly provide the ability to resize a geom mirror? I could =20 definitely use that functionality. From owner-freebsd-geom@FreeBSD.ORG Tue Jun 26 19:16:08 2012 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 816CE1065670 for ; Tue, 26 Jun 2012 19:16:08 +0000 (UTC) (envelope-from icameto@gmail.com) Received: from mail-wg0-f42.google.com (mail-wg0-f42.google.com [74.125.82.42]) by mx1.freebsd.org (Postfix) with ESMTP id 110618FC0C for ; Tue, 26 Jun 2012 19:16:07 +0000 (UTC) Received: by wgbds11 with SMTP id ds11so3959235wgb.1 for ; Tue, 26 Jun 2012 12:16:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:cc:content-type; bh=QsUp7CDRKxFrkI2p7LoXJhVTnB12RPqy/S0xDPifaKc=; b=t5yhmvSSPvzH9QOGRSICsD4O9bXfsDbNW0dfky6rr7+1XDVD9SyS0iGaebWNhw9mtE UuecbLRJnlm/PJCwnozbKCkK1DrfdsN+tzO9BSQx5KqkwvJIxBUM3oZaAp2oP2Jqk8c1 tdMTbZA+XztDcZmYdn1dnN5Cp/Ce38+jIm+q88ORsSNzIpQ+UsFPrHrz835JHQwfl/jj 3ED2yQorXGL8CaTozEhGC+FM+1wech0OkqFE/9kjKxyAzcG4HmyiDBiw+OxWL2RslhuU YMMOWgihkL3lvASrZbGR/CaHFnMo726Qmx5o62ru5Wg28vMSpYQgo6UzUVBjWRLp9O1M Yt5A== MIME-Version: 1.0 Received: by 10.180.98.69 with SMTP id eg5mr35501211wib.3.1340738164110; Tue, 26 Jun 2012 12:16:04 -0700 (PDT) Received: by 10.216.224.228 with HTTP; Tue, 26 Jun 2012 12:16:04 -0700 (PDT) Date: Tue, 26 Jun 2012 22:16:04 +0300 Message-ID: From: icameto icameto To: freebsd-geom@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: rwmaillists@googlemail.com Subject: Re: GELI Passphrase changing 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, 26 Jun 2012 19:16:08 -0000 Hi RW , Firstly thanks for yours quick response . But I stuck in geli module and this command too . So I can use the old passphrase file (/root/da1.key) . So when I set new passphrase that will that be overwritten to this old file with using -K parameter like this # geli setkey -K /root/da1.eli /dev/da1 or how can i change the password without needing new or passphrase file . But there must I have to use old passphrase file when I will attach the encrypted device. I donw know exactly if I could explain what I want clearly. I want only changing passphrase with still using old passphrase file. The only password will be change. Sincerely Best Wishes On 06/26/2012 06:42 PM, RW wrote: On Tue, 26 Jun 2012 17:52:28 +0300 icameto icameto wrote: Hi everyone, I d like to ask you a question about geli and pasphrase changing. # dd if=/dev/random of=/root/da1.key bs=64 count=1 # geli init -s 4096 -K /root/da1.key /dev/da1 # geli attach -k /root/da1.key /dev/da1 How can I change the passphrase for my GELI device? Please give me an advice. I have not change the old key file . When I enter this command, I get an error . # geli setkey -k /etc/geli/da1.key /dev/da1.eli geli: Cannot read metadata from /dev/da1.eli: Invalid argument. That should probably be -K. You've already attached the device so you don't need the old passphrase or keyfile. _______________________________________________freebsd-geom@freebsd.org mailing listhttp://lists.freebsd.org/mailman/listinfo/freebsd-geom To unsubscribe, send any mail to "freebsd-geom-unsubscribe@freebsd.org" From owner-freebsd-geom@FreeBSD.ORG Tue Jun 26 19:49:49 2012 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 30EE5106564A for ; Tue, 26 Jun 2012 19:49:49 +0000 (UTC) (envelope-from etnapierala@googlemail.com) Received: from mail-we0-f182.google.com (mail-we0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id AAF5F8FC12 for ; Tue, 26 Jun 2012 19:49:48 +0000 (UTC) Received: by werg1 with SMTP id g1so248942wer.13 for ; Tue, 26 Jun 2012 12:49:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=sender:subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; bh=op4JUFbbv88Gln115XzYMXoMBUlrBG+9OBG9Ga2Jc7I=; b=qK1MAjmwQCIjNaXdHJH+A33hZzyy/ur+MTXuPZi28D35lWJux4L3iwSmxrnW78hEKy +qnv8SN7AMnhsJlsczlTKrnrMbl2A/i3n04Rts7y52ltNqbMsUeo2tXqCMCXl8NjUTjD GV9RsFM/r4R9+Z/i4BHVbxL+BIviES4mV7hdLbK3lJc4c1uSx+pOaLwDGTskIreZkgEZ 4GQEmxVrIjrw9u7ZPXfYRRWjPBs3IBsLVvNBpx4uqzK/duoBaDMHPQHC22en54KtmJlG v9VjyjvrteZPTxOFM1W7DH4YgYREpbOHODdRl5J7QSLDUVKFlqhSGDAQowwryGCObJGf cIUg== Received: by 10.180.106.137 with SMTP id gu9mr35161041wib.20.1340740186520; Tue, 26 Jun 2012 12:49:46 -0700 (PDT) Received: from [192.168.1.103] (45.81.datacomsa.pl. [195.34.81.45]) by mx.google.com with ESMTPS id hs8sm10936700wib.10.2012.06.26.12.49.44 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 26 Jun 2012 12:49:45 -0700 (PDT) Sender: =?UTF-8?Q?Edward_Tomasz_Napiera=C5=82a?= Mime-Version: 1.0 (Apple Message framework v1278) Content-Type: text/plain; charset=iso-8859-2 From: =?iso-8859-2?Q?Edward_Tomasz_Napiera=B3a?= In-Reply-To: Date: Tue, 26 Jun 2012 21:49:41 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <200C846E-5C76-4FD0-9E58-51B0B9890891@FreeBSD.org> References: To: Mark Felder X-Mailer: Apple Mail (2.1278) Cc: freebsd-geom@freebsd.org Subject: Re: GEOM provider resizing. 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, 26 Jun 2012 19:49:49 -0000 Wiadomo=B6=E6 napisana przez Mark Felder w dniu 26 cze 2012, o godz. = 21:05: > On Tue, 26 Jun 2012 11:27:05 -0500, Edward Tomasz Napiera=B3a = wrote: >>=20 >> Review and testing is welcome. Thanks to FreeBSD Foundation for = sponsoring >> this. >=20 > Does this possibly provide the ability to resize a geom mirror? I = could definitely use that functionality. No, unfortunately not. It would be great to have, but it's rather hard to do, because gmirror, just like most other GEOM classes, stores its metadata at the end of the provider. I've also asked Alexander Motin about metadata formats supported by graid(8), and it looks like all of them have the same problem. It is possible to implement it after this patch goes in, but it was not part of the project. --=20 If you cut off my head, what would I say? Me and my head, or me and my = body? From owner-freebsd-geom@FreeBSD.ORG Wed Jun 27 00:26:39 2012 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 20752106564A for ; Wed, 27 Jun 2012 00:26:39 +0000 (UTC) (envelope-from dave@jetcafe.org) Received: from hugeraid.jetcafe.org (hugeraid.jetcafe.org [205.147.26.109]) by mx1.freebsd.org (Postfix) with ESMTP id DE4CB8FC14 for ; Wed, 27 Jun 2012 00:26:38 +0000 (UTC) Received: from hugeraid.jetcafe.org (localhost [127.0.0.1]) by hugeraid.jetcafe.org (8.13.8/8.13.8) with ESMTP id q5R0Dgsk023212 for ; Tue, 26 Jun 2012 17:13:42 -0700 (PDT) Message-Id: <201206270013.q5R0Dgsk023212@hugeraid.jetcafe.org> X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.0.4 To: freebsd-geom@freebsd.org In-reply-to: References: <4FE8FAAA.80106@jetcafe.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 26 Jun 2012 17:13:42 -0700 From: Dave Hayes Subject: Re: libgeom documentation? 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, 27 Jun 2012 00:26:39 -0000 [ Reposting this request to a more relevant list] Libgeom has these functions geom_gettree() and geom_getxml but there is no documentation in the man page. Was this intentional? Is there a place these functions are documented other than their source code? :) Thanks in advance. -- Dave Hayes - Consultant - Altadena CA, USA - dave@jetcafe.org >>> The opinions expressed above are entirely my own <<< It is not reality that has a time flow, but our very approximate knowledge of reality. Time is the effect of our ignorance. -Carlo Rovelli From owner-freebsd-geom@FreeBSD.ORG Wed Jun 27 02:45:10 2012 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 56E24106566C for ; Wed, 27 Jun 2012 02:45:10 +0000 (UTC) (envelope-from rsimmons0@gmail.com) Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com [209.85.217.182]) by mx1.freebsd.org (Postfix) with ESMTP id C1D9A8FC0C for ; Wed, 27 Jun 2012 02:45:09 +0000 (UTC) Received: by lbon10 with SMTP id n10so1161576lbo.13 for ; Tue, 26 Jun 2012 19:45:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=L6szEdL+0LATGnNZx2CH/RktIL9bdeFVdo4nua3GHIw=; b=EnDlAlNxm+sX0MLQd9GLjIG5MLR3rryHYG99Gbn+NMCZwcQJya3v4idPZYOuI5rZZs YhsW7jhPMSa5oN2hCjP6jhvhkk1zcv4pTkrB+fmqQ1RNi8rmGE3K7Wg/GD7TFjJM5Xr3 3MBbBoK+WojhRVFanI7G1SedjsVj9sIvfzDM9G4xpZAZkAlgXh5UNTSOU+G2GG8ka//D vF4iZg9i0kaBgbXCLH9+S1+x1jApVZ6Itq6DX6GfC5kZsv5xRiMPZBzllpqleaJPPCde bvToNyIz6zPxkf8uopAA7l7L+GMRrxWPr8kS0B1O5b1NMmi6Pd8AtHTmi+85E1qYizr6 7Ekw== MIME-Version: 1.0 Received: by 10.112.98.225 with SMTP id el1mr8718635lbb.30.1340765108715; Tue, 26 Jun 2012 19:45:08 -0700 (PDT) Received: by 10.112.107.170 with HTTP; Tue, 26 Jun 2012 19:45:08 -0700 (PDT) Date: Tue, 26 Jun 2012 22:45:08 -0400 Message-ID: From: Robert Simmons To: freebsd-geom@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: Total system freeze when using 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: Wed, 27 Jun 2012 02:45:10 -0000 I've run into a total freeze with 9.0. I'm using geli encrypted swap and / with the following: geli init -b -v -a hmac/sha256 -l 256 -s 4096 /dev/ada0p4 and geli_swap_flags="-d -l 256 -s 4096" The following specs: 128M memory and 4G hard disk in a Xen HMV virtual server environment. I have allocated 384M of swap space. After install when I run the freebsd-update fetch command the server freezes at the following stage: Applying patches... I've been trying to diagnose the problem by running top and watching what happens during this stage. I noticed the following: 1) the box runs out of physical memory at this stage (totally expected, that's why there is sufficient swap space). 2) All the processes except 2 sleep: 31 processes: 1 running, 29 sleeping, 1 waiting 3) the box is responsive to hitting enter at the console (it produces another login: prompt) 4) sshd is asleep, so I can't ssh into the box 5) if I try to login to the console, it lets me enter a username then locks up totally, it does not present me with a password: prompt. 6) it has not run out of swap, nowhere close: Mem: 54M Active, 9524K Inact, 41M Wired, 24K Cache, 21M Buf, 32K Free Swap: 384M Total, 6452K Used, 378M Free, 1% Inuse 7) the moment it runs out of physical memory it begins being unresponsive I've brought this thread from freebsd-hackers because after testing this exact same environment and conditions but without using geli, I am unable to reproduce the freeze. With geli, I'm able to produce the freeze 100% of the time. It was suggested in hackers that there is a logjam in the buffer cache. Any thoughts? From owner-freebsd-geom@FreeBSD.ORG Wed Jun 27 21:34:33 2012 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C8B59106564A for ; Wed, 27 Jun 2012 21:34:33 +0000 (UTC) (envelope-from nonsolosoft@diff.org) Received: from u1.diff.org (u1.diff.org [78.46.96.43]) by mx1.freebsd.org (Postfix) with ESMTP id 5746A8FC17 for ; Wed, 27 Jun 2012 21:34:33 +0000 (UTC) Received: from [10.0.0.3] (vola.diff.org [81.174.26.135]) (authenticated bits=0) by u1.diff.org (8.14.4/8.14.4) with ESMTP id q5RLODDp097360 for ; Wed, 27 Jun 2012 21:24:24 GMT (envelope-from nonsolosoft@diff.org) Message-ID: <4FEB79D7.9000706@diff.org> Date: Wed, 27 Jun 2012 23:23:35 +0200 From: Ferruccio Zamuner User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: freebsd-geom@freebsd.org Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.3.5 (u1.diff.org [78.46.96.43]); Wed, 27 Jun 2012 21:24:24 +0000 (UTC) Subject: gmirror on FreeBSD 5.5 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, 27 Jun 2012 21:34:33 -0000 Hi today I happened to restart a FreeBSD 5.5 i386 server with gmirror. It had only da0, while it must had also da1 and da2 attached. So I've given: gmirror forgot gm0 gmirror insert -h gm0 da1 da2 And it was working nice during disks resync. I had to reboot while it has not finished the resync, it restarted and it was fine, the resync was not completed yet, but that job was still in progress. But I had to reboot it another time for some power connection problems and now it load kernel but its bootstrap seems to hang during GMIRROR after it had attached both da1 and da2. The hd led lights on and off as when it has something to do on the disk, so I've decided to let it turned on to see if it is still completing its jobs. Really, now it has to be completed the mirror resync but I don't see it to appear on the net, and I fear it hangs during the boot. What do you suggest? Have I to try to boot with a freebsd 5.5 disc2 iso? I cannot upgrade it to latest versions of freebsd: this pc will not be used for long time yet. Thank you in advance, \ferz From owner-freebsd-geom@FreeBSD.ORG Thu Jun 28 01:35:31 2012 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4A7EE106564A for ; Thu, 28 Jun 2012 01:35:31 +0000 (UTC) (envelope-from dieterbsd@engineer.com) Received: from mailout-us.gmx.com (mailout-us.gmx.com [74.208.5.67]) by mx1.freebsd.org (Postfix) with SMTP id 0A4C88FC16 for ; Thu, 28 Jun 2012 01:35:30 +0000 (UTC) Received: (qmail 3285 invoked by uid 0); 28 Jun 2012 01:35:24 -0000 Received: from 67.206.183.61 by rms-us006.v300.gmx.net with HTTP Content-Type: text/plain; charset="utf-8" Date: Wed, 27 Jun 2012 21:35:20 -0400 From: "Dieter BSD" Message-ID: <20120628013522.298400@gmx.com> MIME-Version: 1.0 To: To: freebsd-hackers@freebsd.org,freebsd-geom@freebsd.org X-Authenticated: #74169980 X-Flags: 0001 X-Mailer: GMX.com Web Mailer x-registered: 0 Content-Transfer-Encoding: 8bit X-GMX-UID: jdGZb/QV3zOlNR3dAHAhI35+IGRvb4DV Cc: Subject: Re: Freeze when running freebsd-update 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, 28 Jun 2012 01:35:31 -0000 >>>> Robert writes: >>>>> 3) the box is responsive to hitting enter at the console (it produces >>>>> another login: prompt) >>>> >>>> Getty is in memory and can run. >>>> >>>>> 5) if I try to login to the console, it lets me enter a username then >>>>> locks up totally, it does not present me with a password: prompt. >>>> >>>> Login(1) is not in memory, and the kernel cannot read it from disk >>>> for some reason. >>>> >>>> I can get this symptom by writing a large file to a disk on a >>>> controller that FreeBSD doesn't support NCQ on. I assume there >>>> is a logjam in the buffer cache. Something trivial like reading >>>> login in from disk that would normally happen in well under a >>>> second can take many minutes. >>>> >>>> Perhaps geli is causing a similar logjam? Does it hang forever or >>>> is it just obscenely slow? If it truely hangs forever it is >>>> probably something else. Is there disk activity after it hangs? >>>> Can you try it without geli? systat -vmstat might provide a clue. >>> >>> Well, it is geli. I'm unable to reproduce the freeze on the same >>> exact system with everything else the same except for no geli. I'm >>> going to move this thread over to geom, and continue it there. Thanks >>> for your help! >> >> It occurs to me that it will need twice as much memory for disk i/o. >> 1 buffer for encrypted and 1 for unencrypted. I know nothing about geli, >> so I don't know if it uses the buffer cache for both, or what. >> Could it be that the kernel isn't keeping enough memory free and >> manages to paint itself into a corner and not have space to store >> the unencrypted version of disk reads, and can't page/swap anything >> out to make space because it doesn't have space to store the encrypted >> version to write? > > I think that's probably about what is happening. I'm still waiting > for an answer on the geom mailing list, but I will do some testing > with increasing memory sizes and see where the problem stops > occurring. Some of the vfs.*buf sysctls might be useful? From owner-freebsd-geom@FreeBSD.ORG Fri Jun 29 06:53:21 2012 Return-Path: Delivered-To: freebsd-geom@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 883E81065670; Fri, 29 Jun 2012 06:53:21 +0000 (UTC) (envelope-from ae@FreeBSD.org) Received: from mail.kirov.so-ups.ru (ns.kirov.so-ups.ru [178.74.170.1]) by mx1.freebsd.org (Postfix) with ESMTP id E74B18FC1B; Fri, 29 Jun 2012 06:53:17 +0000 (UTC) Received: from kas30pipe.localhost (localhost.kirov.so-ups.ru [127.0.0.1]) by mail.kirov.so-ups.ru (Postfix) with SMTP id 9D818B8027; Fri, 29 Jun 2012 10:53:06 +0400 (MSK) Received: from kirov.so-ups.ru (unknown [172.21.81.1]) by mail.kirov.so-ups.ru (Postfix) with ESMTP id 19105B8026; Fri, 29 Jun 2012 10:53:06 +0400 (MSK) Received: by ns.kirov.so-ups.ru (Postfix, from userid 1010) id 11B55BA06D; Fri, 29 Jun 2012 10:53:06 +0400 (MSK) Received: from [127.0.0.1] (unknown [10.118.3.52]) by ns.kirov.so-ups.ru (Postfix) with ESMTP id CE906BA03F; Fri, 29 Jun 2012 10:53:05 +0400 (MSK) Message-ID: <4FED50CB.8060104@FreeBSD.org> Date: Fri, 29 Jun 2012 10:52:59 +0400 From: "Andrey V. Elsukov" User-Agent: Mozilla Thunderbird 1.5 (FreeBSD/20051231) MIME-Version: 1.0 To: Pawel Jakub Dawidek , freebsd-geom@FreeBSD.org, Poul-Henning Kamp References: <201206270807.23347.jhb@freebsd.org> <4FEB0079.7050008@yandex.ru> <201206271028.54477.jhb@freebsd.org> <4FEB5A3C.5050900@borderworlds.dk> <1900D4C1-E5E5-446F-ABBF-976A2DFEB36B@xcllnt.net> <4FEC22A0.9000109@freebsd.org> <4FEC2D86.2040505@freebsd.org> <8D85513D-CDFC-4D62-AA5A-F82F46E28CE5@xcllnt.net> <20120628214902.00004e34@unknown> <146B8DC1-4B66-4E78-BBB3-3954DC305424@xcllnt.net> <20120628230725.GB1438@garage.freebsd.pl> In-Reply-To: <20120628230725.GB1438@garage.freebsd.pl> X-Enigmail-Version: 1.4.2 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigB953E6FB8013A1139DCC8965" X-SpamTest-Version: SMTP-Filter Version 3.0.0 [0284], KAS30/Release X-SpamTest-Info: Not protected Cc: Subject: GEOM metadata manager (was: Re: [CFC/CFT] large changes in the loader(8) code) 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, 29 Jun 2012 06:53:21 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigB953E6FB8013A1139DCC8965 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable On 29.06.2012 3:07, Pawel Jakub Dawidek wrote: >> [...] If the metadata was somewhere >> else, then we wouldn't need to kluge various places to deal with the >> ambiguity and visible interoperability problems of the various tools a= nd >> OSes. [...] >=20 > Where is "somewhere else", exactly? >=20 > If somewhere else on this disk, then where? At the begining of the disk= ? > Then you would complain that it keeps metadata where the primary header= > should be located and also MBR metadata, BSDlabel metadata, etc. > Somewhere in the middle of the disk? Some future GPTng may want to use > the same spot, but also gmirror-unaware boot loader will see corrupted > data (shifted by one sector). Come on... >=20 > If somewhere else is not on this disk, then I'm sorry, but this is > totally impractical. Disks are the place you store stuff. In 99% of the= > cases there is no other place to store it, but the disk itself. Should > we ask users to use additional disk to keep mirror's metadata? I have an idea. A new GEOM class GEOM_MDMGR. It provides new API to write= and read metadata, e.g.: g_read_metadata(...) and g_write_metadata(...) funct= ions. It keeps own data on the specially delegated for this partition. +-------------------------------- | GEOM_MDMGR header +-------------------------------- | GEOM_MDMGR database | the list of entries +-------------------------------- | one sector for each geom +-------------------------------- | .... +-------------------------------- | GEOM_MDMGR header +-------------------------------- Now, we can modify each needed GEOM class and replace some g_write_data/g= _read_data with new functions. How it will work: When GEOM class tastes some provider it calls g_read_metadata(). GEOM_MDM= GR receives request for reading metadata and looks in the database. It analyzes infor= mation that gets from the parameters list. This may be: geom rank, provider size= , block offset, etc. If there is none registered in the database, then GEOM_MDMGR just forward= s this request to the given provider. If there is some metadata registered, then it retu= rns this metadata to the geom. We can keep this database on each device, it can contain information abou= t all geoms, i.e. not only about device where the database is. It can provide to us ne= w abilities, like taste ordering based on the rank... Of course there are some problems that need to ponder. --=20 WBR, Andrey V. Elsukov --------------enigB953E6FB8013A1139DCC8965 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.10 (MingW32) iQEcBAEBAgAGBQJP7VDRAAoJEAHF6gQQyKF67vEH/Rq1iQLvMCX5gU622p2Cjs8H DS/4LM0vHiUIGXDljzKge7qGHkodeb/jPoY+aM1R3myimTya92bCNvNSuPNTAanL qLqQHfo7R+FriunvMFsGBAcAXYLntL98vrYGOKrVHT3bGCUmegZ2wtlxmw7oiuLt YpC5CT0pAeahhC59NHUKTMseV/xQxX93LlRjpKtvbjPVM2Kakp8D8E9bjc7XckeK DCQbZja9wcLlqRIqCxqEefA6461roAyeMAHP+jzw/ZomrLA8rv+hRf2WC5mphjmf Zw/0lXo10lUb4iDPoGl5JZ3xe2jqfo1OFferLIC9tz1APvPr2dMQgaXedjzWJLc= =gz+0 -----END PGP SIGNATURE----- --------------enigB953E6FB8013A1139DCC8965--