
Appendix B Using the Command Line 11 9
Initializing a Volume (cvmkfs)
Use the cvmkfs command to initialize an Xsan volume based on the information in the
volume’s conguration (in /Library/Filesystems/Xsan/cong/volume.cfg).
WARNING: Initializing a volume destroys all existing data on the volume.
$ sudo cvmkfs [-G] [-F] [volume]
Parameter Description
-G
Don’t display “Press return to continue” prompts.
-F
Don’t display warning and verication prompts.
Use with caution.
volume
The name of the volume to initialize. This name
matches the name of a conguration (.cfg) le in
/Library/Filesystems/Xsan/cong/.
Applying Volume Conguration Changes (cvupdatefs)
Use the cvupdatefs command to apply conguration le changes to a volume after
you modify the volume’s conguration les.
$ sudo cvupdatefs [-f] volume [configdir]
Parameter Description
-f
Update without prompting for conrmation or
advising of errors in the conguration le.
volume
The volume to update. If you don’t specify a
volume, available volumes are listed for you to
choose from.
configdir
Location of the volume’s conguration (.cfg)
le if it’s not in the default location (/Library/
Filesystems/Xsan/cong/).
Defragmenting a File, Folder, or Volume (snfsdefrag)
Use the snfsdefrag command to defragment a le by reallocating its data in a single
extent. This can improve read and write performance for a le by increasing disk
eciency and reducing le metadata management overhead.
To defragment a le or folder:
$ snfsdefrag [-D] [-d] [-q] [-s] [-v] [-K affinity] [-k affinity] [-m
count] [-r] target
To report le extents without defragmenting:
$ snfsdefrag -e [-K affinity] [-r] target [target] [...]
Kommentare zu diesen Handbüchern