beautypg.com

Apple Xsan 1.4 User Manual

Page 88

background image

88

Chapter 3

Managing SAN Storage

3

In Terminal, type

$ sudo cvmkdir -k affinity path

where

affinity

is the affinity name of a storage pool in the volume and

path

is the

full path to the folder on the volume. If the name of the storage pool is 8 characters or

less, you can use the storage pool name for the affinity name. If the storage pool name

is longer than 8 characters, you must use the affinity name instead of the storage pool

name.

To see a storage pool’s affinity name, use the

cat

command in Terminal or use a text

editor such as TextEdit to look at the configuration file for the volume on the controller:

/Library/Filesystems/Xsan/config/.cfg

The affinity name for the storage pool is listed in this file next to the Affinity keyword in

the block of parameters for the storage pool (called a “stripe group” in the

configuration file). Look in the section of the file that defines stripe groups.

For example, to assign an affinity for the storage pool “pool1” to folder “gina audio”

which is inside the folder “projects” on the volume “audio,” you would type

$ sudo cvmkdir -k pool1 /Volumes/audio/projects/gina\ audio