ONTAP Discussions

Is it possible to exclude User from LastAccessDate?

HansMeier
3,552 Views

My Company has written a software that scans all files on the Netapp in the background.

 

Unfortunately as the software reads all the files on Netapp, the LastAccessTime is overwritten.

 

So my Question is it possible to exclude a specific user from LastAccessTime?

So that specific user doesn't change the LastAccessTime

 

Thank your for your help

6 REPLIES 6

paul_stejskal
3,526 Views

Mount NFS with noatime mount option?

HansMeier
3,469 Views

Unfortunately the application runs on a Windows Server.

We tried it with the following command: fsutil behavior set disablelastaccess 1 

This works for files on the Server but not for files on the Netapp Share.

 

Is there any other option?

 

paul_stejskal
3,462 Views

No. Why are you scanning all files? Perhaps we can come up with an alternative.

HansMeier
3,351 Views

Thank you for your help and quick response time.

We are indexing the content of those files and therefore need to read them.

At the moment our application simply mounts those shares and scans them like any normal network drive.

Is there any option to disable Access Time for the Netapp Share for this particular user?

paul_stejskal
3,349 Views

I got an idea: mount as a FlexClone. How soon do you need the data to be up to date?

 

I don't think there is an option unfortunately. Maybe use WSL2 and mount over NFS? I know it works (a bit hacky but works).

GidonMarcus
3,335 Views

Hi.

 

Did earlier test, seems that if the user only have read access to the share (didn't check/change NTFS), the attribute does not get updated when the file get opened.


 cifs share access-control show -share gidi*
Share User/Group User/Group Access
Vserver Name Name Type Permission
-------------- ----------- --------------------------- ----------- -----------
SVM gidi_test$ Gidi windows Read

Gidi Marcus (Linkedin) - Storage and Microsoft technologies consultant - Hydro IT LTD - UK
Public