From owner-freebsd-stable@FreeBSD.ORG Tue Feb 14 18:08:38 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 752771065679 for ; Tue, 14 Feb 2012 18:08:38 +0000 (UTC) (envelope-from arno@heho.snv.jussieu.fr) Received: from shiva.jussieu.fr (shiva.jussieu.fr [134.157.0.129]) by mx1.freebsd.org (Postfix) with ESMTP id 1FFB98FC1B for ; Tue, 14 Feb 2012 18:08:37 +0000 (UTC) Received: from heho.snv.jussieu.fr (heho.snv.jussieu.fr [134.157.184.22]) by shiva.jussieu.fr (8.14.4/jtpda-5.4) with ESMTP id q1EI8Aec005270 ; Tue, 14 Feb 2012 19:08:23 +0100 (CET) X-Ids: 168 Received: from heho.snv.jussieu.fr (localhost [127.0.0.1]) by heho.snv.jussieu.fr (8.14.3/8.14.3) with ESMTP id q1EI87U1084432; Tue, 14 Feb 2012 19:08:07 +0100 (CET) (envelope-from arno@heho.snv.jussieu.fr) Received: (from arno@localhost) by heho.snv.jussieu.fr (8.14.3/8.14.3/Submit) id q1EI87aV084429; Tue, 14 Feb 2012 19:08:07 +0100 (CET) (envelope-from arno) To: Lystopad Aleksandr From: "Arno J. Klaassen" References: <20120214044234.GT98031@laa.zp.ua> Date: Tue, 14 Feb 2012 19:08:07 +0100 In-Reply-To: <20120214044234.GT98031@laa.zp.ua> (Lystopad Aleksandr's message of "Tue\, 14 Feb 2012 08\:42\:34 +0400") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Miltered: at jchkmail.jussieu.fr with ID 4F3AA30A.000 by Joe's j-chkmail (http : // j-chkmail dot ensmp dot fr)! X-j-chkmail-Enveloppe: 4F3AA30A.000/134.157.184.22/heho.snv.jussieu.fr/heho.snv.jussieu.fr/ Cc: freebsd-stable@freebsd.org Subject: Re: 9-stable : geli + one-disk ZFS fails X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Feb 2012 18:08:38 -0000 Hallo Aleksandr, > Hello, Arno J. Klaassen! > > On Sat, Feb 11, 2012 at 04:53:10PM +0100 > arno@heho.snv.jussieu.fr wrote about "9-stable : geli + one-disk ZFS fails": >> >> Hello, >> >> >> I finally decided to 'play' a bit with ZFS on a notebook, some years >> old, but I installed a brand new disk and memtest passes OK. >> >> I installed base+ports on partition 2, using 'classical' UFS. >> >> I crypted partition 3 and created a single zpool on it containing >> 4 Z-"file-systems" : >> >> [root@cc ~]# zfs list >> NAME USED AVAIL REFER MOUNTPOINT >> zfiles 10.7G 377G 152K /zfiles >> zfiles/home 10.6G 377G 119M /zfiles/home >> zfiles/home/arno 10.5G 377G 2.35G /zfiles/home/arno >> zfiles/home/arno/.priv 192K 377G 192K /zfiles/home/arno/.priv >> zfiles/home/arno/.scito 8.18G 377G 8.18G /zfiles/home/arno/.scito >> >> >> I export the ZFS's via nfs and rsynced on the other machine some backup >> of my current note-book (geli + UFS, (almost) same 9-stable version, no >> problem) to the ZFS's. >> >> >> Quite fast, I see on the notebook : >> >> >> [root@cc /usr/temp]# zpool status -v >> pool: zfiles >> state: ONLINE >> status: One or more devices has experienced an error resulting in data >> corruption. Applications may be affected. >> action: Restore the file in question if possible. Otherwise restore the >> entire pool from backup. >> see: http://www.sun.com/msg/ZFS-8000-8A >> scan: scrub repaired 0 in 0h1m with 11 errors on Sat Feb 11 14:55:34 >> 2012 >> config: >> >> NAME STATE READ WRITE CKSUM >> zfiles ONLINE 0 0 11 >> ada0s3.eli ONLINE 0 0 23 >> >> errors: Permanent errors have been detected in the following files: >> >> /zfiles/home/arno/.scito/contrib/XNAT.tar >> [root@cc /usr/temp]# md5 /zfiles/home/arno/.scito/contrib/XNAT.tar >> md5: /zfiles/home/arno/.scito/contrib/XNAT.tar: Input/output error >> [root@cc /usr/temp]# >> >> >> As said, memtest is OK, nothing is logged to the console, UFS on the >> same disk works OK (I did some tests copying and comparing random data) >> and smartctl as well seems to trust the disk : >> >> SMART Self-test log structure revision number 1 >> Num Test_Description Status Remaining LifeTime(hours) >> # 1 Extended offline Completed without error 00% 388 >> # 2 Short offline Completed without error 00% 387 >> >> >> Am I doing something wrong and/or let me know what I could provide as >> extra info to try to solve this (dmesg.boot at the end of this mail). >> >> Thanx a lot in advance, >> >> best, Arno > > Arno, you forgot to say how are you create geli partiotion. > It is important. geli init /dev/ada0s3 (should I have used ' -s 4096 ' ???) I added later : geli attach -k /tmp/ifmemoryfails.key1 -p /dev/ada0s3 In fact, on my regular laptop on which I now use UFS on top of GELI I use /dev/ada0s3f, not the whole partition .... Hope this helps ;-) thanx, best, Arno