beautypg.com

Manipulate affinity tags (cvaffinity), Copy files or folders (cvcp) – Apple Xsan 2 User Manual

Page 149

background image

Appendix C

Use command-line tools

149

Manipulate affinity tags (cvaffinity)

Use the

cvaffinity

command to assign an affinity tag to a folder or a file or to list the

affinity tag assigned to a folder or a file.

Assigning an affinity tag to a folder or file causes it to be stored on a storage pool that
has the same affinity tag. You can see the affinity tags for available storage pools by
using the

show long

command of the

cvadmin

tool.

Set an affinity tag for a folder or file:

$ cvaffinity -s affinity target

List the affinity tag assigned to a folder or file:

$ cvaffinity -l target

Delete the affinity tag from a folder or file:

$ cvaffinity -d target

Parameter

Description

affinity

The affinity tag that’s assigned to the storage
pools where you want the target folder or file to
be stored.

target

The path to and name of the folder or file.

Copy files or folders (cvcp)

Use the

cvcp

command to copy files or folders to or from an Xsan volume.

$ cvcp [options] source destination

Parameter

Description

options

See “cvcp command options” below.

source

The file or folder (directory) to be copied.

destination

Where the copy is created.

cvcp command options

Option

Description

-A

Turn off preallocation.

-b buffers

Set the number of I/O buffers to use.

buffers

– the number of buffers to use for

the copy

-k size

Set the copy buffer size.

size

– the buffer size (bytes)