From owner-freebsd-stable@freebsd.org Sun Dec 18 12:40:53 2016 Return-Path: Delivered-To: freebsd-stable@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 3ED97C8514F for ; Sun, 18 Dec 2016 12:40:53 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) (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 06886771 for ; Sun, 18 Dec 2016 12:40:52 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (localhost [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id C0DB328422; Sun, 18 Dec 2016 13:40:50 +0100 (CET) Received: from illbsd.quip.test (ip-86-49-16-209.net.upcbroadband.cz [86.49.16.209]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id 16B7E28417; Sun, 18 Dec 2016 13:40:50 +0100 (CET) Subject: Re: [ZFS] files in a weird situtation To: David Marec , freebsd-stable References: <914db6e5-2d8d-15b4-ee96-bc267ce1dbda@davenulle.org> <61624b8e-9917-1129-113a-4398077005f7@davenulle.org> From: Miroslav Lachman <000.fbsd@quip.cz> Message-ID: <585683D1.30701@quip.cz> Date: Sun, 18 Dec 2016 13:40:49 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:42.0) Gecko/20100101 Firefox/42.0 SeaMonkey/2.39 MIME-Version: 1.0 In-Reply-To: <61624b8e-9917-1129-113a-4398077005f7@davenulle.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Dec 2016 12:40:53 -0000 David Marec wrote on 2016/12/18 09:30: > On 18.12.2016 01:38, Adam Vande More wrote: >> >> I am unable to understand what your intent is here. If you wish to >> delete it, you can do: >> >> find . -inum 10552574 -exec rm {} \; > > It fails on «No such file or directory». > > This file missing, not much works. > I have installed a copy into `/usr/lib` to make the system run again. > > So, I can't install a new world: `install -C` fails in the same way. Then you can boot from recovery media like mfsBSD and unpack good known distribution from kernel.txz and base.txz (or do make installkernel && make installworld from NFS mounted /usr/src and /usr/obj). But if dataset in question is somehow corrupted maybe you need to make different dataset, extract all files, remove old dataset and rename this new dataset. If this is pool error than it will be better to scratch it and start again from backups. Miroslav Lachman