Xsan 2 Administrator Guide - Repairing a Volume

background image

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 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

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

4

Check the volume to see if additional repairs are required:

$ sudo cvfsck -vn volume

5

If the report generated in the previous step lists additional problems, enter the

following command to perform a full check and repair of the volume:

$ sudo cvfsck -vw volume

For more information about this command, see the

cvfsck

man page.