Rename a volume, Check volume fragmentation, Defragment a volume – Apple Xsan 2 User Manual
Page 85

Chapter 5
Manage SAN storage
85
Rename a volume
You can use Xsan Admin to change the name of a volume. You can’t rename an Xsan
volume using the Finder.
Important:
During renaming, the volume is unmounted and restarted, and therefore
unavailable to clients.
Rename a volume:
In Xsan Admin, select Volumes in the SAN Assets list, select the volume, and then
m
choose Rename Volume from the Action pop-up menu (gear).
Check volume fragmentation
When you create a file, Xsan divides the file into pieces and distributes these pieces
efficiently over the LUNs that make up one of the volume’s storage pools. Over time,
as the file is modified, its pieces become fragmented in less efficient arrangements.
You can use the
snsfdefrag
command-line tool to check the amount of file
fragmentation, or use the
cvfsck
command-line tool to check the amount of free
space fragmentation.
Check volume fragmentation:
1
Open Terminal (in the /Applications/Utilities/ folder) on any SAN computer.
If you aren’t working at a SAN computer, use SSH to log in to a SAN computer remotely:
$ ssh user@computer
Replace
user
with the name of an administrator user on the SAN computer and
computer
with the SAN computer’s name or IP address.
If you have trouble making an SSH connection, check the Sharing pane of System
Preferences on the SAN computer to make sure Remote Login service is turned on.
2
To check file fragmentation on a volume, run the
snsfdefrag
command-line tool with
the
-cr
options:
$ sudo snfsdefrag -cr volume
3
To check free space fragmentation on a volume, you must use Terminal on a metadata
controller or use SSH to log in to a controller remotely, and run the
cvfsck
command-
line tool with the
-f
option:
$ sudo cvfsck -f volume
For more information, see the
cvfsck
or
snsfdefrag
man page.
Defragment a volume
Defragmenting a file reassembles its pieces into the most efficient arrangement. You
can use the
snfsdefrag
command-line tool to defragment a file, a folder, or an entire
volume.