Skip to main content
NetApp Knowledge Base

What would happen if storage time changes while editing a file?

Views:
64
Visibility:
Public
Votes:
0
Category:
fas-systems
Specialty:
core
Last Updated:

Applies to

  • ONTAP 9
  • NFS

Answer

  • Subsequent editing and saving work without problem.
  • After the file is saved, new storage time will be applied to it.
Example 
 
[root@linux mnt]# stat f1
  File: ‘f1’
  Size: 39              Blocks: 0          IO Block: 65536  regular file
Device: 5eh/94d Inode: 12391       Links: 1
Access: (0644/-rw-r--r--)  Uid: (   99/  nobody)   Gid: (   99/  nobody)
Access: 2024-03-26 00:20:31.536752000 +0000
Modify: 2024-03-26 00:20:31.536757000 +0000
Change: 2024-03-26 00:20:31.536760000 +0000
Birth: -

[root@linux mnt]# vi f1

cluster1::*> date
Node      Date                     Time zone
--------- ------------------------ -------------------------
cluster1-01
          Tue Mar 26 00:27:10 2024 Etc/UTC
cluster1-02
          Tue Mar 26 00:27:10 2024 Etc/UTC
2 entries were displayed.
 
cluster1::*> cluster date modify -node * -dateandtime 202403260010.00
 
cluster1::*> date
Node      Date                     Time zone
--------- ------------------------ -------------------------
cluster1-01
          Tue Mar 26 00:10:02 2024 Etc/UTC
cluster1-02
          Tue Mar 26 00:10:02 2024 Etc/UTC
2 entries were displayed.
 
Save the file and exist 'vi'
 
[root@linux mnt]# stat f1
  File: ‘f1’
  Size: 57              Blocks: 0          IO Block: 65536  regular file
Device: 5eh/94d Inode: 12393       Links: 1
Access: (0644/-rw-r--r--)  Uid: (   99/  nobody)   Gid: (   99/  nobody)
Access: 2024-03-26 00:10:08.813645000 +0000
Modify: 2024-03-26 00:10:08.813655000 +0000
Change: 2024-03-26 00:10:08.813666000 +0000
Birth: -

 

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.