Skip to main content
NetApp Response to Russia-Ukraine Cyber Threat
In response to the recent rise in cyber threat due to the Russian-Ukraine crisis, NetApp is actively monitoring the global security intelligence and updating our cybersecurity measures. We follow U.S. Federal Government guidance and remain on high alert. Customers are encouraged to monitor the Cybersecurity and Infrastructure Security (CISA) website for new information as it develops and remain on high alert.
NetApp Knowledge Base

What is the meaning of 'On-Demand scan failed to set the scan status for the file. Reason: Stale NFS file handle'?

Views:
329
Visibility:
Public
Votes:
0
Category:
ontap-9
Specialty:
cifs
Last Updated:

Applies to

ONTAP 9.X

Answer

After On-Demand vscan, the following Internal Error is recorded on the scan report.

  • But this is the expected behavior.
  • If you encounter the same error messages after On-demand vscan, ignore it.


Sample: avod_XXX.log
===============================================================================
Vserver : XXXXXX
Task Name: XXXX
===============================================================================

********************************************************
Traversing path: /vol/XXXXXXXXX
********************************************************

/vol/Test/Test99/virus_test.txt: File scanned successfully by Vscanner: "XXX", Scan result: "File is infected", Vendor: "trendmicro", Version: "15.19580", Serviced by node: "XXX", Scan duration in ms: "126", Extended-status: "222200002".
/vol/Test/Test99/virus_test.txt.txt: On-Demand scan failed to set the scan status for the file. Reason: Stale NFS file handle.

/vol/Test/Test99/virus_test.com: File scanned successfully by Vscanner: "XXX", Scan result: "File is infected", Vendor: "trendmicro", Version: "15.19580", Serviced by node: "XXX", Scan duration in ms: "138", Extended-status: "222200002".
/vol/Test/Test99/virus_test.txt.com: On-Demand scan failed to set the scan status for the file. Reason: Stale NFS file handle.

/vol/Test/Test99/virus_test.zip: File scanned successfully by Vscanner: "XXX", Scan result: "File is infected", Vendor: "trendmicro", Version: "15.19580", Serviced by node: "XXX", Scan duration in ms: "123", Extended-status: "222200002".
/vol/Test/Test99/virus_test.zip: On-Demand scan failed to set the scan status for the file. Reason: Stale NFS file handle.

===============================================================================
Summary:
Number of Attempted Scans: 7
Number of Files Skipped from Scanning: 0
Number of Already Scanned Files: 0
Number of Successful Scans: 7
Number of Failed Scans: 0
Number of Timeout Scans: 0
Number of Clean Files: 4
Number of Infected Files: 3
Number of Internal Error: 3
===============================================================================

In vscan process, these are the steps if vscan has checked out the file is infected.

  1. Scanning the file just once.
The scanner reported that the file is infected and ONTAP will log scan result to report as following:

/vol/Test/Test99/virus_test.txt: File scanned successfully by Vscanner: "XXX", Scan result: "File is infected", Vendor: "trendmicro", Version: "15.19580", Serviced by node: "XXX", Scan duration in ms: "126", Extended-status: "222200002".
  1. Next step is trying to set the scan-status to inode for quarantine of infected file.
As the file was already deleted by Vscan software, ONTAP is unable to set scan-status to that file's inode and record the following error on the report.

/vol/Test/Test99/virus_test.zip: On-Demand scan failed to set the scan status for the file. Reason: Stale NFS file handle.

Additional Information

 

 

Scan to view the article on your device