[Pkg-zfsonlinux-devel] Bug#982505: Bug#982505: Bug#982505: zfsutils-linux: trim cronjob triggers "cannot trim" e-mails on spinning rust
Colm Buckley
colm at tuatha.org
Thu Feb 11 14:41:01 GMT 2021
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.
'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.
Colm
On Thu, 11 Feb 2021 at 10:03, Petter Reinholdtsen <pere at hungry.com> wrote:
> [Christoph Biedl]
> > Please find a solution for this - preferably by checking beforehand
> > whether trimming is possible. Or if all else fails, by muting stderr
> > from the "zpool trim" command. Although that might hide serious errors
> > as well.
>
> Good point. This can fill up the disk on a server where no-one check
> the email.
>
> Any idea how to figure out if trimming is possible/useful?
>
> --
> Happy hacking
> Petter Reinholdtsen
>
> _______________________________________________
> Pkg-zfsonlinux-devel mailing list
> Pkg-zfsonlinux-devel at alioth-lists.debian.net
>
> https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-zfsonlinux-devel
--
Colm Buckley | colm at tuatha.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-zfsonlinux-devel/attachments/20210211/9a81e902/attachment.html>
More information about the Pkg-zfsonlinux-devel
mailing list