Checking or repairing a volume (cvfsck), Labeling, listing, and unlabeling luns (cvlabel), Labeling – Apple Xsan 2 (Third Edition) User Manual
Page 116: Listing, and unlabeling luns (cvlabel)

116
Appendix B
Using the Command Line
$ cvcp -vxy data1 /datasets/data1
Perform a similar copy as above, but only copy files with names that begin “jul”:
$ cvcp -vxy -p jul data1 /datasets/data1/july
Checking or Repairing a Volume (cvfsck)
Use the
cvfsck
command to check or repair an Xsan volume.
$ sudo cvfsck [options] volume
Parameter
Description
options
See “cvfsck Command Options” below.
volume
The name of the volume to check or repair.
cvfsck Command Options
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.
–w
Modify the file system as needed to repair
problems.
-x
Report statistics in comma-separated form for
use in a spreadsheet.
Labeling, Listing, and Unlabeling LUNs (cvlabel)
Use the
cvlabel
command to initialize LUNs so they can be added to storage pools.
For details, see the
cvlabel
man page.