Manipulating affinity tags (cvaffinity) – Apple Xsan 2 (Third Edition) User Manual
Page 114

114
Appendix B
Using the Command Line
cvadmin command
Description
show [pool] [long]
List storage pool information for the active
volume.
pool
– the name of a storage pool in the
currently active volume
start volume [on] [controller]
Start a volume based on the information in its
configuration file (/Library/Filesystems/Xsan/
config/volume.cfg).
volume
– the name of an Xsan volume
controller
– The address of the metadata
controller to start the volume’s FSM process on
stat
Display information about the active volume.
stop volume
Stop a volume and its FSM process on all
metadata controllers.
up pool
Allow access to the specified storage pool.
pool
– the name of a storage pool in the
currently active volume
who
Display client information for the active volume.
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.