<?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: Snapshot locking/SnapLock keeps an extra Snapshot in ONTAP Discussions</title>
    <link>https://community.netapp.com/t5/ONTAP-Discussions/Snapshot-locking-SnapLock-keeps-an-extra-Snapshot/m-p/461713#M45032</link>
    <description>&lt;P&gt;noone stops you from using seconds&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the duration for retention period must be in seconds (0 - 65535), minutes (0 - 60), hours (0 - 24), days (0 - 36500), months (0 - 1200), years (0 - 100).&lt;/P&gt;&lt;P&gt;So in your case 4 hours = 14400 seconds&lt;/P&gt;&lt;P&gt;You are free to use 14399 as an example&lt;/P&gt;</description>
    <pubDate>Tue, 24 Jun 2025 14:21:31 GMT</pubDate>
    <dc:creator>Sergey_Osipov</dc:creator>
    <dc:date>2025-06-24T14:21:31Z</dc:date>
    <item>
      <title>Snapshot locking/SnapLock keeps an extra Snapshot</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Snapshot-locking-SnapLock-keeps-an-extra-Snapshot/m-p/461699#M45025</link>
      <description>&lt;P&gt;I'm testing Snapshot locking/SnapLock and I'm seeing behavior that I didn't expect.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a Snapshot policy configured to take hourly Snapshots with Maximum Snapshot copies = 4 and SnapLock retention period = 4.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I always have 5 hourly Snapshot copies though instead of 4. This screen grab was taken at 2:25 PM. I don't expect the the Snapshot copy from 2:05 PM to still exist.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="grab.png" style="width: 999px;"&gt;&lt;img src="https://community.netapp.com/t5/image/serverpage/image-id/31420i6D9B2EBCB83F383A/image-size/large?v=v2&amp;amp;px=999" role="button" title="grab.png" alt="grab.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm pretty sure that this is because the SnapLock retention period doesn't expire in time for it to be deleted. It must be a matter of seconds.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On a volume with a large amount of data and/or changes between Snapshots, that extra one could end up taking lots of storage.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just want to ask if others have experienced this and if it's expected, or if there's a workaround?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a support case for this and the TSE did not have an immediate answer but will look into it.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jun 2025 19:18:05 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Snapshot-locking-SnapLock-keeps-an-extra-Snapshot/m-p/461699#M45025</guid>
      <dc:creator>reckonerx</dc:creator>
      <dc:date>2025-06-23T19:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: Snapshot locking/SnapLock keeps an extra Snapshot</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Snapshot-locking-SnapLock-keeps-an-extra-Snapshot/m-p/461708#M45028</link>
      <description>&lt;P&gt;snapshot locking retention is by time not by amount of snapshots&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.netapp.com/us-en/ontap/snaplock/snapshot-lock-concept.html#enable-snapshot-locking-when-creating-a-volume" target="_blank"&gt;https://docs.netapp.com/us-en/ontap/snaplock/snapshot-lock-concept.html#enable-snapshot-locking-when-creating-a-volume&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jun 2025 09:24:54 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Snapshot-locking-SnapLock-keeps-an-extra-Snapshot/m-p/461708#M45028</guid>
      <dc:creator>Sergey_Osipov</dc:creator>
      <dc:date>2025-06-24T09:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: Snapshot locking/SnapLock keeps an extra Snapshot</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Snapshot-locking-SnapLock-keeps-an-extra-Snapshot/m-p/461709#M45029</link>
      <description>&lt;P&gt;Correct. The screen grab taken at 2:25 PM still shows a Snapshot that expired at 2:05 PM though.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Probably because the SnapLock retention period doesn't expire in time for it to be deleted so I'm asking&amp;nbsp;if others have experienced this and it's expected, or if there's a workaround.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jun 2025 12:39:30 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Snapshot-locking-SnapLock-keeps-an-extra-Snapshot/m-p/461709#M45029</guid>
      <dc:creator>reckonerx</dc:creator>
      <dc:date>2025-06-24T12:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: Snapshot locking/SnapLock keeps an extra Snapshot</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Snapshot-locking-SnapLock-keeps-an-extra-Snapshot/m-p/461710#M45030</link>
      <description>&lt;P&gt;Apologies I missed your screenshot with expiry-time&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I understand your point&amp;nbsp;&lt;/P&gt;&lt;P&gt;and the same picture you are facing I was easily able to repro in a lab.&lt;/P&gt;&lt;P&gt;The thing here is a new 5th snapshot is created at the same time when the oldest snapshot is still locked so unable to be removed.&lt;/P&gt;&lt;P&gt;And snapshot locking trumps rotation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;It is an expected behavior from the system and if I change the retention period from 20 min to 1199sec they will be rotating just as expected&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;cluster1::*&amp;gt; snap list test_snaplock_volume -fields snaplock-expiry-time&lt;BR /&gt;vserver volume snapshot snaplock-expiry-time&lt;BR /&gt;------------- -------------------- ---------------------- --------------------&lt;BR /&gt;test_snaplock test_snaplock_volume 5min.2025-06-24_1310 6/24/2025 13:30:00 +00:00&lt;BR /&gt;test_snaplock test_snaplock_volume 5min.2025-06-24_1315 6/24/2025 13:35:00 +00:00&lt;BR /&gt;test_snaplock test_snaplock_volume 5min.2025-06-24_1320 6/24/2025 13:40:00 +00:00&lt;BR /&gt;test_snaplock test_snaplock_volume 5min.2025-06-24_1325 6/24/2025 13:45:00 +00:00&lt;BR /&gt;test_snaplock test_snaplock_volume 5min.2025-06-24_1330 6/24/2025 13:50:00 +00:00&lt;BR /&gt;7 entries were displayed.&lt;/P&gt;&lt;P&gt;cluster1::*&amp;gt; snapshot policy show test&lt;BR /&gt;Vserver: cluster1&lt;BR /&gt;Number of Is&lt;BR /&gt;Policy Name Schedules Enabled Comment&lt;BR /&gt;------------------------ --------- ------- ----------------------------------&lt;BR /&gt;test 1 true -&lt;BR /&gt;Schedule Count Prefix SnapMirror Label Retention Period&lt;BR /&gt;-------------- ----- ------------- ------------------ ------------------&lt;BR /&gt;5min 4 5min - 1200 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;cluster1::*&amp;gt; snapshot policy modify-schedule -policy test -schedule 5min -newretention-period 1199 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;after waiting for a while to let previous snaps with retention of 20min to rotate&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;cluster1::*&amp;gt; snap list test_snaplock_volume -fields snaplock-expiry-time&lt;BR /&gt;vserver volume snapshot snaplock-expiry-time&lt;BR /&gt;------------- -------------------- ---------------------- --------------------&lt;BR /&gt;test_snaplock test_snaplock_volume 5min.2025-06-24_1345 6/24/2025 14:04:59 +00:00&lt;BR /&gt;test_snaplock test_snaplock_volume 5min.2025-06-24_1350 6/24/2025 14:09:59 +00:00&lt;BR /&gt;test_snaplock test_snaplock_volume 5min.2025-06-24_1355 6/24/2025 14:14:59 +00:00&lt;BR /&gt;test_snaplock test_snaplock_volume 5min.2025-06-24_1400 6/24/2025 14:19:59 +00:00&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jun 2025 14:02:56 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Snapshot-locking-SnapLock-keeps-an-extra-Snapshot/m-p/461710#M45030</guid>
      <dc:creator>Sergey_Osipov</dc:creator>
      <dc:date>2025-06-24T14:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: Snapshot locking/SnapLock keeps an extra Snapshot</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Snapshot-locking-SnapLock-keeps-an-extra-Snapshot/m-p/461712#M45031</link>
      <description>&lt;P&gt;Thank you for going through the process of recreating the issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had the same idea to set expiration to 239 minutes instead of 4 hours (240 minutes) but you can only enter a number between from 1-60 minutes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="grab.png" style="width: 716px;"&gt;&lt;img src="https://community.netapp.com/t5/image/serverpage/image-id/31421i2F0E31193C5F8368/image-size/large?v=v2&amp;amp;px=999" role="button" title="grab.png" alt="grab.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jun 2025 14:12:22 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Snapshot-locking-SnapLock-keeps-an-extra-Snapshot/m-p/461712#M45031</guid>
      <dc:creator>reckonerx</dc:creator>
      <dc:date>2025-06-24T14:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: Snapshot locking/SnapLock keeps an extra Snapshot</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Snapshot-locking-SnapLock-keeps-an-extra-Snapshot/m-p/461713#M45032</link>
      <description>&lt;P&gt;noone stops you from using seconds&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the duration for retention period must be in seconds (0 - 65535), minutes (0 - 60), hours (0 - 24), days (0 - 36500), months (0 - 1200), years (0 - 100).&lt;/P&gt;&lt;P&gt;So in your case 4 hours = 14400 seconds&lt;/P&gt;&lt;P&gt;You are free to use 14399 as an example&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jun 2025 14:21:31 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Snapshot-locking-SnapLock-keeps-an-extra-Snapshot/m-p/461713#M45032</guid>
      <dc:creator>Sergey_Osipov</dc:creator>
      <dc:date>2025-06-24T14:21:31Z</dc:date>
    </item>
    <item>
      <title>Re: Snapshot locking/SnapLock keeps an extra Snapshot</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Snapshot-locking-SnapLock-keeps-an-extra-Snapshot/m-p/461715#M45033</link>
      <description>&lt;P&gt;Interesting! In the GUI the smallest available increment is minutes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But the CLI will allow me to use seconds?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="grab2.png" style="width: 716px;"&gt;&lt;img src="https://community.netapp.com/t5/image/serverpage/image-id/31422iEB70EA62A82827E7/image-size/large?v=v2&amp;amp;px=999" role="button" title="grab2.png" alt="grab2.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jun 2025 14:26:36 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Snapshot-locking-SnapLock-keeps-an-extra-Snapshot/m-p/461715#M45033</guid>
      <dc:creator>reckonerx</dc:creator>
      <dc:date>2025-06-24T14:26:36Z</dc:date>
    </item>
    <item>
      <title>Re: Snapshot locking/SnapLock keeps an extra Snapshot</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Snapshot-locking-SnapLock-keeps-an-extra-Snapshot/m-p/461716#M45034</link>
      <description>&lt;P&gt;for sure seconds can be used in CLI&lt;/P&gt;&lt;P&gt;command example is in my previous comment&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jun 2025 14:30:21 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Snapshot-locking-SnapLock-keeps-an-extra-Snapshot/m-p/461716#M45034</guid>
      <dc:creator>Sergey_Osipov</dc:creator>
      <dc:date>2025-06-24T14:30:21Z</dc:date>
    </item>
  </channel>
</rss>

