<div dir="ltr">To be honest, I'd rather this was addressed upstream with a suitable modification of the "zpool trim" command; either by ignoring this case by default (I believe this was the behavior in ZoL <2.0) or by adding a "--quiet" flag or similar.<div><br></div><div>'zpool status -t pool' does report whether TRIM is supported for each vdev, but the effort of parsing that in the cron script seems excessive. Grepping out that specific error message would probably be okay as an interim workaround.</div><div><div><br></div><div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div>Colm</div></blockquote></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 11 Feb 2021 at 10:03, Petter Reinholdtsen <<a href="mailto:pere@hungry.com">pere@hungry.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">[Christoph Biedl]<br>
> Please find a solution for this - preferably by checking beforehand<br>
> whether trimming is possible. Or if all else fails, by muting stderr<br>
> from the "zpool trim" command. Although that might hide serious errors<br>
> as well.<br>
<br>
Good point.  This can fill up the disk on a server where no-one check<br>
the email.<br>
<br>
Any idea how to figure out if trimming is possible/useful?<br>
<br>
--<br>
Happy hacking<br>
Petter Reinholdtsen<br>
<br>
_______________________________________________<br>
Pkg-zfsonlinux-devel mailing list<br>
<a href="mailto:Pkg-zfsonlinux-devel@alioth-lists.debian.net" target="_blank">Pkg-zfsonlinux-devel@alioth-lists.debian.net</a><br>
<a href="https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-zfsonlinux-devel" rel="noreferrer" target="_blank">https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-zfsonlinux-devel</a></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><span style="color:rgb(153,153,153);font-size:x-small">Colm Buckley | </span><a href="mailto:colm@tuatha.org" style="font-size:x-small" target="_blank">colm@tuatha.org</a><div><br></div></div></div></div></div>