From owner-freebsd-questions@freebsd.org Fri Oct 12 13:52:25 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 0578510BED5D for ; Fri, 12 Oct 2018 13:52:25 +0000 (UTC) (envelope-from nik@dirk.psychedelicpirate.com) Received: from dirk.psychedelicpirate.com (mail.nielsk.de [213.73.114.165]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9A617839B5 for ; Fri, 12 Oct 2018 13:52:24 +0000 (UTC) (envelope-from nik@dirk.psychedelicpirate.com) Received: from sam.interdotnet.de ([213.73.110.159] helo=localhost) by dirk.psychedelicpirate.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1gAxrS-0003ue-Kn for freebsd-questions@freebsd.org; Fri, 12 Oct 2018 15:52:14 +0200 Date: Fri, 12 Oct 2018 15:52:14 +0200 From: Niels Kobschaetzki To: freebsd-questions@freebsd.org Subject: Ignoring/deleting/whatever data errors in zpool Message-ID: <20181012135214.dhesksx2t2tugsur@sam> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline User-Agent: NeoMutt/20180716 Sender: nik@dirk.psychedelicpirate.com 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 13:52:25 -0000 Hi, 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. Is there an easy way to purge those files without destroying snapshots and deleting them by hand? I do not even get the output of a zpool status -v poolname redirected to a file, so that I could use a script (besides that snapshots are readonly). What is the way to go here? I don't want to do a restore, I accepted the loss and want the files gone. Niels