<?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: How space-allocation option works in Network and Storage Protocols</title>
    <link>https://community.netapp.com/t5/Network-and-Storage-Protocols/How-space-allocation-option-works/m-p/137227#M8948</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi , I need help wth space allcation enabled.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've enabled space allcation from my cdot 9.1p8 storage and mapped the LUN to windows 2012 r2 server, .&lt;/P&gt;&lt;P&gt;Here I created a test lun and deleted the data from windows however the space&amp;nbsp; is unable to reclaim automatically&lt;/P&gt;&lt;P&gt;Do i need to change any options at at windows /storage level.&lt;/P&gt;&lt;P&gt;below is the lun details.&lt;/P&gt;&lt;P&gt;Note: This LUn provided through ESX host 5.5&amp;nbsp; to windows 2012 r2&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LUN Name: lun_ratnakartest1&lt;BR /&gt;LUN Size: 150GB&lt;BR /&gt;OS Type: vmware&lt;BR /&gt;Space Reservation: disabled&lt;BR /&gt;Serial Number: 804oa$Fz82Xp&lt;BR /&gt;Serial Number (Hex): 3830346f6124467a38325870&lt;BR /&gt;Comment:&lt;BR /&gt;Space Reservations Honored: true&lt;BR /&gt;Space Allocation: enabled&lt;BR /&gt;State: online&lt;BR /&gt;LUN UUID: 85b40fb2-6470-41f4-8840-798ff7903b38&lt;BR /&gt;Mapped: mapped&lt;BR /&gt;Block Size: 512&lt;BR /&gt;Device Legacy ID: -&lt;BR /&gt;Device Binary ID: -&lt;BR /&gt;Device Text ID: -&lt;BR /&gt;Read Only: false&lt;BR /&gt;Fenced Due to Restore: false&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/9541"&gt;@aborzenkov&lt;/a&gt; wrote:&lt;BR /&gt;In Linux you need to mount filesystem with "discard" option. Not every filesystem supports it and it must be supported by storage stack as well.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 10 Jan 2018 20:12:58 GMT</pubDate>
    <dc:creator>Ratnakar96</dc:creator>
    <dc:date>2018-01-10T20:12:58Z</dc:date>
    <item>
      <title>How space-allocation option works</title>
      <link>https://community.netapp.com/t5/Network-and-Storage-Protocols/How-space-allocation-option-works/m-p/116127#M8236</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a question in the "space-allocation" option in cDOT.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As we know, enable "space-allocation" can reclaim space automatically when the host delete data. And the customers have the test in both linux and windows.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The test hosts are RHEL6.5 and Windows Server 2012R2. Both of them support the auto-space-reclaim. In the windows test, when deleting data, "lun show -field size-used" and "df -h -vol volname" from the filer side will automatically update the free space. But in the Linux test, after deleting data, the filer always report the original space usage. Not sure whether the space-reclaim works in the linux host.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Here are some outputs in test, test scenario is cDOT831 iscsi. (space-reserve is disable, space-allocation is enable, and there is no snapshot in the volume).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;###########linux test&lt;/STRONG&gt;&lt;BR /&gt;[root@RHEL1 lun1]# cat /etc/redhat-release&lt;BR /&gt;Red Hat Enterprise Linux Server release 6.5 (Santiago)&lt;BR /&gt;[root@RHEL1 ~]# df -h&lt;BR /&gt;Filesystem Size Used Avail Use% Mounted on&lt;BR /&gt;/dev/mapper/mpathbp1 1007M &lt;STRONG&gt;518M&lt;/STRONG&gt; 438M 55% /lun1&lt;BR /&gt;/dev/mapper/mpathap1 2.0G &lt;STRONG&gt;1.1G&lt;/STRONG&gt; 853M 56% /lun2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;####delete data in lun1 and lun2&lt;BR /&gt;[root@RHEL1 lun1]# df -h&lt;BR /&gt;Filesystem Size Used Avail Use% Mounted on&lt;BR /&gt;/dev/mapper/mpathbp1 1007M &lt;STRONG&gt;18M&lt;/STRONG&gt; 939M 2% /lun1&lt;BR /&gt;/dev/mapper/mpathap1 2.0G &lt;STRONG&gt;36M&lt;/STRONG&gt; 1.9G 2% /lun2&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;#####After deletion, filer still report the original size.&lt;BR /&gt;cluster1::*&amp;gt; lun show -vserver svm_linux -fields size,size-used,space-reserve,space-allocation&lt;BR /&gt;vserver path size space-reserve space-allocation size-used&lt;BR /&gt;--------- ------------------- ---- ------------- ---------------- ---------&lt;BR /&gt;svm_linux /vol/vol_linux/lun1 1GB disabled enabled &lt;STRONG&gt;599.3MB &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -&amp;gt; still report the original space, that means space-reclaim didn't work out?&lt;/STRONG&gt;&lt;BR /&gt;svm_linux /vol/vol_linux/lun2 2GB disabled enabled &lt;STRONG&gt;1.08GB&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;luster1::*&amp;gt; df -h -vserver svm_linux -volume vol_linux&lt;BR /&gt;Filesystem total used avail capacity Mounted on&lt;BR /&gt;/vol/vol_linux/ 9728MB &lt;STRONG&gt;1708MB&lt;/STRONG&gt; 8019MB 18% ---&lt;BR /&gt;/vol/vol_linux/.snapshot 512MB 0B 512MB 0% ---&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;#In the windows test, after deleting data from the host, the free space did update in the filer&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;######when LUN2 has 2G data, the filer side can display the space usage.&lt;/P&gt;&lt;P&gt;cluster1::*&amp;gt; lun show -vserver svm_win -fields size,size-used,space-reserve,space-allocation&lt;BR /&gt;vserver path size space-reserve space-allocation size-used&lt;BR /&gt;------- -------------- ------ ------------- ---------------- ---------&lt;BR /&gt;svm_win /vol/vol1/lun2 2.01GB disabled enabled &lt;STRONG&gt;1.92GB&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;cluster1::*&amp;gt; df -h -vserver svm_win -volume vol1&lt;BR /&gt;Filesystem total used avail capacity Mounted on&lt;BR /&gt;/vol/vol1/ 4864MB &lt;STRONG&gt;2089MB&lt;/STRONG&gt; 2774MB 43% ---&lt;BR /&gt;/vol/vol1/.snapshot 256MB 0B 256MB 0% ---&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;######after deleting data in LUN2&lt;BR /&gt;cluster1::*&amp;gt; lun show -vserver svm_win -fields size,size-used,space-reserve,space-allocation&lt;BR /&gt;vserver path size space-reserve space-allocation size-used&lt;BR /&gt;------- -------------- ------ ------------- ---------------- ---------&lt;BR /&gt;svm_win /vol/vol1/lun2 2.01GB disabled enabled &lt;STRONG&gt;11.82MB &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -&amp;gt; filer has update the free space&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;cluster1::*&amp;gt; df -h -vserver svm_win -volume vol1&lt;BR /&gt;Filesystem total used avail capacity Mounted on&lt;BR /&gt;/vol/vol1/ 4864MB &lt;STRONG&gt;51MB&lt;/STRONG&gt; 4812MB 1% ---&lt;BR /&gt;/vol/vol1/.snapshot 256MB 0B 256MB 0% ---&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2016 14:44:59 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Network-and-Storage-Protocols/How-space-allocation-option-works/m-p/116127#M8236</guid>
      <dc:creator>Dong_Chen</dc:creator>
      <dc:date>2016-02-22T14:44:59Z</dc:date>
    </item>
    <item>
      <title>Re: How space-allocation option works</title>
      <link>https://community.netapp.com/t5/Network-and-Storage-Protocols/How-space-allocation-option-works/m-p/116144#M8237</link>
      <description>In Linux you need to mount filesystem with "discard" option. Not every filesystem supports it and it must be supported by storage stack as well.</description>
      <pubDate>Mon, 22 Feb 2016 17:58:42 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Network-and-Storage-Protocols/How-space-allocation-option-works/m-p/116144#M8237</guid>
      <dc:creator>aborzenkov</dc:creator>
      <dc:date>2016-02-22T17:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: How space-allocation option works</title>
      <link>https://community.netapp.com/t5/Network-and-Storage-Protocols/How-space-allocation-option-works/m-p/116160#M8238</link>
      <description>Thanks, that works with discard options!</description>
      <pubDate>Tue, 23 Feb 2016 02:48:15 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Network-and-Storage-Protocols/How-space-allocation-option-works/m-p/116160#M8238</guid>
      <dc:creator>Dong_Chen</dc:creator>
      <dc:date>2016-02-23T02:48:15Z</dc:date>
    </item>
    <item>
      <title>Re: How space-allocation option works</title>
      <link>https://community.netapp.com/t5/Network-and-Storage-Protocols/How-space-allocation-option-works/m-p/137227#M8948</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi , I need help wth space allcation enabled.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've enabled space allcation from my cdot 9.1p8 storage and mapped the LUN to windows 2012 r2 server, .&lt;/P&gt;&lt;P&gt;Here I created a test lun and deleted the data from windows however the space&amp;nbsp; is unable to reclaim automatically&lt;/P&gt;&lt;P&gt;Do i need to change any options at at windows /storage level.&lt;/P&gt;&lt;P&gt;below is the lun details.&lt;/P&gt;&lt;P&gt;Note: This LUn provided through ESX host 5.5&amp;nbsp; to windows 2012 r2&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LUN Name: lun_ratnakartest1&lt;BR /&gt;LUN Size: 150GB&lt;BR /&gt;OS Type: vmware&lt;BR /&gt;Space Reservation: disabled&lt;BR /&gt;Serial Number: 804oa$Fz82Xp&lt;BR /&gt;Serial Number (Hex): 3830346f6124467a38325870&lt;BR /&gt;Comment:&lt;BR /&gt;Space Reservations Honored: true&lt;BR /&gt;Space Allocation: enabled&lt;BR /&gt;State: online&lt;BR /&gt;LUN UUID: 85b40fb2-6470-41f4-8840-798ff7903b38&lt;BR /&gt;Mapped: mapped&lt;BR /&gt;Block Size: 512&lt;BR /&gt;Device Legacy ID: -&lt;BR /&gt;Device Binary ID: -&lt;BR /&gt;Device Text ID: -&lt;BR /&gt;Read Only: false&lt;BR /&gt;Fenced Due to Restore: false&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/9541"&gt;@aborzenkov&lt;/a&gt; wrote:&lt;BR /&gt;In Linux you need to mount filesystem with "discard" option. Not every filesystem supports it and it must be supported by storage stack as well.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2018 20:12:58 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Network-and-Storage-Protocols/How-space-allocation-option-works/m-p/137227#M8948</guid>
      <dc:creator>Ratnakar96</dc:creator>
      <dc:date>2018-01-10T20:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: How space-allocation option works</title>
      <link>https://community.netapp.com/t5/Network-and-Storage-Protocols/How-space-allocation-option-works/m-p/137228#M8949</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi , I need help wth space allcation enabled.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've enabled space allcation from my cdot 9.1p8 storage and mapped the LUN to windows 2012 r2 server, .&lt;/P&gt;&lt;P&gt;Here I created a test lun and deleted the data from windows however the space&amp;nbsp; is unable to reclaim automatically&lt;/P&gt;&lt;P&gt;Do i need to change any options at at windows /storage level.&lt;/P&gt;&lt;P&gt;below is the lun details.&lt;/P&gt;&lt;P&gt;Note: This LUn provided through ESX host 5.5&amp;nbsp; to windows 2012 r2&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LUN Name: lun_ratnakartest1&lt;BR /&gt;LUN Size: 150GB&lt;BR /&gt;OS Type: vmware&lt;BR /&gt;Space Reservation: disabled&lt;BR /&gt;Serial Number: 804oa$Fz82Xp&lt;BR /&gt;Serial Number (Hex): 3830346f6124467a38325870&lt;BR /&gt;Comment:&lt;BR /&gt;Space Reservations Honored: true&lt;BR /&gt;Space Allocation: enabled&lt;BR /&gt;State: online&lt;BR /&gt;LUN UUID: 85b40fb2-6470-41f4-8840-798ff7903b38&lt;BR /&gt;Mapped: mapped&lt;BR /&gt;Block Size: 512&lt;BR /&gt;Device Legacy ID: -&lt;BR /&gt;Device Binary ID: -&lt;BR /&gt;Device Text ID: -&lt;BR /&gt;Read Only: false&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2018 20:13:41 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Network-and-Storage-Protocols/How-space-allocation-option-works/m-p/137228#M8949</guid>
      <dc:creator>Ratnakar96</dc:creator>
      <dc:date>2018-01-10T20:13:41Z</dc:date>
    </item>
  </channel>
</rss>

