ONTAP Discussions

Is it possible to exclude User from LastAccessDate?

HansMeier
1,232 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
1,206 Views

Mount NFS with noatime mount option?

HansMeier
1,149 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
1,142 Views

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

HansMeier
1,031 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
1,029 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
1,015 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