From owner-freebsd-stable@freebsd.org Sun Dec 18 18:09:09 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 9FB5AC85ED3 for ; Sun, 18 Dec 2016 18:09:09 +0000 (UTC) (envelope-from steven@multiplay.co.uk) Received: from mail-it0-x22d.google.com (mail-it0-x22d.google.com [IPv6:2607:f8b0:4001:c0b::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6E95A1FA4 for ; Sun, 18 Dec 2016 18:09:09 +0000 (UTC) (envelope-from steven@multiplay.co.uk) Received: by mail-it0-x22d.google.com with SMTP id y23so64493830itc.0 for ; Sun, 18 Dec 2016 10:09:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=multiplay-co-uk.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=oJSSHuMKFuvxQhdOkzKl9jQxY8X1m/XvcQLLdR/JaRo=; b=FQ4iG8h2ju4efGNQEjZVjZOfeRax7TJhp6jwlnDrqZsQYZkM8Qoxq+iUvbkvrp85Vq Usm9Fpg2sNX+URJ5abuISCCEI3AKZOxFEkRwFXWK7hLXvgQOVvmflxP5td1tSaXu6TAo Gy4YdtShBJ4hxD2wEsXnrLVAP8q+CVELhzBDxgTiefhsJ4u9ZXPv+CBmFuP2GE0PLuco TaptTTBVeFGKhO+Xfkh1wYbl5LA1a2SnJRVBiyGxd50YcOKmL+RXjMgewvf8pW240dYZ zt9QwstxGpkxWxoMClyFosQ45CKm06CtuZpYmNK8w9wb9qYARRmnJlm7a4JSP9b2HrLD /zzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=oJSSHuMKFuvxQhdOkzKl9jQxY8X1m/XvcQLLdR/JaRo=; b=WdUoCyW3Rcma3/AZNJLiM7E2hLFM/+RJrNSZ0uRp4ISO11qh49XNdTVyPUMGgT+kFn YnNnYj0yOa8JkEEuRzA3UE2D4jL/3Z3bAPZhgjDz9ykobpVdrLhNEgT+jHZLE6rktKKs yhyjjvxeITQ52CAM9ev1h75cRhy0Oxc7hx4nNXTgkzxsw6tgrpf7oHzZPfYOQeXek20B dLtETrXVRm8gTpaPJRKtcoA1JbLPu/OdEfRkcCYyazFe0u8s8s4v4Y2DLd289vLwzpXn jdfeSKmVdsSFB2QE4Ot2g+IdEpAZxxo2oZfV9UX4mjTQW8+mr557wT68kk9+9cl7BJ/I 6yfQ== X-Gm-Message-State: AKaTC01l5tvH3WsWCEy5jr/4S38AxT6OlMTdDHIOT9FD4I4Uag//HEhomUsbMAEoaaKgvy46/sKuAX3N/SjLkREn X-Received: by 10.36.117.138 with SMTP id y132mr11341284itc.42.1482084547335; Sun, 18 Dec 2016 10:09:07 -0800 (PST) MIME-Version: 1.0 Received: by 10.36.203.6 with HTTP; Sun, 18 Dec 2016 10:08:36 -0800 (PST) In-Reply-To: References: <914db6e5-2d8d-15b4-ee96-bc267ce1dbda@davenulle.org> From: Steven Hartland Date: Sun, 18 Dec 2016 18:08:36 +0000 Message-ID: Subject: Re: [ZFS] files in a weird situtation To: Adam Vande More Cc: David Marec , freebsd-stable Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 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 18:09:09 -0000 find also has -delete which avoids the exec overhead, not much of an impact here but worth noting if you're removing lots. On 18 December 2016 at 00:38, Adam Vande More wrote: > On Sat, Dec 17, 2016 at 3:01 PM, David Marec > wrote: > > > [I had first posted onto the Forum about this issue] > > > > Two months ago, > > > > - next to a call to |`||delete-old-libs`| or `install world`, I don't > > really know - > > > > my box that is following FreeBSD-11 Stable ran into a weird situation. > > > > A set of files, especially `/lib/libjail.so.1` are in both states > > `existing` and `not existing`: > > > > I means: > > > > david:~>cp ~david/libjail.so.1 /lib > > cp: /lib/libjail.so.1: File exists > > > > But: > > > > david:~>ls /lib/libjail.so.1 > > ls: /lib/libjail.so.1: No such file or directory > > david:~>find /lib -name "libjail.so.1" -print > > /lib/libjail.so.1 > > david:~>find /lib -name "libjail.so.1" -ls > > find: /lib/libjail.so.1: No such file or directory > > > > With deeper investigation, the file is in fact mapped to an `inode`: > > > > root@dmarec:~ # ls -di /lib > > 13 /lib > > root@dmarec:~ # zdb -dddd zroot/ 13 | grep libjail.so.1 > > libjail.so.1 = 10552574 (type: Regular File) > > > > Which fails with `zdb` on: > > > > root@dmarec:~ # zdb -dddd zroot/ 10552574 > > Dataset zroot [ZPL], ID 21, cr_txg 1, 114G, 2570002 objects, > rootbp > > DVA[0]=<0:b97d6ea00:200> DVA[1]=<0:1c212b0400:200> [L0 DMU > objset] > > fletcher4 lz4 LE contiguous unique double size=800L/200P > > birth=3852240L/3852240P fill=2570002 > > cksum=17b78fb7e4:7c87a526a07:16251edfaae60:2ce0c5734ccf2f > > > > Object lvl iblk dblk dsize lsize %full type > > zdb: dmu_bonus_hold(10552574) failed, errno 2 > > > > > > `stat (2)` returns ENOENT when checking for the file: > > david:~>truss stat -L /lib/libjail.so.1 > > ... > > stat("/lib/libjail.so.1",0x7fffffffe7e8) ERR#2 'No such > > file or > > directory' david:~>truss stat -L /lib/libjail.so.1 > > > > A pass with `zfs scrub` didn't help. > > > > Any clue is welcome. What's that `dmu_bonus_hold` stands for ? > > > > I am unable to understand what your intent is here. If you wish to delete > it, you can do: > > find . -inum 10552574 -exec rm {} \; > > -- > Adam > _______________________________________________ > freebsd-stable@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" >