On Friday, March 29, 2019 at 10:39:36 PM UTC-4, Chris Laprise wrote:
> In 4.0 its supposed to be automatic. However, there is some flaw with 
> Linux discard mount option and it may still leave some fraction of 
> blocks un-trimmed. The good news is now you only need to run 'fstrim -a' 
> in the template.
> 
> Auto trimming is also imperfect for appVM private volumes, so trimming 
> there occasionally can free gigabytes of disk space.

Indeed, as it can return storage to the LVM thin pool for reuse, as virtual 
trimming is handled as releasing storage back to the pool.

Templates:
 I manually update all my templates, so it's always:
 $ <OS-specific-update-command(s)>
 $ sudo fstrim -av
 $ sudo shutdown -h now

AppVMs:
 Similar except I remind myself to dismount any large volumes mounted
 (those can take to run trim against):
 $ sudo fstrim -av
 $ sudo shutdown -h now

B

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/23bd52de-8b30-4892-a143-b522e1cb2640%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to