Assigning an affinity to a folder within a folder, Removing an affinity – Apple Xsan 1.0 User Manual
Page 47

Chapter 3
Managing SAN Storage
47
Assigning an Affinity to a Folder Within a Folder
You can use Xsan Admin to assign an affinity to a folder at the top 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 name of a storage pool in the volume and
path
is the full path
to the folder on the volume.
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
Removing an Affinity
The way you remove an affinity depends on whether the affected folder is at the top
level of the volume or inside another folder.
To remove a storage pool affinity from a folder:
1
If the folder is at the top level of the volume (not within another folder), open Xsan
Admin, select the volume, click Affinities, double-click the folder and choose Any
Storage Pool from the Storage Pool Affinity pop-up menu.
If the folder is inside another folder on the volume, continue with the next step.
2
Open Terminal (in /Applications/Utilities).
3
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.
4
In Terminal, type
$ cd /Library/Filesystems/Xsan/bin
$ sudo ./cvmkdir -k ““ path
where
path
is the full path to the folder on the volume.
LL0192.book Page 47 Thursday, July 29, 2004 5:20 PM