
Appendix B Using the Command Line 11 7
To list available LUNs:
$ sudo cvlabel -l [-s] [-v]
To list current LUN and label information you can paste into a label le:
$ 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 le.
-f
Relabels LUNs that are labeled.
labelfile
An optional le containing information for each
label. You can use the -c option to create this le.
lun
The LUN identied by disk name—for example:
/dev/disk4.
-u
Unlabel the specied LUN.
Creating a Folder and Assigning an Anity (cvmkdir)
Use the cvmkdir command to create a folder (directory) and assign it an anity tag so
that its contents are stored on storage pools with the same anity tag.
$ cvmkdir -k affinity folder
Parameter Description
-k affinity
Species the anity tag to be associated with the
folder.
affinity – the anity tag that’s assigned to
the storage pools where you want the folder’s
contents to be stored
You can use the
show long command of the
cvadmin tool to see a storage pool’s anity tag.
You can use
-k "" to remove the folder’s anity
tag.
folder
The path to and name of the folder.
Kommentare zu diesen Handbüchern