What is the best practice to trim disk inside qubes 4 .
the qvm-trim-template dont exist anymore .
R
Basically, it's no more. Better explained here;
Quote: "Qubes R4.0 will have a new storage scheme which utilizes LVM thin provisioning (and over-provisioning) to achieve similar capabilities with greater flexibility." Follow link for source and further details - https://unix.stackexchange.com/questions/315345/using-ssd-on-qubes-os
Also, as per my current understanding, this automated trimming feature was not fully developed after Qubes 4 RC-1 was released, but has gradually been refined and perfected till this day. But there are still some issues, i.e. no visual interface to show your overall disk space useage (the other month, you had to pull and combine several commands to make it show accurately). I'm not sure if this disk space useage reporting issue has been fixed today though.
Hi
fstrim: /: the discard operation is not supported
Neat collection you put together here, gives a better understanding where we are at indeed. I suppose (partly guessing here) that "sudo lvs" works for both "LVM" and "LVM Thin" FS-formats? I can only check LVM atm as I'm currently not using "LVM Thin".
As for discard to be supported, I suppose it has to be enabled during the mounting process, such as in the fstab? Thinking more align the need to solve the issue the original posters response regarding lack of discard support, up above. Could a solution really be that simple as to put it into the fstab though, or is there more to it?