Skip to main content

Coming soon...New Support-Specific categorization of Knowledge Articles in the NetApp Knowledge Base site to improve navigation, searchability and your self-service journey.

NetApp Knowledge Base

Not able to set LastAccessDate to a file

Views:
32
Visibility:
Public
Votes:
0
Category:
ontap-9
Specialty:
nas
Last Updated:

Applies to

ONTAP 9

Issue

  • Setting LastAccessDate in the future on the non-snaplock volume throws error starting ONTAP.10.1 (same error can be seen in ONTAP 9.11)
  • Before (ONTAP 9.9.1 and earlier) there is no error thrown but the date is set silently to January 19, 2038 3:14:07 AM
  • Bellows you can see examples of the behavior in ONTAP 9.9.1 and ONTAP 9.10.1:

==================================================================
ONTAP 9.9.1:
==================================================================
PS C:\Users\Administrator.DEMO> (Get-Item "Z:\test1.txt").LastAccessTime

Tuesday, September 20, 2022 9:10:00 AM

PS C:\Users\Administrator.DEMO> (Get-Item "Z:\test1.txt").LastAccessTime=("3 August 2222 17:10:00")
PS C:\Users\Administrator.DEMO> (Get-Item "Z:\test1.txt").LastAccessTime

Tuesday, January 19, 2038 3:14:07 AM
==================================================================


==================================================================
ONTAP 9.10.1: 
==================================================================
PS Z:\> (Get-Item "Z:\test1.txt").LastAccessTime
Tuesday, September 20, 2022 8:32:58 AM

PS Z:\> (Get-Item "Z:\test1.txt").LastAccessTime=("3 August 2222 17:10:00")
Exception setting "LastAccessTime": "A device attached to the system is not functioning.
"
At line:1 char:1
+ (Get-Item "Z:\test1.txt").LastAccessTime=("3 August 2222 17:10:00")
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], SetValueInvocationException
+ FullyQualifiedErrorId : ExceptionWhenSetting

PS Z:\> (Get-Item "Z:\test1.txt").LastAccessTime

Tuesday, September 20, 2022 8:32:58 AM
==================================================================

Sign in to view the entire content of this KB article.

New to NetApp?

Learn more about our award-winning Support

Scan to view the article on your device