<?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: Is it possible to delete a single file from a snapshot? in Network and Storage Protocols</title>
    <link>https://community.netapp.com/t5/Network-and-Storage-Protocols/Is-it-possible-to-delete-a-single-file-from-a-snapshot/m-p/10495#M995</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Very often a user will create several extremely large (many 10s of&amp;nbsp; gigabytes) intermediate files in a filesystem that's&lt;/P&gt;&lt;P&gt;maybe 200GB&amp;nbsp; and accidentally leave them overnight."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this done via CIFS? Have you thought about designing around this by maybe using DFS? If possible at all?&lt;/P&gt;&lt;P&gt;Im just throwing it out there not knowing anything about your requirements or your environment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could also easily create a script that will delete what needs to be deleted every day before the snapshot is taken maybe?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Eric&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Aug 2010 05:33:20 GMT</pubDate>
    <dc:creator>eric_barlier</dc:creator>
    <dc:date>2010-08-09T05:33:20Z</dc:date>
    <item>
      <title>Is it possible to delete a single file from a snapshot?</title>
      <link>https://community.netapp.com/t5/Network-and-Storage-Protocols/Is-it-possible-to-delete-a-single-file-from-a-snapshot/m-p/10441#M983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have searched the archives and I can't find a solution to my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue is that I often want to remove just one file, or maybe a few files, from a snapshot in order to save space.&lt;/P&gt;&lt;P&gt;Very often a user will create several extremely large (many 10s of gigabytes) intermediate files in a filesystem that's&lt;/P&gt;&lt;P&gt;maybe 200GB and accidentally leave them overnight. When he deletes the file it moves into the snapshot, which we don't&lt;/P&gt;&lt;P&gt;really want. It's a useless file now. We have played a lot of games like creating some volumes that have snapshots turned on&lt;/P&gt;&lt;P&gt;and some volumes that don't in order to work around this limitation, but I'd really like to use some equivalent of clri to just&lt;/P&gt;&lt;P&gt;blow away a file and all references to that file when a user makes a mistake and leaves a large temporary file lying around.&lt;/P&gt;&lt;P&gt;Add those blocks back to the free list immediately. I don't want to delete the entire snapshot, because there are many&lt;/P&gt;&lt;P&gt;thousands of (small) files I want to keep there. I just want to remove specially selected files as the superuser. This limitation is&lt;/P&gt;&lt;P&gt;really killing us and is possibly my biggest complaint with ONTAP. I know snapshots are read-only blah blah blah. This&lt;/P&gt;&lt;P&gt;could be done if Netapp wanted to do it and it could be done easily.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know this was not possible many versions of ONTAP ago, but is this possible now? I would like this added as a feature if not.&lt;/P&gt;&lt;P&gt;Any suggestions on how to solve this problem would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimitri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2025 07:20:43 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Network-and-Storage-Protocols/Is-it-possible-to-delete-a-single-file-from-a-snapshot/m-p/10441#M983</guid>
      <dc:creator>dimitrigerasimatos</dc:creator>
      <dc:date>2025-06-05T07:20:43Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to delete a single file from a snapshot?</title>
      <link>https://community.netapp.com/t5/Network-and-Storage-Protocols/Is-it-possible-to-delete-a-single-file-from-a-snapshot/m-p/10447#M984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;you cannot remove the single file from the snapshot. even i faced this issue last week so we decided to take the snapshot to tape &amp;amp; delete the snapshots.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2009 02:20:01 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Network-and-Storage-Protocols/Is-it-possible-to-delete-a-single-file-from-a-snapshot/m-p/10447#M984</guid>
      <dc:creator>netappnasadmin</dc:creator>
      <dc:date>2009-12-09T02:20:01Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to delete a single file from a snapshot?</title>
      <link>https://community.netapp.com/t5/Network-and-Storage-Protocols/Is-it-possible-to-delete-a-single-file-from-a-snapshot/m-p/10452#M985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't you think that's a little bit ridiculous? We should lean on Netapp to give us a little bit more power over the filesystem. Make it a privileged command if you want just to be really, really safe. I should not have to kill 800,000 files I'd like to retain snapshots of just because there is 1 (large) file in the snapshot I don't need which I'd like to remove. I am not fully aware if there are technical reasons why this isn't implemented, but it seems like it would be a simple matter of adding the blocks to the free list and updating the master blocks which contain snapshot info. I would *really* like to see this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2009 02:36:03 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Network-and-Storage-Protocols/Is-it-possible-to-delete-a-single-file-from-a-snapshot/m-p/10452#M985</guid>
      <dc:creator>dimitrigerasimatos</dc:creator>
      <dc:date>2009-12-09T02:36:03Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to delete a single file from a snapshot?</title>
      <link>https://community.netapp.com/t5/Network-and-Storage-Protocols/Is-it-possible-to-delete-a-single-file-from-a-snapshot/m-p/10455#M986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree with you dmitri. last time when i tried to take the snapshot to tape it tokk me 15 hrs for dumping the snapshot to tape which is very tough for us to do this for all snapshots &amp;amp; re-claim the space back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NetApp should find a solution for this .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2009 03:11:29 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Network-and-Storage-Protocols/Is-it-possible-to-delete-a-single-file-from-a-snapshot/m-p/10455#M986</guid>
      <dc:creator>netappnasadmin</dc:creator>
      <dc:date>2009-12-09T03:11:29Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to delete a single file from a snapshot?</title>
      <link>https://community.netapp.com/t5/Network-and-Storage-Protocols/Is-it-possible-to-delete-a-single-file-from-a-snapshot/m-p/10459#M987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to restructure your data into separate volumes so that the data you don't want to be included in a snapshot is stored on a volume without a snapshot schedule or data protection policy?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you add the ability to delete files out of a snapshot how do you guarantee the consistency of the snapshot contents?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2009 14:13:37 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Network-and-Storage-Protocols/Is-it-possible-to-delete-a-single-file-from-a-snapshot/m-p/10459#M987</guid>
      <dc:creator>RichardSopp</dc:creator>
      <dc:date>2009-12-09T14:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to delete a single file from a snapshot?</title>
      <link>https://community.netapp.com/t5/Network-and-Storage-Protocols/Is-it-possible-to-delete-a-single-file-from-a-snapshot/m-p/10464#M988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote"&gt;last time when i tried to take the snapshot to tape it tokk me 15 hrs for dumping the snapshot to tape&lt;/PRE&gt;&lt;P&gt;Check your volume fragmentation &amp;amp; possibly defrag by using &lt;SPAN class="cmdname"&gt;reallocate&lt;/SPAN&gt; command:&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://now.netapp.com/NOW/knowledge/docs/ontap/rel7311/html/ontap/sysadmin/tuning/concept/c_oc_tun_reallocate-what-a-scan-is.html#c_oc_tun_reallocate-what-a-scan-is" target="_blank"&gt;http://now.netapp.com/NOW/knowledge/docs/ontap/rel7311/html/ontap/sysadmin/tuning/concept/c_oc_tun_reallocate-what-a-scan-is.html#c_oc_tun_reallocate-what-a-scan-is&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2009 14:18:26 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Network-and-Storage-Protocols/Is-it-possible-to-delete-a-single-file-from-a-snapshot/m-p/10464#M988</guid>
      <dc:creator>radek_kubka</dc:creator>
      <dc:date>2009-12-09T14:18:26Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to delete a single file from a snapshot?</title>
      <link>https://community.netapp.com/t5/Network-and-Storage-Protocols/Is-it-possible-to-delete-a-single-file-from-a-snapshot/m-p/10468#M989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV class="jive-rendered-content"&gt;&lt;P&gt;&amp;gt;Is it possible to restructure your data into separate volumes so that the data you don't want to be included in a snapshot is stored on a volume without a snapshot schedule or data &amp;gt;protection policy?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I mentioned in my original post that we play these games now. I find the status quo unacceptable. There's still the chance that someone accidentally creates a large file where they shouldn't have and the admin has no way to deal with that problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;If you add the ability to delete files out of a snapshot how do you guarantee the consistency of the snapshot contents?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do you guarantee the consistency of any filesystem? There's a whole branch of OS theory to deal with these issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2009 20:39:43 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Network-and-Storage-Protocols/Is-it-possible-to-delete-a-single-file-from-a-snapshot/m-p/10468#M989</guid>
      <dc:creator>dimitrigerasimatos</dc:creator>
      <dc:date>2009-12-09T20:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to delete a single file from a snapshot?</title>
      <link>https://community.netapp.com/t5/Network-and-Storage-Protocols/Is-it-possible-to-delete-a-single-file-from-a-snapshot/m-p/10471#M990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dimitri,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm having the same problems you face on my Netapp Filers. Have you any progress since end 2009 ?&lt;/P&gt;&lt;P&gt;I was wondering if you ever tried to remove the file from the filer using its command "rm" (rather than from NFS or CIFS mounts). I recently saw this command in "priv set advanced" mode and wonder if it could REALLY remove the file and not go into the snap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway i'll test it asap and tell you my results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Aug 2010 13:46:55 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Network-and-Storage-Protocols/Is-it-possible-to-delete-a-single-file-from-a-snapshot/m-p/10471#M990</guid>
      <dc:creator>b_ochisor</dc:creator>
      <dc:date>2010-08-04T13:46:55Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to delete a single file from a snapshot?</title>
      <link>https://community.netapp.com/t5/Network-and-Storage-Protocols/Is-it-possible-to-delete-a-single-file-from-a-snapshot/m-p/10476#M991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The rm command in advanced mode of ONTAP will not remove files in snapshots. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Aug 2010 16:57:20 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Network-and-Storage-Protocols/Is-it-possible-to-delete-a-single-file-from-a-snapshot/m-p/10476#M991</guid>
      <dc:creator>adamfox</dc:creator>
      <dc:date>2010-08-04T16:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to delete a single file from a snapshot?</title>
      <link>https://community.netapp.com/t5/Network-and-Storage-Protocols/Is-it-possible-to-delete-a-single-file-from-a-snapshot/m-p/10481#M992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No the rm command won't delete the file in a snap, says its RO !&lt;/P&gt;&lt;P&gt;What I suggested is to remove the file from the qtree/volume with this command and not from a NFS/CIFS mount! Maybe the file won't get in the snap... Did anyone tried that ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Aug 2010 07:17:34 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Network-and-Storage-Protocols/Is-it-possible-to-delete-a-single-file-from-a-snapshot/m-p/10481#M992</guid>
      <dc:creator>b_ochisor</dc:creator>
      <dc:date>2010-08-05T07:17:34Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to delete a single file from a snapshot?</title>
      <link>https://community.netapp.com/t5/Network-and-Storage-Protocols/Is-it-possible-to-delete-a-single-file-from-a-snapshot/m-p/10485#M993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is rather pointless exercise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By definition a snapshot is a read-only, point-in-time copy of a live file system, so deleting anything from a snapshot would a) require hacking into ONTAP/WAFL, b) break one of the fundamentals of data protection provided by snapshots.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are ways to achieve similar goal without heavy cannons though:&lt;/P&gt;&lt;P&gt;- FlexClone the snapshot in question&lt;/P&gt;&lt;P&gt;- delete the file from the clone&lt;/P&gt;&lt;P&gt;- split the clone&lt;/P&gt;&lt;P&gt;- snapshot resulting volume (it now does not include the deleted file)&lt;/P&gt;&lt;P&gt;- delete the snapshot from the source volume&lt;/P&gt;&lt;P&gt;(yes, there will be ~100% capacity overhead after the operation)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Radek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Aug 2010 08:36:41 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Network-and-Storage-Protocols/Is-it-possible-to-delete-a-single-file-from-a-snapshot/m-p/10485#M993</guid>
      <dc:creator>radek_kubka</dc:creator>
      <dc:date>2010-08-05T08:36:41Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to delete a single file from a snapshot?</title>
      <link>https://community.netapp.com/t5/Network-and-Storage-Protocols/Is-it-possible-to-delete-a-single-file-from-a-snapshot/m-p/10490#M994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dimitri,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to cut a long story short: No, as of either ONTAP 7.3.4 or ONTAP 8.0, it is NOT possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please get in touch with your local NetApp representative to issue a request why not or if possibly when such a feature will be available. NetApp wont give you a detailed, official answer in this community. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Aug 2010 09:18:05 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Network-and-Storage-Protocols/Is-it-possible-to-delete-a-single-file-from-a-snapshot/m-p/10490#M994</guid>
      <dc:creator>thomas_glodde</dc:creator>
      <dc:date>2010-08-05T09:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to delete a single file from a snapshot?</title>
      <link>https://community.netapp.com/t5/Network-and-Storage-Protocols/Is-it-possible-to-delete-a-single-file-from-a-snapshot/m-p/10495#M995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Very often a user will create several extremely large (many 10s of&amp;nbsp; gigabytes) intermediate files in a filesystem that's&lt;/P&gt;&lt;P&gt;maybe 200GB&amp;nbsp; and accidentally leave them overnight."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this done via CIFS? Have you thought about designing around this by maybe using DFS? If possible at all?&lt;/P&gt;&lt;P&gt;Im just throwing it out there not knowing anything about your requirements or your environment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could also easily create a script that will delete what needs to be deleted every day before the snapshot is taken maybe?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Eric&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Aug 2010 05:33:20 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Network-and-Storage-Protocols/Is-it-possible-to-delete-a-single-file-from-a-snapshot/m-p/10495#M995</guid>
      <dc:creator>eric_barlier</dc:creator>
      <dc:date>2010-08-09T05:33:20Z</dc:date>
    </item>
  </channel>
</rss>

