Assigning an affinity to a folder within a folder – Apple Xsan 1.1 User Manual
Page 58
58
Chapter 3
Managing SAN Storage
Assigning an Affinity to a Folder Within a Folder
You can use Xsan Admin to assign an affinity to a folder at the top, or root, level of a
volume, but to assign an affinity to a folder that is inside another folder you need to
use the
cvmkdir
command-line tool.
To assign a storage pool affinity to a folder within a folder:
1
Open Terminal (in /Applications/Utilities).
2
If you are not working at a SAN controller, use SSH to log in to the controller remotely:
$ ssh user@computer
where
user
is an administrator user on the controller computer and
computer
is the
controller’s name or IP address.
3
In Terminal, type
$ cd /Library/Filesystems/Xsan/bin
$ 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:
/Library/Filesystems/Xsan/config/<volume>.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