Checking or repairing a volume (cvfsck), Checking or repairing a volume ( cvfsck ) – Apple Xsan 1.1 User Manual

Page 113

Advertising
background image

Appendix B

Using the Command Line

113

Examples

Copy the file friday to /datasets/data1/july:

$ cvcp friday /datasets/data1/july

Copy directory /data1 and all sub-directories to /datasets/data1, retaining all
permissions and ownerships and displaying files as they are copied:

$ 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

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.

Advertising