Label, list, and unlabel luns (cvlabel) – Apple Xsan 2 User Manual
Page 151

Appendix C
Use command-line tools
151
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.
Label, list, and unlabel LUNs (cvlabel)
Use the
cvlabel
command to initialize LUNs so they can be added to storage pools.
For details, see the
cvlabel
man page.
List available LUNs:
$ sudo cvlabel -l [-s] [-v]
Note: This command lists all disks, not just the available LUNs.
List current LUN and label information you can paste into a label file:
$ sudo cvlabel -c
Note: This command lists all disks, not just the available LUNs.