Checking or repairing a volume (cvfsck), Checking or repairing a volume ( cvfsck ) – Apple Xsan 1.0 User Manual
Page 89

Appendix B
Using the Command Line
89
Perform a similar copy as above, but only copy files with names that begin “jul”:
$ cvcp -vxy -p jul data1 /datasets/data1/july
Copy directory /datasets to a tar file named /transfers/data.tar:
$ cvcp . - > /transfers/data
Checking or Repairing a Volume (cvfsck)
You can use the
cvfsck
command to check or repair an Xsan volume.
$ cvfsck [options] volume
cvfsck
Command Options
Parameter
Description
options
See “cvfsck Command Options,” below.
volume
The name of the volume to check or repair.
Option
Description
-d
Display extra debugging information.
-e
Display file extents statistics.
-f
Report fragmentation.
-g
Print journal recovery log.
-j
Perform journal recovery.
-J
Display raw journal data.
-K
Reset journal. Warning: Resetting the journal might introduce
metadata inconsistencies. Don’t use unless absolutely necessary.
-l
Record problems in the system log.
-n
Check volume in read-only mode.
-r
Relocate files before changing volume configuration.
-v
Display all available information.
-x
Report statistics in comma-separated form for use in a spreadsheet.
LL0192.book Page 89 Thursday, July 29, 2004 5:20 PM