Xsan 2 Administrator Guide - Defragmenting a Volume

background image

Defragmenting a Volume

Defragmenting a file reassembles its pieces into the most efficient arrangement. You
can use the

snfsdefrag

command to defragment a file, a folder, or an entire volume.

To defragment a file, folder, or volume:

1

Open Terminal (in /Applications/Utilities/).

2

If you aren’t working at the SAN controller computer, use SSH to log in to the controller

remotely:

$ ssh user@computer

Replace

user

with the name of an administrator user on the controller computer and

computer

with the controller’s name or IP address.

3

Run the

snfsdefrag

command.

To defragment individual files:

$ sudo snfsdefrag -v filename [filename ... ]

To defragment a folder:

$ sudo snfsdefrag -vr folder

To defragment a volume, set

folder

to the volume name.

For more information, see the

snfsdefrag

man page or “Defragmenting a File, Folder,

or Volume (snfsdefrag)” on page 119.

64

Chapter 4

Managing SAN Storage

background image

Chapter 4

Managing SAN Storage

65