<div><div>I tested fstrim without mdraid(<a href="https://bugzilla.redhat.com/show_bug.cgi?id=837097">https://bugzilla.redhat.com/show_bug.cgi?id=837097</a>)  on 2.6.32-279.14.1.el6 RHEL6.3 kernel</div><div>but I get the following error: <span style="font-family:sans-serif;font-size:13px;line-height:19.183332443237305px">- FITRIM ioctl failed: Operation not supported.</span></div>

<div><br></div><div>I find this bug reports: (<a href="https://bugzilla.redhat.com/buglist.cgi?quicksearch=fstrim" target="_blank">https://bugzilla.redhat.com/buglist.cgi?quicksearch=fstrim</a>)</div>
<div><br></div><div><a href="https://bugzilla.redhat.com/show_bug.cgi?id=814766" target="_blank">https://bugzilla.redhat.com/show_bug.cgi?id=814766</a></div>
<div><br></div><div>May be it will be closed in RHEL6.4 and I have is to wait and use this release for discard/trim?</div></div>
<div><br><br><div class="gmail_quote">On Wed, Nov 14, 2012 at 1:22 PM, Andres Toomsalu <span dir="ltr"><<a href="mailto:andres@active.ee" target="_blank">andres@active.ee</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div style="word-wrap:break-word"><div>Im trying with latest <span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:left;font-style:normal;display:inline!important;font-weight:normal;float:none;line-height:19.19999885559082px;text-transform:none;font-size:12.666666984558105px;white-space:normal;font-family:sans-serif;word-spacing:0px">2.6.32-279.11.1.el6 RHEL6.3 kernel but still no luck - FITRIM ioctl failed: Operation not supported.</span></div>



<div><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:left;font-style:normal;display:inline!important;font-weight:normal;float:none;line-height:19.19999885559082px;text-transform:none;font-size:12.666666984558105px;white-space:normal;font-family:sans-serif;word-spacing:0px">Is there any way to discard/trim unused blocks with RHEL6.3?</span></div>



<div><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:left;font-style:normal;display:inline!important;font-weight:normal;float:none;line-height:19.19999885559082px;text-transform:none;font-size:12.666666984558105px;white-space:normal;font-family:sans-serif;word-spacing:0px">What happens if no cleanup is done and blocks count reaches 100%? </span></div>



<div><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:left;font-style:normal;display:inline!important;font-weight:normal;float:none;line-height:19.19999885559082px;text-transform:none;font-size:12.666666984558105px;white-space:normal;font-family:sans-serif;word-spacing:0px"><br>



</span></div>Regards,<br><div>
<div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 12px/normal Helvetica">-- </div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 12px/normal Helvetica">



----------------------------------------------</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 12px/normal Helvetica">Andres Toomsalu</div></div></div><div><div>



<div><div>On 11.11.2012, at 10:22, Vitaly Yakovenko wrote:</div><br></div></div><blockquote type="cite"><div><div><font face="arial, sans-serif">Hi,</font><div class="gmail_quote"><div><div><font face="arial, sans-serif"><br>



</font></div><div><font face="arial, sans-serif">I have the problem with fstrim too.</font></div><div><font face="arial, sans-serif"><br>


</font></div><div><font face="arial, sans-serif">some details:</font></div><div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif"><div>uname -a</div><div>Linux test.local 2.6.32-279.14.1.el6.x86_64 #1 SMP Tue Nov 6 23:43:09 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux</div>






<div><br></div><div><br></div><div><div>mount</div><div>/dev/mapper/VolGroup00-lv_root on / type ext4 (rw)</div><div>proc on /proc type proc (rw)</div><div>sysfs on /sys type sysfs (rw)</div><div>devpts on /dev/pts type devpts (rw,gid=5,mode=620)</div>






<div>tmpfs on /dev/shm type tmpfs (rw)</div><div>/dev/md0 on /boot type ext4 (rw)</div><div>none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)</div><div>/dev/mapper/VolGroup00-lv_test1 on /mnt/test1 type ext4 (rw)</div>






<div>/dev/mapper/VolGroup00-lv_test2 on /mnt/test2 type ext4 (rw)</div><div>/dev/mapper/VolGroup00-lv_test5 on /mnt/test5 type xfs (rw)</div></div><div><br></div><div><br></div><div><div>df -h</div><div>Filesystem            Size  Used Avail Use% Mounted on</div>






<div>/dev/mapper/VolGroup00-lv_root</div><div>                       20G  2.3G   17G  13% /</div><div>tmpfs                 1.6G     0  1.6G   0% /dev/shm</div><div>/dev/md0               99M   27M   67M  29% /boot</div>





<div>
/dev/mapper/VolGroup00-lv_test1</div><div>                       40G  2.6G   35G   7% /mnt/test1</div><div>/dev/mapper/VolGroup00-lv_test2</div><div>                      4.0G  1.2G  2.6G  32% /mnt/test2</div><div>/dev/mapper/VolGroup00-lv_test5</div>






<div>                      3.0G  725M  2.3G  24% /mnt/test5</div></div><div><br></div><div><br></div><div><div>lvs -a -o+metadata_percent</div><div>  LV                VG         Attr     LSize   Pool      Origin Data%  Move Log Copy%  Convert Meta% </div>






<div>  lv_native         VolGroup00 -wi-a---   5.00g                                                       </div><div>  lv_root           VolGroup00 -wi-ao--  20.00g                                                       </div>






<div>  lv_swap           VolGroup00 -wi-ao--   4.00g                                                       </div><div>  lv_test1          VolGroup00 Vwi-aotz  40.00g thin_pool         27.73                               </div>






<div>  lv_test2          VolGroup00 Vwi-aotz   4.00g thin_pool         98.61                               </div><div>  lv_test5          VolGroup00 Vwi-aotz   3.00g thin_pool         45.40                               </div>






<div>  thin_pool         VolGroup00 twi-a-tz 100.00g                   16.40                           8.47</div><div>  [thin_pool_tdata] VolGroup00 Twi-aot- 100.00g                                                       </div>






<div>  [thin_pool_tmeta] VolGroup00 ewi-aot- 100.00m</div></div><div><br></div><div><br></div></font></div><div><font face="arial, sans-serif">This test server (CentOS 6.3 - not install from scratch). I was updated this server from 6.2 version:</font></div>






<div><span style="font-family:arial,sans-serif"><br></span></div><div><span style="font-family:arial,sans-serif">last | tail -3</span></div><span><div>
<font face="arial, sans-serif"><div>reboot   system boot  2.6.32-220.el6.x Mon Jan 23 16:03 - 16:04  (00:01)    </div><div>wtmp begins Mon Jan 23 16:03:26 2012</div><div><br></div><div><br></div><div>I test only ext4 fs partitions.</div>






<div>When I used fstrim I had next error:</div><div><br></div><div><div>fstrim /mnt/test1</div><div>fstrim: /mnt/test1: FITRIM ioctl failed: Operation not supported</div></div><div><br></div><div>I want retrieve free space from the ext4 fs to the total free space of thin_pool after delete files on the ext4 fs  (lv_test1).I will have more free space for another thin LV.</div>






<div>Is it possible to get it?</div></font><font face="arial, sans-serif"><div><br></div><div>Thanks in advance.</div><span><font color="#888888"><div><br></div></font></span></font></div><span><font color="#888888"><font color="#888888" face="arial, sans-serif">-- </font></font></span></span><span><font color="#888888"><br style="color:rgb(136,136,136);font-size:13px;font-family:arial,sans-serif">






<div style="color:rgb(136,136,136);font-size:13px;font-family:arial,sans-serif">Best regards,</div><div style="color:rgb(136,136,136);font-size:13px;font-family:arial,sans-serif">
<span style="color:rgb(34,34,34)">Vitaly Yakovenko</span><font color="#222222"> |</font></div></font></span></div>
</div><br></div></div>
_______________________________________________<br>linux-lvm mailing list<br><a href="mailto:linux-lvm@redhat.com" target="_blank">linux-lvm@redhat.com</a><br><a href="https://www.redhat.com/mailman/listinfo/linux-lvm" target="_blank">https://www.redhat.com/mailman/listinfo/linux-lvm</a><br>



read the LVM HOW-TO at <a href="http://tldp.org/HOWTO/LVM-HOWTO/" target="_blank">http://tldp.org/HOWTO/LVM-HOWTO/</a></blockquote></div><br></div><br>_______________________________________________<br>
linux-lvm mailing list<br>
<a href="mailto:linux-lvm@redhat.com" target="_blank">linux-lvm@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/linux-lvm" target="_blank">https://www.redhat.com/mailman/listinfo/linux-lvm</a><br>
read the LVM HOW-TO at <a href="http://tldp.org/HOWTO/LVM-HOWTO/" target="_blank">http://tldp.org/HOWTO/LVM-HOWTO/</a><br></blockquote></div><br></div>