Re: Running thin_trim before activating a thin pool

Demi Marie Obenour <[email protected]>
Newsgroups gmane.linux.lvm.general
Message-ID <YfgAOeqHtutU91rI@itl-email>
On Mon, Jan 31, 2022 at 12:02:23PM +0100, Gionatan Danti wrote:
> Il 2022-01-29 18:45 Demi Marie Obenour ha scritto:
> > Is it possible to configure LVM2 so that it runs thin_trim before it
> > activates a thin pool?  Qubes OS currently runs blkdiscard on every thin
> > volume before deleting it, which is slow and unreliable.  Would running
> > thin_trim during system startup provide a better alternative?
> 
> I think that, if anything, it would be worse: a long discard during boot can
> be problematic, even leading to timeout on starting other services.
> After all, blkdiscard should be faster then something done at higher level.

thin_trim is a userspace tool that works on an entire thin pool, and I
suspect it may be significantly faster than blkdiscard of an individual
thin volume.  That said, what I would *really* like is something
equivalent to fstrim for thin volumes: a tool that works asynchronously,
in the background, without disrupting concurrent I/O.

> -- 
> Danti Gionatan
> Supporto Tecnico
> Assyoma S.r.l. - www.assyoma.it
> email: [email protected] - [email protected]
> GPG public key ID: FF5F32A8

FYI, you might want to specify a full fingerprint here; short key IDs
are highly vulnerable to collision and preimage attacks.

-- 
Sincerely,
Demi Marie Obenour (she/her/hers)
Invisible Things Lab

_______________________________________________
linux-lvm mailing list
[email protected]
https://listman.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEdodNnxM2uiJZBxxxsoi1X/+cIsEFAmH4ADkACgkQsoi1X/+c
IsFphBAAtuhjBQ/iJdtQuaIE2C1n9rVm6fihp5h5QA74LAFRoooOWAHgXIdSPbWS
+MixJ/xqQdX6WzgRTiWVqtWqnptwfDLRJnN1jv8ZcTRULQZfcxTmq7YrmTLRTgh/
wlBbwGGEXNKDthvplSp7+i4byImgelhM7zaYsDMqdstp8Q5l+K1jErwwcoAArqYJ
U8gxu4OBv77QM31N1FMLa0lmQcq4A6m2slzdYyz2MOzPMEZEN1KH5fba4AGjPC/y
7xKPfQpdnOZiqM7QqKBQoVsd4ZYlafiep3VFxYce7ke95guVE2nHzZcMU5iEetqQ
YR/ycL71ZdraORIbZ9gAzAg6uTrBYEUxjL7VSQMmPafAq0GYJjkXK+47kQ9NRq6B
kcNgrhA22hFa1lxPrJEUzDTYl3oR5NdBMM2io4h7Dh3NocvS//AXlrn79GP26Fnu
ZqppasmAy1LnUzFYxiiIZ4+X6yvTleIPgGyjNUgWPp/adRawUWOibMrPW51E+fgU
Una9IcxRmnTfiG/Og4Aua5ar7d30+q6oYcIGmNFPLA0FxPJ7h4UVOwm42Jzd9c95
9dy/hx4N4f/kuEW3L+TDDbY+6WwIlSd08yeTiVo4YyRUCdIv2Mvo+iFF2o6FZIKe
eefk6qLZ7+gviL+P6GIZifzpy0M3BTjWs2PEfiQI6g+8vtAYVtI=
=p/t/
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.