<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Space reclaim for lun in ONTAP Discussions</title>
    <link>https://community.netapp.com/t5/ONTAP-Discussions/Space-reclaim-for-lun/m-p/138462#M30545</link>
    <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;with linux client i did the following:&lt;BR /&gt;&lt;BR /&gt;1) Obtain the device id of the lun&lt;BR /&gt;&lt;BR /&gt;For instance&lt;BR /&gt;&lt;BR /&gt;# ls -l /dev/mapper/netapp-lunp1&lt;BR /&gt;lrwxrwxrwx 1 root root 7 Feb 26 11:47 /dev/mapper/netapp-lunp1 -&amp;gt; ../dm-1&lt;BR /&gt;&lt;BR /&gt;2) Check&amp;nbsp;/sys/block/dm-1/queue/discard_max_bytes value: it should be not zero. If zero, maybe the option space-allocation must be set to enabled&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.netapp.com/ontap-9/index.jsp?topic=%2Fcom.netapp.doc.dot-cm-sanag%2FGUID-6AD84908-041A-497D-95A7-BB6AFDD1B282.html" target="_blank"&gt;http://docs.netapp.com/ontap-9/index.jsp?topic=%2Fcom.netapp.doc.dot-cm-sanag%2FGUID-6AD84908-041A-497D-95A7-BB6AFDD1B282.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;(I tried simply modifying the option without putting the lun offline, and it worked without disruption)&lt;BR /&gt;&lt;BR /&gt;3) Rescan the lun (in our case we rebooted the client)&lt;BR /&gt;&lt;BR /&gt;4) Check again&amp;nbsp;&lt;SPAN&gt;/sys/block/&lt;/SPAN&gt;&lt;SPAN&gt;dm-1&lt;/SPAN&gt;&lt;SPAN&gt;/queue/discard_max_bytes, in our case we have&amp;nbsp;33554432&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;5) fstrim &amp;lt;mountpoint&amp;gt;&lt;BR /&gt;&lt;BR /&gt;We checked with red-hat like and debian linux, ext4 filesystem. It works.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 26 Feb 2018 13:24:50 GMT</pubDate>
    <dc:creator>LORENZO_CONTI</dc:creator>
    <dc:date>2018-02-26T13:24:50Z</dc:date>
    <item>
      <title>Space reclaim for lun</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Space-reclaim-for-lun/m-p/138146#M30466</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have some iscsi lun configured on a 9.1P10 cluster.&lt;BR /&gt;&lt;BR /&gt;space-allocation option is disabled, so I'm guessing I'm wasting disk space without reclaiming space.&lt;BR /&gt;&lt;BR /&gt;Ontap 9 documentation says&lt;BR /&gt;&lt;BR /&gt;"If you set the space-allocation option to enabled, Data ONTAP notifies the host when the volume has run out of space and the LUN in the volume cannot accept writes. This option also enables Data ONTAP to reclaim space automatically when your host deletes data."&lt;BR /&gt;&lt;BR /&gt;Can I use snapdrive to reclaim space one shot?&lt;BR /&gt;&lt;BR /&gt;Can I use a windows host to reclaim space on lun mapped for both windows and linux clients?&lt;BR /&gt;&lt;BR /&gt;Do will be a disruptive operation?&lt;BR /&gt;&lt;BR /&gt;Thank you&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Lorenzo&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 14:01:36 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Space-reclaim-for-lun/m-p/138146#M30466</guid>
      <dc:creator>LORENZO_CONTI</dc:creator>
      <dc:date>2025-06-04T14:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: Space reclaim for lun</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Space-reclaim-for-lun/m-p/138430#M30537</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please refer&amp;nbsp;&lt;A href="https://library.netapp.com/ecmdocs/ECMM1278932/html/admin/provisioning/concept/c_sdw_prov_space-reclaim-about.html" target="_blank"&gt;https://library.netapp.com/ecmdocs/ECMM1278932/html/admin/provisioning/concept/c_sdw_prov_space-reclaim-about.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2018 05:09:09 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Space-reclaim-for-lun/m-p/138430#M30537</guid>
      <dc:creator>Sahana</dc:creator>
      <dc:date>2018-02-26T05:09:09Z</dc:date>
    </item>
    <item>
      <title>Re: Space reclaim for lun</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Space-reclaim-for-lun/m-p/138449#M30542</link>
      <description>&lt;P&gt;Hello Sahana,&lt;BR /&gt;&lt;BR /&gt;thanks for your reply.&lt;BR /&gt;&lt;BR /&gt;I found some discussion where it seems snapdrive for linux is not capable of space reclaim, for instance&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.netapp.com/t5/Backup-and-Restore-Discussions/How-to-Reclaimed-Thin-Lun-In-UNIX/td-p/79811" target="_blank"&gt;https://community.netapp.com/t5/Backup-and-Restore-Discussions/How-to-Reclaimed-Thin-Lun-In-UNIX/td-p/79811&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I'll try with fstrim on linux, I'll then post about the results.&lt;BR /&gt;&lt;BR /&gt;Lorenzo&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2018 09:13:24 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Space-reclaim-for-lun/m-p/138449#M30542</guid>
      <dc:creator>LORENZO_CONTI</dc:creator>
      <dc:date>2018-02-26T09:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: Space reclaim for lun</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Space-reclaim-for-lun/m-p/138462#M30545</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;with linux client i did the following:&lt;BR /&gt;&lt;BR /&gt;1) Obtain the device id of the lun&lt;BR /&gt;&lt;BR /&gt;For instance&lt;BR /&gt;&lt;BR /&gt;# ls -l /dev/mapper/netapp-lunp1&lt;BR /&gt;lrwxrwxrwx 1 root root 7 Feb 26 11:47 /dev/mapper/netapp-lunp1 -&amp;gt; ../dm-1&lt;BR /&gt;&lt;BR /&gt;2) Check&amp;nbsp;/sys/block/dm-1/queue/discard_max_bytes value: it should be not zero. If zero, maybe the option space-allocation must be set to enabled&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.netapp.com/ontap-9/index.jsp?topic=%2Fcom.netapp.doc.dot-cm-sanag%2FGUID-6AD84908-041A-497D-95A7-BB6AFDD1B282.html" target="_blank"&gt;http://docs.netapp.com/ontap-9/index.jsp?topic=%2Fcom.netapp.doc.dot-cm-sanag%2FGUID-6AD84908-041A-497D-95A7-BB6AFDD1B282.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;(I tried simply modifying the option without putting the lun offline, and it worked without disruption)&lt;BR /&gt;&lt;BR /&gt;3) Rescan the lun (in our case we rebooted the client)&lt;BR /&gt;&lt;BR /&gt;4) Check again&amp;nbsp;&lt;SPAN&gt;/sys/block/&lt;/SPAN&gt;&lt;SPAN&gt;dm-1&lt;/SPAN&gt;&lt;SPAN&gt;/queue/discard_max_bytes, in our case we have&amp;nbsp;33554432&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;5) fstrim &amp;lt;mountpoint&amp;gt;&lt;BR /&gt;&lt;BR /&gt;We checked with red-hat like and debian linux, ext4 filesystem. It works.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2018 13:24:50 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Space-reclaim-for-lun/m-p/138462#M30545</guid>
      <dc:creator>LORENZO_CONTI</dc:creator>
      <dc:date>2018-02-26T13:24:50Z</dc:date>
    </item>
  </channel>
</rss>

