From owner-freebsd-geom@FreeBSD.ORG Mon Sep 21 11:06:55 2009 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 C574910656CF for ; Mon, 21 Sep 2009 11:06:55 +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 B38F18FC1B for ; Mon, 21 Sep 2009 11:06:55 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n8LB6t4n030256 for ; Mon, 21 Sep 2009 11:06:55 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n8LB6tO2030251 for freebsd-geom@FreeBSD.org; Mon, 21 Sep 2009 11:06:55 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 21 Sep 2009 11:06:55 GMT Message-Id: <200909211106.n8LB6tO2030251@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, 21 Sep 2009 11:06:55 -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 -------------------------------------------------------------------------------- o kern/135898 geom [geom] Severe filesystem corruption - large files or l o kern/134922 geom [gmirror] [panic] kernel panic when use fdisk on disk o kern/134113 geom [geli] Problem setting secondary GELI key o kern/134044 geom [geom] gmirror(8) overwrites fs with stale data from r 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 kern/132273 geom glabel(8): [patch] failing on journaled partition f kern/132242 geom [gmirror] gmirror.ko fails to fully initialize o kern/131353 geom [geom] gjournal(8) kernel lock p docs/130548 geom [patch] gjournal(8) man page is missing sysctls 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 f kern/128276 geom [gmirror] machine lock up when gmirror module is used f kern/126902 geom [geom] geom_label: kernel panic during install boot 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 f kern/124294 geom [geom] gmirror(8) have inappropriate logic when workin 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 f kern/122415 geom [geom] UFS labels are being constantly created and rem o kern/122067 geom [geom] [panic] Geom crashed during boot o kern/121559 geom [patch] [geom] geom label class allows to create inacc 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/120021 geom [geom] [panic] net-p2p/qbittorrent crashes system when o kern/119743 geom [geom] geom label for cds is keeped after dismount and 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 o kern/114532 geom [geom] GEOM_MIRROR shows up in kldstat even if compile o kern/113957 geom [gmirror] gmirror is intermittently reporting a degrad o kern/113885 geom [gmirror] [patch] improved gmirror balance algorithm o kern/113837 geom [geom] unable to access 1024 sector size storage o kern/113419 geom [geom] geom fox multipathing not failing back p bin/110705 geom gmirror(8) control utility does not exit with correct o kern/107707 geom [geom] [patch] [request] add new class geom_xbox360 to o kern/104389 geom [geom] [patch] sys/geom/geom_dump.c doesn't encode XML o kern/98034 geom [geom] dereference of NULL pointer in acd_geom_detach 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 a kern/89660 geom [vinum] [patch] [panic] due to g_malloc returning null o kern/89546 geom [geom] GEOM error o kern/88601 geom [geli] geli cause kernel panic under heavy disk usage o kern/87544 geom [gbde] mmaping large files on a gbde filesystem deadlo 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. s kern/73177 geom kldload geom_* causes panic due to memory exhaustion 51 problems total. From owner-freebsd-geom@FreeBSD.ORG Mon Sep 21 15:05:12 2009 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 104971065670 for ; Mon, 21 Sep 2009 15:05:12 +0000 (UTC) (envelope-from a.n.s.i@gmx.net) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.freebsd.org (Postfix) with SMTP id 5C0008FC17 for ; Mon, 21 Sep 2009 15:05:11 +0000 (UTC) Received: (qmail 8334 invoked by uid 0); 21 Sep 2009 14:38:28 -0000 Received: from 91.52.161.149 by www059.gmx.net with HTTP; Mon, 21 Sep 2009 16:38:22 +0200 (CEST) Content-Type: text/plain; charset="us-ascii" Date: Mon, 21 Sep 2009 16:38:21 +0200 From: "Evgeny Solovyov" Message-ID: <20090921143821.27380@gmx.net> MIME-Version: 1.0 To: freebsd-geom@freebsd.org X-Authenticated: #30170983 X-Flags: 0001 X-Mailer: WWW-Mail 6100 (Global Message Exchange) X-Priority: 3 X-Provags-ID: V01U2FsdGVkX1/ZtyAb1efZh0GN3u3mKHk74AKBmWcef4+HzjqpfZ YveOwSDBrUxjuG3RdWo9boF48T5wrvk5GRNQ== Content-Transfer-Encoding: 7bit X-GMX-UID: rfrWLttra0A7IgYwuTAzKxg/Njh6dE4J X-FuHaFi: 0.71 Subject: geom_eli, N disks, zfs 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, 21 Sep 2009 15:05:12 -0000 Is there any better way to configure a system to encrypt N-disk with passphrase for using under zfs as write in loader.conf following: geom_eli_load="YES" geli_da0p1_keyfile0_load="YES" geli_da0p1_keyfile0_type="da0p1:geli_keyfile0" geli_da0p1_keyfile0_name="/boot/keys/da0.key" geli_da2p1_keyfile0_load="YES" geli_da2p1_keyfile0_type="da2p1:geli_keyfile0" geli_da2p1_keyfile0_name="/boot/keys/da2.key" ... geli_dap1_keyfile0_load="YES" geli_dap1_keyfile0_type="dap1:geli_keyfile0" geli_dap1_keyfile0_name="/boot/keys/da.key" The problem is we must enter the passphrase N-times. Thanks. Evgeny Solovyov -- Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3 - sicherer, schneller und einfacher! http://portal.gmx.net/de/go/chbrowser From owner-freebsd-geom@FreeBSD.ORG Mon Sep 21 15:20:02 2009 Return-Path: Delivered-To: freebsd-geom@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D2B25106566B for ; Mon, 21 Sep 2009 15:20:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id A84788FC12 for ; Mon, 21 Sep 2009 15:20:02 +0000 (UTC) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n8LFK2Tk087550 for ; Mon, 21 Sep 2009 15:20:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n8LFK2Vq087549; Mon, 21 Sep 2009 15:20:02 GMT (envelope-from gnats) Date: Mon, 21 Sep 2009 15:20:02 GMT Message-Id: <200909211520.n8LFK2Vq087549@freefall.freebsd.org> To: freebsd-geom@FreeBSD.org From: freebsdpr Cc: Subject: Re: kern/113885: [gmirror] [patch] improved gmirror balance algorithm X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsdpr List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Sep 2009 15:20:02 -0000 The following reply was made to PR kern/113885; it has been noted by GNATS. From: freebsdpr To: bug-followup@FreeBSD.org Cc: Subject: Re: kern/113885: [gmirror] [patch] improved gmirror balance algorithm Date: Tue, 22 Sep 2009 01:13:05 +1000 (EST) > The patch will not increase streaming read performance beyond what's possible with a single drive[...] I meant that after applying the patch it literally only reads from a single drive. "iostat -w 1 -x" shows it consistently using the last drive of the set for all reads. From owner-freebsd-geom@FreeBSD.ORG Mon Sep 21 21:05:41 2009 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 0074C106568F for ; Mon, 21 Sep 2009 21:05:41 +0000 (UTC) (envelope-from ac@belngo.info) Received: from mail-bw0-f227.google.com (mail-bw0-f227.google.com [209.85.218.227]) by mx1.freebsd.org (Postfix) with ESMTP id 923298FC13 for ; Mon, 21 Sep 2009 21:05:40 +0000 (UTC) Received: by bwz27 with SMTP id 27so2126690bwz.43 for ; Mon, 21 Sep 2009 14:05:39 -0700 (PDT) MIME-Version: 1.0 Received: by 10.204.155.79 with SMTP id r15mr52482bkw.142.1253565313611; Mon, 21 Sep 2009 13:35:13 -0700 (PDT) In-Reply-To: <20090921143821.27380@gmx.net> References: <20090921143821.27380@gmx.net> Date: Mon, 21 Sep 2009 23:35:13 +0300 Message-ID: <5709ce310909211335s25aba206i33571558e4aeb92f@mail.gmail.com> From: Alaksiej C To: freebsd-geom@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: geom_eli, N disks, zfs 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, 21 Sep 2009 21:05:41 -0000 You can allocate one small disk/slice to be encrypted with passphrase (and - if you like - with keyfile(s) too). Inside of it you will store keyfiles for other disks, which should be encrypted without using passphrase(s). In such configuration it's necessary to know passphrase to unlock any disk, but you need to type it only once. P.S. And, actually, I think your question is fit better for freebsd-questions@. On Mon, Sep 21, 2009 at 5:38 PM, Evgeny Solovyov wrote: > Is there any better way to configure a system to encrypt N-disk with passphrase for using under zfs as write in loader.conf following: > > geom_eli_load="YES" > geli_da0p1_keyfile0_load="YES" > geli_da0p1_keyfile0_type="da0p1:geli_keyfile0" > geli_da0p1_keyfile0_name="/boot/keys/da0.key" > > geli_da2p1_keyfile0_load="YES" > geli_da2p1_keyfile0_type="da2p1:geli_keyfile0" > geli_da2p1_keyfile0_name="/boot/keys/da2.key" > > ... > > geli_dap1_keyfile0_load="YES" > geli_dap1_keyfile0_type="dap1:geli_keyfile0" > geli_dap1_keyfile0_name="/boot/keys/da.key" > > > The problem is we must enter the passphrase N-times. > > Thanks. > > Evgeny Solovyov > -- > Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3 - > sicherer, schneller und einfacher! http://portal.gmx.net/de/go/chbrowser > _______________________________________________ > 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 Tue Sep 22 10:37:07 2009 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 589D31065676 for ; Tue, 22 Sep 2009 10:37:07 +0000 (UTC) (envelope-from petefrench@ticketswitch.com) Received: from constantine.ticketswitch.com (constantine.ticketswitch.com [IPv6:2002:57e0:1d4e:1::3]) by mx1.freebsd.org (Postfix) with ESMTP id 1F2578FC12 for ; Tue, 22 Sep 2009 10:37:06 +0000 (UTC) Received: from dilbert.rattatosk ([10.64.50.6] helo=dilbert.ticketswitch.com) by constantine.ticketswitch.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.69 (FreeBSD)) (envelope-from ) id 1Mq2jy-000OeK-EO; Tue, 22 Sep 2009 11:36:58 +0100 Received: from petefrench by dilbert.ticketswitch.com with local (Exim 4.69 (FreeBSD)) (envelope-from ) id 1Mq2jy-000Gq4-DV; Tue, 22 Sep 2009 11:36:58 +0100 To: a.n.s.i@gmx.net, freebsd-geom@freebsd.org In-Reply-To: <20090921143821.27380@gmx.net> Message-Id: From: Pete French Date: Tue, 22 Sep 2009 11:36:58 +0100 Cc: Subject: Re: geom_eli, N disks, zfs 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, 22 Sep 2009 10:37:07 -0000 > Is there any better way to configure a system to encrypt N-disk with passphrase for using under zfs as write in loader.conf following: I use a very short separate partition as the keyfile, decrypt that once and then use it to decrypt the others. My rc.conf looks like this: geli_autodetach="NO" geli_devices="ad4s1e ad6 ad8" geli_ad6_flags="-p -k /dev/ad4s1e.eli" geli_ad8_flags="-p -k /dev/ad4s1e.eli" which is a bit shorter than yours :-) ad4s1 is 5 sectors (i.e. 2560 bytes) hence ad4s1.eli is 2048 bytes. I initialised it with random data before encrypting the other discs and I keep a backup of the 4 sectors elsewhere just in case... -pete. From owner-freebsd-geom@FreeBSD.ORG Wed Sep 23 00:32:10 2009 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 495DD10656C0; Wed, 23 Sep 2009 00:32:10 +0000 (UTC) (envelope-from shurd@sasktel.net) Received: from electron.sasknet.sk.ca (electron.sasknet.sk.ca [142.165.20.179]) by mx1.freebsd.org (Postfix) with ESMTP id 13B5B8FC13; Wed, 23 Sep 2009 00:32:09 +0000 (UTC) Received: from pps.filterd (electron [127.0.0.1]) by electron.sasknet.sk.ca (8.14.3/8.14.3) with SMTP id n8N08IHI002695; Tue, 22 Sep 2009 18:12:27 -0600 Received: from bgmpomr1.sasknet.sk.ca (bgmpOMR1.sasknet.sk.ca [142.165.72.22]) by electron.sasknet.sk.ca with ESMTP id gy6pjdhhv-1; Tue, 22 Sep 2009 18:12:26 -0600 Received: from ace.hurd.local (outgoing.bbsdev.net [76.202.204.46]) by bgmpomr1.sasknet.sk.ca (SaskTel eMessaging Service) with ESMTPA id <0KQE00L4NDWJOV00@bgmpomr1.sasknet.sk.ca>; Tue, 22 Sep 2009 18:12:26 -0600 (CST) Date: Tue, 22 Sep 2009 17:12:18 -0700 From: Stephen Hurd In-reply-to: <200909172032.n8HKWEUG021155@freefall.freebsd.org> To: marcel@FreeBSD.org Message-id: <4AB967E2.8010207@sasktel.net> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7BIT References: <200909172032.n8HKWEUG021155@freefall.freebsd.org> User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.1.23) Gecko/20090917 SeaMonkey/1.1.18 Mnenhy/0.7.6.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=1.12.8161:2.4.5, 1.2.40, 4.0.166 definitions=2009-09-22_13:2009-09-22, 2009-09-22, 2009-09-22 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=default score=0 spamscore=0 ipscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=5.0.0-0908210000 definitions=main-0909220142 Cc: freebsd-geom@FreeBSD.org Subject: Re: kern/138891: [geom] GEOM_PART_* fails with sliced gstripe 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, 23 Sep 2009 00:32:10 -0000 marcel@FreeBSD.org wrote: > Your disk partitioning is invalid. You cannot have both a MBR and > a BSD disk label in the same place and independently of each other. > ace# fdisk /dev/stripe/raid0 > ace# bsdlabel /dev/stripe/raid0 > If you look closely, FreeBSD 7.2 will use the MBR on /dev/stripe/raid0 > and the BSD disklabel on /dev/stripe/raid0s4. However, since a BSD > disklabel also embeds a MBR, FreeBSD 8.0 will correctly prefer the > BSD disklabel on /dev/stripe/raid0. However, the BSD disk label is > not the one that should be used. > Fix the problem by wiping out the second sector on the disk. > BTW: the problem is caused by creating a dangerously dedicated > installation. It's known to be broken and should not be used. > FYI, > After wiping out the second sector or the drive (dd seek=1 count=1 if=/dev/zero of=/dev/stripe/raid0) fdisk now reports "invalid fdisk partition table found" but GEOM_PART_* still does not locate the a slice and the b/d slices will not mount. I have never had a /dev/stripe/raid0s* node, just /dev/stripe/raid0[a-d]. Is there any way to fix this short of a full backup/restore? (The reason I used DD mode here was that since the gstripe wouldn't be visible to the BIOS -- or anything other than FreeBSD -- slicing seemed silly.) From owner-freebsd-geom@FreeBSD.ORG Wed Sep 23 00:57:45 2009 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 3D3711065692; Wed, 23 Sep 2009 00:57:45 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from asmtpout027.mac.com (asmtpout027.mac.com [17.148.16.102]) by mx1.freebsd.org (Postfix) with ESMTP id 269E98FC18; Wed, 23 Sep 2009 00:57:45 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=us-ascii; format=flowed; delsp=yes Received: from macbook-pro.lan.xcllnt.net (mail.xcllnt.net [75.101.29.67]) by asmtp027.mac.com (Sun Java(tm) System Messaging Server 6.3-8.01 (built Dec 16 2008; 32bit)) with ESMTPSA id <0KQE00KCCG07PG60@asmtp027.mac.com>; Tue, 22 Sep 2009 17:57:45 -0700 (PDT) From: Marcel Moolenaar In-reply-to: <4AB967E2.8010207@sasktel.net> Date: Tue, 22 Sep 2009 17:57:42 -0700 Message-id: <08EDE240-FE64-48D6-905C-8203FE6268EB@mac.com> References: <200909172032.n8HKWEUG021155@freefall.freebsd.org> <4AB967E2.8010207@sasktel.net> To: Stephen Hurd X-Mailer: Apple Mail (2.1076) Cc: marcel@FreeBSD.org, freebsd-geom@FreeBSD.org Subject: Re: kern/138891: [geom] GEOM_PART_* fails with sliced gstripe 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, 23 Sep 2009 00:57:45 -0000 On Sep 22, 2009, at 5:12 PM, Stephen Hurd wrote: > > After wiping out the second sector or the drive (dd seek=1 count=1 > if=/dev/zero of=/dev/stripe/raid0) > fdisk now reports "invalid fdisk partition table found" but > GEOM_PART_* still does not locate the a slice and the b/d slices > will not mount. What is the sector size? > Is there any way to fix this short of a full backup/restore? I don't know yet... -- Marcel Moolenaar xcllnt@mac.com From owner-freebsd-geom@FreeBSD.ORG Wed Sep 23 01:23:28 2009 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 8A7BE106568B; Wed, 23 Sep 2009 01:23:28 +0000 (UTC) (envelope-from shurd@sasktel.net) Received: from proton.sasknet.sk.ca (proton.sasknet.sk.ca [142.165.20.178]) by mx1.freebsd.org (Postfix) with ESMTP id 531E18FC15; Wed, 23 Sep 2009 01:23:28 +0000 (UTC) Received: from pps.filterd (proton [127.0.0.1]) by proton.sasknet.sk.ca (8.14.3/8.14.3) with SMTP id n8N1Ict4002627; Tue, 22 Sep 2009 19:23:27 -0600 Received: from bgmpomr1.sasknet.sk.ca (bgmpOMR1.sasknet.sk.ca [142.165.72.22]) by proton.sasknet.sk.ca with ESMTP id gy75t6y7a-1; Tue, 22 Sep 2009 19:23:27 -0600 Received: from ace.hurd.local (outgoing.bbsdev.net [76.202.204.46]) by bgmpomr1.sasknet.sk.ca (SaskTel eMessaging Service) with ESMTPA id <0KQE002HHH71R700@bgmpomr1.sasknet.sk.ca>; Tue, 22 Sep 2009 19:23:27 -0600 (CST) Date: Tue, 22 Sep 2009 18:23:23 -0700 From: Stephen Hurd In-reply-to: <08EDE240-FE64-48D6-905C-8203FE6268EB@mac.com> To: Marcel Moolenaar Message-id: <4AB9788B.2040003@sasktel.net> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7BIT References: <200909172032.n8HKWEUG021155@freefall.freebsd.org> <4AB967E2.8010207@sasktel.net> <08EDE240-FE64-48D6-905C-8203FE6268EB@mac.com> User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.1.23) Gecko/20090917 SeaMonkey/1.1.18 Mnenhy/0.7.6.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=1.12.8161:2.4.5, 1.2.40, 4.0.166 definitions=2009-09-22_13:2009-09-22, 2009-09-22, 2009-09-22 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=default score=0 spamscore=0 ipscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=5.0.0-0908210000 definitions=main-0909220150 Cc: marcel@FreeBSD.org, freebsd-geom@FreeBSD.org Subject: Re: kern/138891: [geom] GEOM_PART_* fails with sliced gstripe 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, 23 Sep 2009 01:23:28 -0000 Marcel Moolenaar wrote: >> After wiping out the second sector or the drive (dd seek=1 count=1 >> if=/dev/zero of=/dev/stripe/raid0) >> fdisk now reports "invalid fdisk partition table found" but >> GEOM_PART_* still does not locate the a slice and the b/d slices will >> not mount. > > What is the sector size? 512 according to diskinfo and gstripe list: > diskinfo /dev/stripe/raid0 /dev/stripe/raid0 512 42934992896 83857408 > gstripe list Geom name: raid0 State: UP Status: Total=4, Online=4 Type: AUTOMATIC Stripesize: 262144 ID: 40432321 Providers: 1. Name: stripe/raid0 Mediasize: 42934992896 (40G) Sectorsize: 512 Mode: r3w3e4 Consumers: 1. Name: da0s2 Mediasize: 10733990400 (10G) Sectorsize: 512 Mode: r3w3e5 Number: 0 2. Name: da1s2 Mediasize: 10733990400 (10G) Sectorsize: 512 Mode: r3w3e5 Number: 1 3. Name: da2s2 Mediasize: 10733990400 (10G) Sectorsize: 512 Mode: r3w3e5 Number: 2 4. Name: da3s2 Mediasize: 10733990400 (10G) Sectorsize: 512 Mode: r3w3e5 Number: 3 From owner-freebsd-geom@FreeBSD.ORG Wed Sep 23 04:30:04 2009 Return-Path: Delivered-To: freebsd-geom@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 99810106566C for ; Wed, 23 Sep 2009 04:30:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 6E7EA8FC1F for ; Wed, 23 Sep 2009 04:30:04 +0000 (UTC) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n8N4U4Eb074461 for ; Wed, 23 Sep 2009 04:30:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n8N4U4we074458; Wed, 23 Sep 2009 04:30:04 GMT (envelope-from gnats) Date: Wed, 23 Sep 2009 04:30:04 GMT Message-Id: <200909230430.n8N4U4we074458@freefall.freebsd.org> To: freebsd-geom@FreeBSD.org From: Eugene Grosbein Cc: Subject: Re: kern/104389: [geom] [patch] sys/geom/geom_dump.c doesn't encode XML entities X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Eugene Grosbein List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Sep 2009 04:30:04 -0000 The following reply was made to PR kern/104389; it has been noted by GNATS. From: Eugene Grosbein To: bug-followup@freebsd.org Cc: qa@freebsd.org Subject: Re: kern/104389: [geom] [patch] sys/geom/geom_dump.c doesn't encode XML entities Date: Wed, 23 Sep 2009 11:59:59 +0800 Hi! This it still the problem for 8.0-RC1 and patch-3 really helps. Please note, that localized versions of Windows assing to newly formatted USB flash drives the label "NEW VOLUME" translated to national language. So, inserting such drive instantly breaks geom utilities until drive removed. patch-3.diff in the PR solves the problem. Eugene Grosbein From owner-freebsd-geom@FreeBSD.ORG Wed Sep 23 08:33:18 2009 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 63E6B106566C for ; Wed, 23 Sep 2009 08:33:18 +0000 (UTC) (envelope-from a.n.s.i@gmx.net) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.freebsd.org (Postfix) with SMTP id C61878FC13 for ; Wed, 23 Sep 2009 08:33:17 +0000 (UTC) Received: (qmail 23988 invoked by uid 0); 23 Sep 2009 08:33:15 -0000 Received: from 91.52.152.161 by www052.gmx.net with HTTP; Wed, 23 Sep 2009 10:33:13 +0200 (CEST) Content-Type: text/plain; charset="iso-8859-1" Date: Wed, 23 Sep 2009 10:33:13 +0200 From: "Evgeny Solovyov" In-Reply-To: Message-ID: <20090923083313.55390@gmx.net> MIME-Version: 1.0 References: To: Pete French , freebsd-geom@freebsd.org X-Authenticated: #30170983 X-Flags: 0001 X-Mailer: WWW-Mail 6100 (Global Message Exchange) X-Priority: 3 X-Provags-ID: V01U2FsdGVkX1+Un10gfDiUh9sS6cfV5JVyMvud7f4lF0Pr5DuQb5 RxwWE8pImk4lEqXJxXmXf1f5nGyq4xJ4Bpvw== Content-Transfer-Encoding: 8bit X-GMX-UID: L6zQJdEtMydhYDAKpmtlB+djaGRhZtpH X-FuHaFi: 0.57 Cc: Subject: Re: geom_eli, N disks, zfs 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, 23 Sep 2009 08:33:18 -0000 > > Is there any better way to configure a system to encrypt N-disk with > passphrase for using under zfs as write in loader.conf following: > > I use a very short separate partition as the keyfile, decrypt that > once and then use it to decrypt the others. My rc.conf looks like > this: > > geli_autodetach="NO" > geli_devices="ad4s1e ad6 ad8" > geli_ad6_flags="-p -k /dev/ad4s1e.eli" > geli_ad8_flags="-p -k /dev/ad4s1e.eli" > > which is a bit shorter than yours :-) ad4s1 is 5 sectors (i.e. 2560 > bytes) hence ad4s1.eli is 2048 bytes. I initialised it with random > data before encrypting the other discs and I keep a backup of > the 4 sectors elsewhere just in case... > Yes, it will be one solution. But your setup we must mount root-fs first to read rc.conf, then we can attach disk to initialize ZFS volume. Or? But what about zfs-only system with one zpool using all N-disks? I think it will be better if geom_eli remembers first-typed passphrase and tries it for all disks at least ones. In 99% we use the same passphrase for all disks. Don't we? Then we don't have to worry about small 5-sectors 'magic' partition. For my installation I use boot-cd. It has only boot dir with keys and loader.conf like this: geom_eli_load="YES" geli_da0p1_keyfile0_load="YES" geli_da0p1_keyfile0_type="da0p1:geli_keyfile0" geli_da0p1_keyfile0_name="/boot/keys/da0.key" geli_da1p1_keyfile0_load="YES" geli_da1p1_keyfile0_type="da1p1:geli_keyfile0" geli_da1p1_keyfile0_name="/boot/keys/da1.key" .... geli_da9p1_keyfile0_load="YES" geli_da9p1_keyfile0_type="da9p1:geli_keyfile0" geli_da9p1_keyfile0_name="/boot/keys/da9.key" zfs_load="YES" vfs.root.mountfrom="zfs:tank" Yes it is not comfortable my be stupid to type passphrase 10 times :) But with good uptime its bearable. Advantage of that installation is I have to care only about make a copy of boot-cd :) Sorry for my terrible English. Thanks. -- GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT! Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01 From owner-freebsd-geom@FreeBSD.ORG Wed Sep 23 09:59:59 2009 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 DF261106566C for ; Wed, 23 Sep 2009 09:59:59 +0000 (UTC) (envelope-from petefrench@ticketswitch.com) Received: from constantine.ticketswitch.com (constantine.ticketswitch.com [IPv6:2002:57e0:1d4e:1::3]) by mx1.freebsd.org (Postfix) with ESMTP id A8DFA8FC1C for ; Wed, 23 Sep 2009 09:59:59 +0000 (UTC) Received: from dilbert.rattatosk ([10.64.50.6] helo=dilbert.ticketswitch.com) by constantine.ticketswitch.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.69 (FreeBSD)) (envelope-from ) id 1MqOdc-000M9U-Bv; Wed, 23 Sep 2009 10:59:52 +0100 Received: from petefrench by dilbert.ticketswitch.com with local (Exim 4.69 (FreeBSD)) (envelope-from ) id 1MqOdc-000BZU-B0; Wed, 23 Sep 2009 10:59:52 +0100 To: a.n.s.i@gmx.net, freebsd-geom@freebsd.org In-Reply-To: <20090923083313.55390@gmx.net> Message-Id: From: Pete French Date: Wed, 23 Sep 2009 10:59:52 +0100 Cc: Subject: Re: geom_eli, N disks, zfs 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, 23 Sep 2009 09:59:59 -0000 > Yes, it will be one solution. But your setup we must mount root-fs first to read rc.conf, then we can attach disk to initialize ZFS volume. Or? Yes, this is true - but then I only encrypt the drives which have sensetive data on them. My boot drive doesnt come under that heading, though all the data is then mounted from an encrypted zpool. > But what about zfs-only system with one zpool using all N-disks? I havent though about that - I have two zpools, one unencrpted on the boot drive, and then a pair of mirrored encrypted drives for the rest. I never quite saw the mileage in encrypting the boot device really - as long as the actual data is protected then I am happy. -pete. From owner-freebsd-geom@FreeBSD.ORG Wed Sep 23 13:36:41 2009 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 30D42106570D for ; Wed, 23 Sep 2009 13:36:41 +0000 (UTC) (envelope-from a.n.s.i@gmx.net) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.freebsd.org (Postfix) with SMTP id 791E48FC1D for ; Wed, 23 Sep 2009 13:36:40 +0000 (UTC) Received: (qmail 9462 invoked by uid 0); 23 Sep 2009 13:36:39 -0000 Received: from 91.52.152.161 by www071.gmx.net with HTTP; Wed, 23 Sep 2009 15:36:38 +0200 (CEST) Content-Type: text/plain; charset="us-ascii" Date: Wed, 23 Sep 2009 15:36:38 +0200 From: "Evgeny Solovyov" In-Reply-To: Message-ID: <20090923133638.203520@gmx.net> MIME-Version: 1.0 References: To: Pete French , freebsd-geom@freebsd.org X-Authenticated: #30170983 X-Flags: 0001 X-Mailer: WWW-Mail 6100 (Global Message Exchange) X-Priority: 3 X-Provags-ID: V01U2FsdGVkX18omcJT/cso9Z/yikmdsAPogAWrND/MIsQ891E1RQ RgD9oq0LuPpHfVwYzrn1zxYpoNe/bNsirNgQ== Content-Transfer-Encoding: 7bit X-GMX-UID: XhaJfuoGX1V6LFMyoGBy4Hx/SDc4NMzi X-FuHaFi: 0.74 Cc: Subject: Re: geom_eli, N disks, zfs 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, 23 Sep 2009 13:36:41 -0000 > > But what about zfs-only system with one zpool using all N-disks? > > I havent though about that - I have two zpools, one unencrpted on the boot > drive, and then a pair of mirrored encrypted drives for the rest. I never > quite saw the mileage in encrypting the boot device really - as long as > the actual data is protected then I am happy. Ups! we cannot use more then one disk in zfs root pool. Only mirror is supported. No stripe no Raidz. :( Then your configuration is the best for me. -- Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3 - sicherer, schneller und einfacher! http://portal.gmx.net/de/go/chbrowser From owner-freebsd-geom@FreeBSD.ORG Wed Sep 23 17:04:37 2009 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 0E354106566B for ; Wed, 23 Sep 2009 17:04:37 +0000 (UTC) (envelope-from tony@crosswinds.net) Received: from out-mx.crosswinds.net (out-mx1.crosswinds.net [216.18.117.38]) by mx1.freebsd.org (Postfix) with ESMTP id DDEEB8FC19 for ; Wed, 23 Sep 2009 17:04:36 +0000 (UTC) Received: from admin.crosswinds.net (admin.crosswinds.net [8.21.33.2]) by out-mx.crosswinds.net (Postfix) with ESMTP id E8F2D1E8CB9 for ; Wed, 23 Sep 2009 12:49:10 -0400 (EDT) Received: by admin.crosswinds.net (Postfix, from userid 1001) id F06D086176; Wed, 23 Sep 2009 12:54:59 -0400 (EDT) Date: Wed, 23 Sep 2009 12:54:59 -0400 From: Tony Holmes To: freebsd-geom@FreeBSD.org Message-ID: <20090923165459.GA95498@crosswinds.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) Cc: Subject: Mirrors and Stripes and Bad Disks, Oh My 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, 23 Sep 2009 17:04:37 -0000 Hi All, I have a system set up with 4 disks ad4/ad6/ad8/ad10 in a combination of RAID 1 and RAID 10. ad4/ad8 and ad6/ad10 are mirrored (gm0 and gm1 respectively). I have set up mirrored disks as per http://onlamp.com/pub/a/bsd/2005/11/10/FreeBSD_Basics.html I have put 4 partitions on both pairs. The first 4 partitions of each are /, /var, /usr, /tmp. The last partition on both mirror sets are striped and used for /usr/home. Ok, ad8 dropped out - no biggie but I didn't notice it for a couple days. On Resync, ad4 has hard read errors. It rebooted in the process, marking ad8 as the master and ad4 as dirty (when the ad4->ad8 resynch failed!!) ad8 does need to be replaced as well as it has flaked out after a long period of time (could just be power/cable, but I don't trust it). So now I'm up a river a little and could use some guidance. I need to preserve the data on the stripe, swap out ad8 and ad4. I know that geom metadata is indepedant of the partition data. I need to get ad4 back as the master in the mirror without losing actual data. So I was thinking of doing the following - and geom/disk experts please jump in if you see any problem: 1. Bring up the system in single user mode. 2. Destroy gm0 (with ad4 and ad8) 3. Recreate gm0 with ad4 only 4. Break ad10 out of the gm1 mirror pair - this way during recovery I can build another copy of the stripe using ad8/ad10 if I need it. I expect to hit bad sectors on the copy off. I also do expect lost files/data if I have to go this route due to the time that ad8 was not mirrored. Will this give me gm0 with a master ad4? If I am able to recreate the stripe with identical parameters, will the file system be visible. It's a pita and yes I can recover most from backups but not a couple critical files that went on today (of course). TIA for any assistance. -- Tony Holmes Ph: (416) 993-1219 Founder and Senior Systems Architect Crosswinds Internet Communications Inc.