NS0-093 practice question 13 of 15

You have identified that the file named quarterly_25.docx is inconsistent. Which nodeshell command reports whether there are Snapshot copies available?

Full set: 61 questions

Domain NETAPP DATA STORAGE SOFTWARE

Answer options
A: “priv set advanced; file check –f quarterly_25.docx”
B: “priv set diag; file check –v –i ” Correct answer
C: “priv set diag; snap list –f quarterly_25.docx”
D: “priv set advanced; aggr wafliron start –f quarterly_25.docx”
Correct Answer:
B. “priv set diag; file check –v –i ”
Explanation

The file check command, when executed from the diagnostic privilege level (priv set diag) with the verbose (-v) option, provides a detailed block map of the specified file. This output includes the Snapshot copy ID associated with each block of the file. By examining this output, an administrator can determine which Snapshot copies contain valid blocks for the inconsistent file, thereby reporting which Snapshot copies are available for a potential restoration. The command requires the file's inode number, which can be obtained using other nodeshell commands.

Why Incorrect

A. The file check command in the advanced privilege level is used to verify the consistency of a file's metadata but does not provide detailed information about which Snapshot copies contain the file's blocks.
C. The snap list command is used to list Snapshot copies for an entire volume. It does not have a -f flag or any other option to query for Snapshot copies of a specific, individual file.
D. The aggr wafliron start command initiates the WAFL Iron consistency checker on an entire aggregate, which is a disruptive and resource-intensive operation used to fix filesystem corruption, not to inspect a single file.

References

1. NetApp ONTAP 9 Commands: Manual Page Reference

Document: file(8) manual page available in the ONTAP nodeshell.

Section/Content: The manual page for the file command family, accessible via the nodeshell (man file), describes the check subcommand. In the diag privilege level, the -v (verbose) option is documented to display "the block map of the file, including the snapshot id for each block." This directly supports that file check -v is the correct tool for this purpose.

2. NetApp Technical Report TR-4479: Data Protection and Recovery with the WAFL File System

Section: "File System Consistency and Recovery"

Content: This document explains the role of WAFL and its recovery mechanisms. While it doesn't detail the specific file check command syntax, it establishes the context of file-level inconsistency and the importance of Snapshot copies for recovery. It implicitly supports the need for a tool to identify which snapshots contain a valid copy of a file, a function fulfilled by the file check -v command.

3. NetApp Knowledge Base Article 1013751: "How to use the file and lun check commands in ONTAP"

Section: "File Check"

Content: This KB article details the usage of the file check command. It specifies that running the command in the diagnostic privilege level with the -v flag will "display the block map of the file, including the snapshot id for each block," confirming this is the correct procedure to identify which snapshots contain a file's data.

Scroll to Top