Repair a damaged Xsan filesystem

Unmount and stop your Xsan filesystem before checking or repairing it. Running cvfsck on filesystems that are mounted may result in incorrect indications that the filesystem is corrupted.

Determine if an Xsan filesystem is damaged

Use these commands in Terminal:

sudo cvfsck -j VolumeName

sudo cvfsck -nv VolumeName

Replace VolumeName with the actual name of the Xsan volume.

While cvfsck is running, it produces statistics about the state of the filesystem. After the statistics appear, there might be an alert that the filesystem has been modified. This alert means that your filesystem needs to be repaired. If you see this message, you should continue with the next set of steps for your version of Xsan.

If you're concerned that the filesystem status is reported as "Clean" or "Dirty", learn how to use cvfsck to decide if you need to make a repair. If cvfsck reports that a filesystem is "Dirty", this doesn't necessarily mean the filesystem needs repair.