Skip to content

Latest commit

 

History

History
344 lines (212 loc) · 11.1 KB

xcp-nfs-reference-scan.adoc

File metadata and controls

344 lines (212 loc) · 11.1 KB
sidebar permalink keywords summary
sidebar
xcp-nfs-reference-scan.html
netapp, xcp, reference, nfs, command, commands
XCP NFS command reference

scan

The XCP NFS scan command recursively scans the entire source NFSv3 exported paths and returns file structure statistics.

NetApp recommends that you put the source NFS export mounts in read-only mode during the scan operation.

Syntax
xcp scan <source_nfs_export_path>

The following table lists the scan parameters and their description.

Parameter Description

scan -l

Lists files in the long listing output format.

scan -q

Shows the number of files scanned.

scan -stats

Lists files in the tree statistic report format.

scan -csv

Lists files in the tree statistic CSV report format.

scan -html

Lists files in the tree statistic HTML report format.

scan -nonames

Excludes user and group names from file listings and reports.

scan -newid <name>

Specifies the catalog name for a new index.

scan -id <catalog_name>

Specifies the catalog name of a previous copy or scan index.

scan -match <filter>

Only processes files and directories that match the filter.

scan -fmt <string_expression>

Only processes files and directories that match the format.

scan -du

Summarizes the space usage of each directory, including subdirectories.

scan -md5 <string_expression>

Generates checksums on the files and saves the checksums when indexing (default: false).

scan -depth <n>

Limits the search depth.

scan -dircount <n[k]>

Specifies the request size when reading directories.

scan -edupe

Includes the dedupe estimate in reports.

scan -bs <n[k]>

Specifies the read/write block size for scans that read data using -md5 or -edupe (default: 64k).

scan -parallel <n>

Specifies the maximum number of concurrent batch processes (default: 7).

scan -noId

Disables the creation of a default index (default: false).

scan -subdir-names

Retrieves the names of the top-level subdirectories in a directory.

scan -preserve-atime

Restores all files to the last accessed date on the source.

scan -s3.insecure

Provides the option to use HTTP instead of HTTPS for S3 bucket communication.

scan -s3.endpoint <s3_endpoint_url>

Overrides the default Amazon Web Services (AWS) endpoint URL with the specified URL for S3 bucket communication.

scan -s3.profile <profile_name>

Specifies a profile from the AWS credential file for S3 bucket communication.

scan -s3.noverify

Overrides the default verification of SSL certification for S3 bucket communication.

scan -l

Use the -l parameter with the scan command to list files in the long listing output format.

Syntax
xcp scan -l <ip_address_or_hostname>:/source_vol

scan -q

Use the -q parameter with the scan command to show the number of files scanned.

Syntax
xcp scan -q <ip_address_or_hostname>:/source_vol

scan -stats, scan -csv, and scan -html

Use the -stats, -csv, and -html parameters with the scan command to list files in the tree statistic report format.

Note
XCP reports (.csv, .html) are saved in the catalog location specified in the xcp.ini file. The files are stored in the <catalog path>/catalog/indexes/1/reports folder. You can view sample reports in the appendix.
Syntax
xcp scan -stats <ip_address>:/source_vol
Syntax
xcp scan -csv <ip_address_or_hostname>:/source_vol
Syntax
xcp scan -html <ip_address_or_hostname>:/source_vol

scan -nonames

Use the -nonames parameter with the scan command to exclude user and group names from file listings or reports.

Note
When used with the scan command, the -nonames parameter only applies to file listings returned using the -l option.
Syntax
xcp scan -nonames <ip_address_or_hostname>:/source_vol

scan -newid <name>

Use the -newid <name> parameter with the scan command to specify the catalog name for a new index when running a scan.

Syntax
xcp scan -newid <name> <ip_address_or_hostname>:/source_vol

scan -id <catalog_name>

Use the -id parameter with the scan command to specify the catalog name of previous copy or scan index.

Syntax
xcp scan -id <catalog_name>

scan -match <filter>

Use the -match <filter> parameter with the scan command to specify that only the files and directories that match a filter are processed.

Syntax
xcp scan -match <filter> <ip_address_or_hostname>:/source_vol

scan -fmt <string_expression>

Use the -fmt parameter with the scan command to specify that only files and directories that match the specified format are returned.

Syntax
xcp scan -fmt <string_expression> <ip_address_or_hostname>:/source_vol

scan -du

Use the -du parameter with the scan command to summarize the space usage of each directory, including subdirectories.

Syntax
xcp scan -du <ip_address_or_hostname>:/source_vol

scan -md5 <string_expression>

Use the -md5 parameter with the scan command to generate checksums for the file listings and save the checksums when indexing. The default value is set to false.

Note
The checksums are not used for file verification; they are only used for file listings during scan operations.
Syntax
xcp scan -md5 <ip_address_or_hostname>:/source_vol

scan -depth <n>

Use the -depth <n> parameter with the scan command to limit the search depth of a scan. The -depth <n> parameter specifies the depth into the subdirectories that XCP can scan files. For example, if the number 2 is specified, XCP will only scan the first two subdirectory levels.

Syntax
xcp scan -depth <n> <ip_address_or_hostname>:/source_vol

scan -dircount <n[k]>

Use the -dircount <n[k]> parameter with the scan command to specify the request size when reading directories in a scan. The default value is 64k.

Syntax
xcp scan -dircount <n[k]> <ip_address_or_hostname>:/source_vol

scan -edupe

Use the -edupe parameter with the scan command to include the deduplication estimate in reports.

Note
Simple Storage Service (S3) does not support sparse files. Therefore, specifying an S3 bucket as the target destination for scan -edupe returns the value "None" for sparse data.
Syntax
xcp scan -edupe <ip_address_or_hostname>:/source_vol

scan -bs <n[k]>

Use the -bs <n[k]> parameter with the scan command to specify the read/write block size. This applies to scans that read data using the -md5 or -edupe parameters. The default block size is 64k.

Syntax
xcp scan -bs <n[k]> <ip_address_or_hostname>:/source_vol

scan -parallel <n>

Use the -parallel parameter with the scan command to specify the maximum number of concurrent batch processes. The default value is 7.

Syntax
xcp scan -parallel <n> <ip_address_or_hostname>:/source_vol

scan -noId

Use the -noId parameter with the scan command to disable the creation of a default index. The default value is false.

Syntax
xcp scan -noId <ip_address_or_hostname>:/source_vol

scan -subdir-names

Use the -subdir-names parameter with the scan command to retrieve the names of the top-level subdirectories in a directory.

Syntax
xcp scan -subdir-names <ip_address_or_hostname>:/source_vol

scan -preserve-atime

Use the -preserve-atime parameter with the scan command to restore all files to the last accessed date on the source.

When an NFS share is scanned, the access time is modified on the files if the storage system is configured to modify access time on read. XCP does not directly change the access time. XCP reads the files one by one and this triggers an update to the access time. The -preserve-atime option resets the access time to the original value set before the XCP read operation.

Syntax
xcp scan -preserve-atime <ip_address_or_hostname>:/source_vol

scan -s3.insecure

Use the -s3.insecure parameter with the scan command to use HTTP instead of HTTPS for S3 bucket communication.

Syntax
xcp scan -s3.insecure s3://<bucket_name>

scan -s3.endpoint <s3_endpoint_url>

Use the -s3.endpoint <s3_endpoint_url> parameter with the scan command to override the default AWS endpoint URL with a specified URL for S3 bucket communication.

Syntax
xcp scan -s3.endpoint https://<endpoint_url>: s3://<bucket_name>

scan -s3.profile <name>

Use the s3.profile parameter with the scan command to specify a profile from the AWS credential file for S3 bucket communication.

Syntax
xcp scan -s3.profile <name> -s3.endpoint https://<endpoint_url>: s3://<bucket_name>

scan -s3.noverify

Use the -s3.noverify parameter with the scan command to override the default verification of SSL certification for S3 bucket communication.

Syntax
xcp scan -s3.noverify s3://<bucket_name>