From owner-freebsd-questions@freebsd.org Wed Apr 13 13:42:02 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 031DEB0FCD4 for ; Wed, 13 Apr 2016 13:42:01 +0000 (UTC) (envelope-from trond@fagskolen.gjovik.no) Received: from smtp.fagskolen.gjovik.no (smtp.fagskolen.gjovik.no [IPv6:2001:700:1100:1:200:ff:fe00:b]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.fagskolen.gjovik.no", Issuer "Fagskolen i Gj??vik" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 9671B15A1 for ; Wed, 13 Apr 2016 13:42:01 +0000 (UTC) (envelope-from trond@fagskolen.gjovik.no) Received: from mail.fig.ol.no (localhost [127.0.0.1]) by mail.fig.ol.no (8.15.2/8.15.2) with ESMTPS id u3DDfoRP034525 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 13 Apr 2016 15:41:50 +0200 (CEST) (envelope-from trond@fagskolen.gjovik.no) Received: from localhost (trond@localhost) by mail.fig.ol.no (8.15.2/8.15.2/Submit) with ESMTP id u3DDfnmm034522; Wed, 13 Apr 2016 15:41:50 +0200 (CEST) (envelope-from trond@fagskolen.gjovik.no) X-Authentication-Warning: mail.fig.ol.no: trond owned process doing -bs Date: Wed, 13 Apr 2016 15:41:49 +0200 (CEST) From: =?ISO-8859-1?Q?Trond_Endrest=F8l?= Sender: Trond.Endrestol@fagskolen.gjovik.no To: Luciano Mannucci cc: freebsd-questions@freebsd.org Subject: Re: ZFS with errors In-Reply-To: <3qlNxw33PhzRRqR@baobab.bilink.it> Message-ID: References: <3qlNxw33PhzRRqR@baobab.bilink.it> User-Agent: Alpine 2.20 (BSF 67 2015-01-07) Organization: Fagskolen Innlandet OpenPGP: url=http://fig.ol.no/~trond/trond.key MIME-Version: 1.0 X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED, AWL autolearn=ham autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on mail.fig.ol.no Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT X-Content-Filtered-By: Mailman/MimeDel 2.1.21 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Apr 2016 13:42:02 -0000 On Wed, 13 Apr 2016 14:52+0200, Luciano Mannucci wrote: > > Hello all, > > I'm testing ZFS, so please forgive me for my dumb questions... > I have a pool with a zfs filesystem that shows erors. I tried to get > rid of them by removing the files listed by zpool status -v and > restoring without seeing anything different. > I tried with zpool scrub and got only more errors. > My situation now is: > root@vodka:~ # zpool status -v > pool: expool1 > 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://illumos.org/msg/ZFS-8000-8A > scan: scrub repaired 0 in 7h29m with 9 errors on Fri Apr 8 20:09:47 2016 > config: > > NAME STATE READ WRITE CKSUM > expool1 ONLINE 0 0 10 > gptid/8ccea78c-05ef-4a3a-9502-4106ca736958 ONLINE 0 0 8 > gptid/864c27ea-ecd2-4cf9-9450-1afad9065fa1 ONLINE 0 0 0 > diskid/DISK-WD-WCC4M2780110s3 ONLINE 0 0 0 > diskid/DISK-WD-WCC4M2780110s1 ONLINE 0 0 12 > > errors: Permanent errors have been detected in the following files: > > expool1/mirrors:<0x600> > /var/spool/mirrors/mageia/distrib/4/x86_64/media/core/release/kde4-style-bespin-icons-0.1-0.1649svn.1.mga4.noarch.rpm > /var/spool/mirrors/mageia/distrib/4/x86_64/media/core/release/lilypond-doc-2.18.0-1.mga4.noarch.rpm > /var/spool/mirrors/mageia/distrib/4/x86_64/media/core/updates/wesnoth-data-1.10.7-2.1.mga4.noarch.rpm > expool1/mirrors:<0x6dba> > root@vodka:~ # > > > is there a way to see which "9 errors" did scrub find? > what I'm I suposed to do to clear the situation? Try: zpool clear expool1 zpool scrub expool1 Let the scrub finish. If the same three files reappears, then refetch those files. The lines ending with a hexadecimal number represents deleted files, as far as I know. Once you have mended your files, run "clear" and "scrub" one more time. -- +-------------------------------+------------------------------------+ | Vennlig hilsen, | Best regards, | | Trond Endrestøl, | Trond Endrestøl, | | IT-ansvarlig, | System administrator, | | Fagskolen Innlandet, | Gjøvik Technical College, Norway, | | tlf. mob. 952 62 567, | Cellular...: +47 952 62 567, | | sentralbord 61 14 54 00. | Switchboard: +47 61 14 54 00. | +-------------------------------+------------------------------------+ From owner-freebsd-questions@freebsd.org Wed Apr 13 13:56:30 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 20C33B0E0F4 for ; Wed, 13 Apr 2016 13:56:30 +0000 (UTC) (envelope-from trond@fagskolen.gjovik.no) Received: from smtp.fagskolen.gjovik.no (smtp.fagskolen.gjovik.no [IPv6:2001:700:1100:1:200:ff:fe00:b]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.fagskolen.gjovik.no", Issuer "Fagskolen i Gj??vik" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id BFFDB1BB3 for ; Wed, 13 Apr 2016 13:56:29 +0000 (UTC) (envelope-from trond@fagskolen.gjovik.no) Received: from mail.fig.ol.no (localhost [127.0.0.1]) by mail.fig.ol.no (8.15.2/8.15.2) with ESMTPS id u3DDuKGZ034645 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 13 Apr 2016 15:56:21 +0200 (CEST) (envelope-from trond@fagskolen.gjovik.no) Received: from localhost (trond@localhost) by mail.fig.ol.no (8.15.2/8.15.2/Submit) with ESMTP id u3DDuKAD034642; Wed, 13 Apr 2016 15:56:20 +0200 (CEST) (envelope-from trond@fagskolen.gjovik.no) X-Authentication-Warning: mail.fig.ol.no: trond owned process doing -bs Date: Wed, 13 Apr 2016 15:56:20 +0200 (CEST) From: =?ISO-8859-1?Q?Trond_Endrest=F8l?= Sender: Trond.Endrestol@fagskolen.gjovik.no To: Luciano Mannucci cc: freebsd-questions@freebsd.org Subject: Re: ZFS with errors In-Reply-To: Message-ID: References: <3qlNxw33PhzRRqR@baobab.bilink.it> User-Agent: Alpine 2.20 (BSF 67 2015-01-07) Organization: Fagskolen Innlandet OpenPGP: url=http://fig.ol.no/~trond/trond.key MIME-Version: 1.0 X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED, AWL autolearn=ham autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on mail.fig.ol.no Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT X-Content-Filtered-By: Mailman/MimeDel 2.1.21 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Apr 2016 13:56:30 -0000 On Wed, 13 Apr 2016 15:41+0200, Trond Endrestøl wrote: > On Wed, 13 Apr 2016 14:52+0200, Luciano Mannucci wrote: > > > > > Hello all, > > > > I'm testing ZFS, so please forgive me for my dumb questions... > > I have a pool with a zfs filesystem that shows erors. I tried to get > > rid of them by removing the files listed by zpool status -v and > > restoring without seeing anything different. > > I tried with zpool scrub and got only more errors. > > My situation now is: > > root@vodka:~ # zpool status -v > > pool: expool1 > > 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://illumos.org/msg/ZFS-8000-8A > > scan: scrub repaired 0 in 7h29m with 9 errors on Fri Apr 8 20:09:47 2016 > > config: > > > > NAME STATE READ WRITE CKSUM > > expool1 ONLINE 0 0 10 > > gptid/8ccea78c-05ef-4a3a-9502-4106ca736958 ONLINE 0 0 8 > > gptid/864c27ea-ecd2-4cf9-9450-1afad9065fa1 ONLINE 0 0 0 > > diskid/DISK-WD-WCC4M2780110s3 ONLINE 0 0 0 > > diskid/DISK-WD-WCC4M2780110s1 ONLINE 0 0 12 > > > > errors: Permanent errors have been detected in the following files: > > > > expool1/mirrors:<0x600> > > /var/spool/mirrors/mageia/distrib/4/x86_64/media/core/release/kde4-style-bespin-icons-0.1-0.1649svn.1.mga4.noarch.rpm > > /var/spool/mirrors/mageia/distrib/4/x86_64/media/core/release/lilypond-doc-2.18.0-1.mga4.noarch.rpm > > /var/spool/mirrors/mageia/distrib/4/x86_64/media/core/updates/wesnoth-data-1.10.7-2.1.mga4.noarch.rpm > > expool1/mirrors:<0x6dba> > > root@vodka:~ # > > > > > > is there a way to see which "9 errors" did scrub find? > > what I'm I suposed to do to clear the situation? > > Try: > > zpool clear expool1 > zpool scrub expool1 > > Let the scrub finish. > > If the same three files reappears, then refetch those files. > The lines ending with a hexadecimal number represents deleted files, > as far as I know. > > Once you have mended your files, run "clear" and "scrub" one more > time. I noticed you have four disks in a striped configuration, aka RAID 0. There's no redundancy in this pool, making it hard for ZFS to automatically repair your files. Maybe you should destroy your pool and recreate it using a mirrored configuration. Maybe, mirror disks 1 & 2, and disks 3 & 4, e.g. zpool create expool1 mirror gptid/8ccea78c-05ef-4a3a-9502-4106ca736958 gptid/864c27ea-ecd2-4cf9-9450-1afad9065fa1 mirror diskid/DISK-WD-WCC4M2780110s3 diskid/DISK-WD-WCC4M2780110s1 ^^^^^^ ^^^^^^ Some proper disk labelling and setting the kern.geom.label.gptid.enable tunable to 0 in /etc/loader.conf might make it easier for you to identify each disk. -- +-------------------------------+------------------------------------+ | Vennlig hilsen, | Best regards, | | Trond Endrestøl, | Trond Endrestøl, | | IT-ansvarlig, | System administrator, | | Fagskolen Innlandet, | Gjøvik Technical College, Norway, | | tlf. mob. 952 62 567, | Cellular...: +47 952 62 567, | | sentralbord 61 14 54 00. | Switchboard: +47 61 14 54 00. | +-------------------------------+------------------------------------+ From owner-freebsd-questions@freebsd.org Wed Apr 13 14:22:53 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DC2DAB0EE65 for ; Wed, 13 Apr 2016 14:22:53 +0000 (UTC) (envelope-from luciano@vespaperitivo.it) Received: from baobab.bilink.net (baobab.bilink.net [212.45.144.44]) by mx1.freebsd.org (Postfix) with ESMTP id A3D801B9F for ; Wed, 13 Apr 2016 14:22:53 +0000 (UTC) (envelope-from luciano@vespaperitivo.it) Received: from localhost (localhost [127.0.0.1]) by baobab.bilink.it (Postfix) with ESMTP id 3qlQxr3mqHzRRqR for ; Wed, 13 Apr 2016 16:22:56 +0200 (CEST) X-Virus-Scanned: amavisd-new at mcs.it Received: from baobab.bilink.net ([127.0.0.1]) by localhost (baobab.mcs.it [127.0.0.1]) (amavisd-new, port 11027) with ESMTP id nhfB4zgCUJ+U for ; Wed, 13 Apr 2016 16:22:56 +0200 (CEST) Received: from hermes.mcs.it (hermes.mcs.it [192.168.132.21]) by baobab.bilink.it (Postfix) with ESMTP id 3qlQxr34YhzRRqQ for ; Wed, 13 Apr 2016 16:22:56 +0200 (CEST) Received: from mordeus (unknown [192.168.45.6]) by hermes.mcs.it (Postfix) with ESMTP id A8D681B7580 for ; Wed, 13 Apr 2016 16:22:51 +0200 (CEST) Date: Wed, 13 Apr 2016 16:22:51 +0200 From: Luciano Mannucci To: freebsd-questions@freebsd.org Subject: Re: ZFS with errors In-Reply-To: References: <3qlNxw33PhzRRqR@baobab.bilink.it> X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.29; amd64-portbld-freebsd10.1) X-Face: 4qPv4GNcD; h<7Q/sK>+GqF4=CR@KmnPkSmwd+#%\F`4yjKO3"C]p'z=(oWRnsYBQGM\5g:4skqQY0NnV'dM:Mm:^/_+I@a"; [-s=ogufdF"9ggQ'=y MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Message-Id: <3qlQxr34YhzRRqQ@baobab.bilink.it> X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Apr 2016 14:22:54 -0000 On Wed, 13 Apr 2016 15:56:20 +0200 (CEST) Trond Endrest=F8l wrote: > There's no redundancy in this pool, making it hard for ZFS to=20 > automatically repair your files. >=20 > Maybe you should destroy your pool and recreate it using a mirrored=20 > configuration. Maybe, mirror disks 1 & 2, and disks 3 & 4, e.g. They are of different sizes. I don't know if I can add redundancy without loosing the bits that exeed the smallest one... I'm a zfs newbie, just experimenting by now... :) Thanks anyway, Luciano. --=20 /"\ /Via A. Salaino, 7 - 20144 Milano (Italy) \ / ASCII RIBBON CAMPAIGN / PHONE : +39 2 485781 FAX: +39 2 48578250 X AGAINST HTML MAIL / E-MAIL: posthamster@sublink.sublink.ORG / \ AND POSTINGS / WWW: http://www.lesassaie.IT/