Xsan 2 Administrator Guide - Manipulating Affinity Tags (cvaffinity)

background image

Manipulating 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.

To set an affinity tag for a folder or file:

$ cvaffinity -s affinity target

To list the affinity tag assigned to a folder or file:

$ cvaffinity -l target

To 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.

background image

Appendix B

Using the Command Line

115