> On Jan 9, 2017, at 8:55 AM, Dan McDonald <[email protected]> wrote:
> 
> An OmniOS user recently pinged us about missing snapshots.
> 
> Turns out, one can remove .zfs/snapshot/<name> and the snapshot deletion DOES 
> NOT APPEAR in the zpool's history.

Interesting question. On one hand, you aren’t running the zpool or zfs command, 
so
does it qualify as a zpool command? On the other hand, illumos has extensive 
auditing
capability so you can track any such non-commands in the audit logs (that few 
people 
even know about and fewer actually use :-)

> 
>> 
>> I wrote, about our mysteriously disappearing snapshots:
>>> [...] For example, is there some way where snapshots can be removed
>>> without that being logged in 'zpool history'?
>> 
>> The answer to my question turns out to be 'yes'. If you do:
>>      rmdir <fs>/.zfs/snapshot/<snapshot-name>
>> 
>> and ZFS accepts this, there is no entry made in 'zpool history'; the
>> snapshot is silently deleted.
> 
> 
> Turns out, it's not the only .zfs/ directory operation that doesn't leave an 
> audit trail:
> 
>> It turns out that you can also make snapshots with mkdir and they
>> don't show up in zpool history either, so probably both issues should
>> be raised and fixed as one.
> 
> In spite of this user's older OmniOS, I see this on OmniOS-bloody, so I know 
> it's not fixed.
> 
> Should I file a bug?  Were I not deep in migration issues (death of Python2.6 
> and BSD Loader), I might have tackled this myself.  I'm happy to file a bug 
> or do whatever is appropriate.

I’m not sure it is a bug per-se, but it is certainly a deficiency that can be 
easily fixed.
 — richard

> 
> Thanks,
> Dan
> 


-------------------------------------------
openzfs-developer
Archives: https://www.listbox.com/member/archive/274414/=now
RSS Feed: https://www.listbox.com/member/archive/rss/274414/28015062-cce53afa
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=28015062&id_secret=28015062-f966d51c
Powered by Listbox: http://www.listbox.com

Reply via email to