<div dir="ltr">Do snapshots behave the same way as thin volumes wrt discards?<div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Jul 21, 2013 at 3:47 AM, Zdenek Kabelac <span dir="ltr"><<a href="mailto:zkabelac@redhat.com" target="_blank">zkabelac@redhat.com</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Dne 21.7.2013 09:10, Raymond Jennings napsal(a):<div><br>


<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
So can thin volumes support discards independently of the device underneath them?<br>
<br>
I expected fstrim to free space in the thin pool.<br>
</blockquote>
<br></div>
Yes - you are expecting it correctly.<br>
<br>
Ignore is mostly usable in case you do not want to free already provisioned space - which might be in certain cases better for performance.<br>
<br>
But you need to use recent enough kernels and lvm2 tools - since discards support required kernel updates.<br></blockquote><div><br></div><div>Kernel: 3.10.1-gento</div><div>LVM2:  2.02.97</div><div><br></div><div>Are these versions recent enough?</div>

<div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Upstream has this:<br>
<br>
passdown   TRIM ->  thin-vol -> thin-pool -> PV<br>
(if the PV doesn't support discard - you get kernel report error report<br>
and it fallbacks to nopassdown behaviour)<br>
<br>
nopassdown TRIM ->  thin-vol -> thin-pool<br>
<br>
ignore     TRIM ->  thin-vol<span><font color="#888888"><br>
<br>
<br>
<br>
Zdenek<br>
<br>
</font></span></blockquote></div><br></div></div>