[zfs-discuss] how to clear zpool history from useless messages?
durval.menezes at gmail.com
Mon Dec 4 06:40:31 EST 2017
On Mon, Dec 4, 2017 at 4:24 AM, Gena Makhomed via zfs-discuss <
zfs-discuss at list.zfsonlinux.org> wrote:
> Hello, All!
> I use snapshot automation tool with zfs,
> snaphots are created and destroyed every hour.
> and zpool history grow unlimited in size:
> # zpool history -l | wc -l
> # zpool history -il | wc -l
> how to clear zpool history from useless messages
> zfs snapshot / zfs destroy / zfs receive / zfs send ?
As long as I know (and if someone else knows better, please send me a
holler), you don't: zpool history is perennial, and it records (some) stuff
even when you import the pool in read-only mode.
You can always "egrep -v" the output to filter the useless messages, but I
suspect you now that already...
> Best regards,
> zfs-discuss mailing list
> zfs-discuss at list.zfsonlinux.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the zfs-discuss