Defragmenting a volume – Apple Xsan 1.4 User Manual
Page 102
102
Chapter 3
Managing SAN Storage
Defragmenting a Volume
Defragmenting a file reassembles its pieces into the most efficient arrangement. You
can use the
snfsdefrag
command to defragment a single file, a folder (directory of
files), or an entire volume.
To defragment a file, folder, or volume:
1
Open Terminal (in /Applications/Utilities/).
2
If you are not working at the SAN controller computer, 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
Run the
snfsdefrag
command (in /Library/Filesystems/Xsan/bin/).
To defragment one or more individual files:
$ sudo snfsdefrag filename [filename ... ]
To defragment an entire folder:
$ sudo snfsdefrag -r folder
To defragment an entire volume, set
folder
to the root directory of the volume.
For more information see the
snfsdefrag