From owner-freebsd-questions@freebsd.org Fri Oct 12 14:04:24 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 210D410BF5B0 for ; Fri, 12 Oct 2018 14:04:24 +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 8EFEA8423A for ; Fri, 12 Oct 2018 14:04:23 +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 w9CE4D5H012120 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Fri, 12 Oct 2018 16:04:13 +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 w9CE4DUV012117 for ; Fri, 12 Oct 2018 16:04:13 +0200 (CEST) (envelope-from trond@fagskolen.gjovik.no) X-Authentication-Warning: mail.fig.ol.no: trond owned process doing -bs Date: Fri, 12 Oct 2018 16:04:13 +0200 (CEST) From: =?ISO-8859-1?Q?Trond_Endrest=F8l?= Sender: Trond.Endrestol@fagskolen.gjovik.no To: FreeBSD questions Subject: Re: Ignoring/deleting/whatever data errors in zpool In-Reply-To: <20181012135214.dhesksx2t2tugsur@sam> Message-ID: References: <20181012135214.dhesksx2t2tugsur@sam> User-Agent: Alpine 2.21.9999 (BSF 287 2018-06-16) Organization: Fagskolen Innlandet OpenPGP: url=http://fig.ol.no/~trond/trond.key MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.fig.ol.no X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Oct 2018 14:04:24 -0000 On Fri, 12 Oct 2018 15:52+0200, Niels Kobschaetzki wrote: > I have a virtual machine that has two virtual disks with a ZFS on > it. The storage cluster beneath the virtual disks had severe > problems and now I have on one disk a pool with nearly 3000 data > errors. I don't care about those data errors and would like to have > those files somehow removed from my system, so that the pool becomes > healthy again. I did two scrubs and there are still 2720 errors or > so. Maybe the underlaying storage system is unable to maintain the corrections done by ZFS. > Is there an easy way to purge those files without destroying > snapshots and deleting them by hand? The snapshots themselves may still reference the affected files. Thus, some, if not all, of the snapshots must be destroyed first. > What is the way to go here? I don't want to do a restore, I accepted the > loss and want the files gone. Maybe it's time to abandon the pool altogether. Fix that storage system and recreate everything from scratch. You have my sympathy, data loss is never funny even if the system is expendible. -- Trond.