Xsan 2 Administrator Guide - Labeling, Listing, and Unlabeling LUNs (cvlabel)

background image

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.

background image

Appendix B

Using the Command Line

117

To list available LUNs:

$ sudo cvlabel -l [-s] [-v]

To list current LUN and label information you can paste into a label file:

$ sudo cvlabel -c

To label a LUN:

$ sudo cvlabel [-v] [-f] [labelfile]

To remove the label from a LUN:

$ sudo 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 labeled.

labelfile

An optional file containing information for each
label. You can use the -c option to create this file.

lun

The LUN identified by disk name—for example:
/dev/disk4.

-u

Unlabel the specified LUN.