Skip to main content
XCP

Additional NFS features

Contributors netapp-aoife netapp-cgoff

XCP includes some additional NFS features.

Chown and Chmod

You can use the XCP chown and chmod commands to recursively change all of the files and directories for a given NFS share or POSIX path. This increases the performance of millions of files.

Note Before changing the ownership of the files, you must configure the new owner. Otherwise, the command will fail. The XCP chown and chmod commands work similar to the Linux chown and chmod commands.

Chmod

The chmod command scans and changes the file permission of all files in the chosen directory structure. The chmod command requires a mode or reference and an NFS share or POSIX path as variables. XCP chmod recursively changes the permissions for a given path. You can use the chmod command to display the total files scanned and the permissions that have been changed in the output.

Example:

xcp chmod -mode 777 NFS [server:/export path | file://<NFS mounted path>]
xcp chmod -mode 707 nfs_server01.netapp.com:/export1
xcp chmod -reference nfs_server01.netapp.com:/export/dir1/file.txt  nfs_server02.netapp.com: export1
xcp chmod -match “fnm(‘file.txt’)” -mode 111 file:///mnt/nfs_mount_point/
xcp chmod -exclude “fnm(‘file.txt’)” -mode 111 file:///demo/user1/

Run the xcp help chmod command for more information.

Chown

You can use the XCP chown command to recursively change all of the files and directories for a given NFS share or POSIX path. This increases the performance of millions of files.

The chown command scans and changes the ownership of all files in the chosen directory structure. The chown command requires an NFS share or POSIX path as variables. XCP chown recursively changes the ownership for a given path.

Example

xcp chown -user user1 NFS [server:/export path | file://<NFS mounted path>
xcp chown -user user1 nfs_server01.netapp.com:/export1
xcp chown -user user1 -group group1 nfs_server01.netapp.com:/export1/dir1/
xcp chown  -reference nfs_server01.netapp.com:/export/dir1/file.txt  nfs_server02.netapp.com:/export1
xcp chown -match “fnm(‘file.txt’)” -user user1 file:///mnt/nfs_mount_point/
xcp chown -exclude “fnm(‘file.txt’)” -user user1 -group group1
xcp chown -user-from user1 -user user2 file:///mnt/nfs_mount_point/
xcp chown -group-from group1 -group group2 nfs_server01.netapp.com:/export1/

Run the xcp help chown command for more information.

XCP Estimation

The XCP estimation feature estimates the time to complete a baseline copy operation from the source to the destination. It calculates the estimated time to complete a baseline copy operation by using all the currently available system resources such as CPU, RAM, network, or other parameters. When you use the -target option, XCP runs a sample copy operation to find the estimation time.

Example

server : NFS server IP
export : NFS exported path for the above IP

xcp static estimation
xcp estimate -id <scan id>

xcp live estimation with default time
xcp estimate -id <scan id> -target server:/export

xcp live estimation with -t option
xcp estimate -id <scan id> -t <time for which estimation should run> -target server:/export

indexdelete

You can use the indexdelete command to delete catalog indexes.

Example

xcp indexdelete

Run xcp help indexdelete for more details.