Labeling, listing, and unlabeling luns (cvlabel), Labeling – Apple Xsan 1.4 User Manual
Page 172
172
Appendix B
Using the Command Line
Labeling, Listing, and Unlabeling LUNs (cvlabel)
You can use the
cvlabel
command to initialize LUNs so they can be added to storage
pools. For additional details, see the
cvlabel
man page.
To list available LUNs:
$ cvlabel -l [-s] [-v]
To list current LUN and label information you can paste into a label file:
$ cvlabel -c
To label a LUN:
$ cvlabel [-v] [-f] [labelfile]
To remove the existing label from a LUN:
$ cvlabel -u lun
Parameter
Description
-l
List available LUNs.
-s
Display device serial numbers.
-v
Show progress display.
-c
Create a label template file.
-f
Relabels LUNs that are already labeled.
labelfile
An optional file containing information for each label. You can
use the -c option to create this file, or use this file as a template:
/Library/Filesystems/Xsan/examples/cvlabels.example
lun
The LUN identified by disk name, for example /dev/disk4.
-u
Unlabel the specified LUN.