beautypg.com

Repair a volume – Apple Xsan 2 User Manual

Page 87

background image

Chapter 5

Manage SAN storage

87

Repair a volume

If the

cvfsck

tool reveals problems with a volume, you can use the

cvfsck

command-

line tool to repair the volume.

Repair a volume:

1

Stop the volume.

Open Xsan Admin, select the volume, and click Stop Volume in the Action pop-up
menu (gear).
The volume will be unmounted on all SAN computers.

2

Open Terminal (in the /Applications/Utilities/ folder).

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.

If you have trouble making an SSH connection, check the Sharing pane of System
Preferences on the controller to make sure Remote Login service is turned on.

3

Run the

cvfsck

command-line tool (in /System/Library/Filesystems/acfs.fs/Contents/

bin/) to replay the events that are recorded in the file system journal:

$ sudo cvfsck -j volume

4

Check the volume to see if repairs are required:

$ sudo cvfsck -vn volume

5

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

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

$ sudo cvfsck -vw volume

6

Start the volume, and then remount it on SAN computers.

In Xsan admin, select the volume, and click Start Volume in the Action pop-up menu.
For additional instructions, see “Mount a volume on a client” on page 92.

For more information, see the

cvfsck

man page.