Re: [ZFS] files in a weird situtation

2016-12-18 Thread Eugene M. Zheganin
Hi, On 18.12.2016 02:01, David Marec wrote: > > A pass with `zfs scrub` didn't help. > > Any clue is welcome. What's that `dmu_bonus_hold` stands for ? > Just out of the curiosity - is it on a redundant pool and does the 'zpool status' report any error ? Eugene. __

Re: [ZFS] files in a weird situtation

2016-12-18 Thread Steven Hartland
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] > >

Re: [ZFS] files in a weird situtation

2016-12-18 Thread Larry Rosenman
On 2016-12-18 11:16, Adam Vande More wrote: On Sun, Dec 18, 2016 at 2:30 AM, David Marec wrote: It fails on «No such file or directory». I can't even replicate this portion of things. Running it under truss might provide more insight into what is happening. This file missing, not much

Re: [ZFS] files in a weird situtation

2016-12-18 Thread Adam Vande More
On Sun, Dec 18, 2016 at 2:30 AM, David Marec wrote: > It fails on «No such file or directory». > I can't even replicate this portion of things. Running it under truss might provide more insight into what is happening. > > This file missing, not much works. > I have installed a copy into `/usr

Re: [ZFS] files in a weird situtation

2016-12-18 Thread Gary Palmer
On Sat, Dec 17, 2016 at 11:25:41PM +0100, David Marec wrote: > On 17.12.2016 22:15, Brandon Allbery wrote: > > > > You have a directory entry pointing at a freed inode (or zfs equivalent). > > ZFS may have mapped this inode that points to nowhere. That makes sense. > > In this case, what should

Re: [ZFS] files in a weird situtation

2016-12-18 Thread Miroslav Lachman
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 ha

Re: [ZFS] files in a weird situtation

2016-12-18 Thread David Marec
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

Re: [ZFS] files in a weird situtation

2016-12-17 Thread Adam Vande More
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

Re: [ZFS] files in a weird situtation

2016-12-17 Thread Brandon Allbery
On Sat, Dec 17, 2016 at 10:25 PM, David Marec wrote: > In this case, what should be the best solution to clean this up ? > > As I said, as far scrubbing the pool didn't show any error, it didn't > solve the issue. > That I don't know. With a nore Unix-like filesystem I'd run fsck; if scrubbing t

Re: [ZFS] files in a weird situtation

2016-12-17 Thread David Marec
On 17.12.2016 22:15, Brandon Allbery wrote: You have a directory entry pointing at a freed inode (or zfs equivalent). ZFS may have mapped this inode that points to nowhere. That makes sense. In this case, what should be the best solution to clean this up ? As I said, as far scrubbing the po

Re: [ZFS] files in a weird situtation

2016-12-17 Thread Brandon Allbery
On Sat, Dec 17, 2016 at 9:01 PM, David Marec wrote: > > 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:

[ZFS] files in a weird situtation

2016-12-17 Thread David Marec
[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