User Guide

68 Chapter 4 Managing SAN Storage
Checking the Integrity of a Volume
If SAN users are having trouble accessing files, you can use the cvfsck command to
check the integrity of a volume, its metadata, and its files.
To check a 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 cvfsck command-line utility (in /Library/Filesystems/Xsan/bin/) to check the
volume without making repairs:
$ sudo cvfsck -vn
volume
You’ll see a warning that the journal is active; this is normal.
For more information about this command, see the cvfsck man page.
Repairing a Volume
If the cvfsck utility reveals problems with a volume, you can use the same command
to repair the volume.
To repair a volume:
1 Stop the volume.
Open Xsan Admin, select the volume, and click Stop Volume in the Action (gear) pop-
up menu.
2 Open Terminal (in /Applications/Utilities/).
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 cvfsck command-line utility (in /Library/Filesystems/Xsan/bin/) to replay the
events that are recorded in the file system journal:
$ sudo cvfsck -j
volume