Xsan 2 Administrator Guide - Creating a Folder and Assigning an Affinity (cvmkdir)

background image

Creating a Folder and Assigning an Affinity (cvmkdir)

Use the

cvmkdir

command to create a folder (directory) and assign it an affinity tag so

that its contents are stored on storage pools with the same affinity tag.

$ cvmkdir -k affinity folder

Parameter

Description

-k affinity

Specifies the affinity tag to be associated with the
folder.

affinity

– the affinity tag that’s assigned to

the storage pools where you want the folder’s
contents to be stored
You can use the

show long

command of the

cvadmin

tool to see a storage pool’s affinity tag.

You can use

-k ""

to remove the folder’s affinity

tag.

folder

The path to and name of the folder.

background image

118

Appendix B

Using the Command Line