beautypg.com

Apple Xsan 2 User Manual

Page 146

background image

146

Appendix C

Use command-line tools

Parameter

Description

-H host

The metadata controller that is hosting the
volume. If not provided, the local computer is
assumed.

host

– the IP address or DNS name of a

metadata controller other than the one you’re
logged in on.

-F volume

The volume to be the active (“selected”) volume
in

cvadmin

.

volume

– the name of an Xsan volume

-f cmdfile

Read commands from the specified file.

cmdfile

– the name of a text file containing

cvadmin

commands

-e command

Execute the specified command and return
to the shell prompt. Otherwise,

cvadmin

continues to run in interactive mode with the
prompt

Xsanadmin>

. If you include parameters

(

cmdparam

) with the command, enclose the

command and its parameters in a pair of quotes.
Available commands are listed in “cvadmin
commands
” below.

cmdparam

Values required by the command.

cvadmin commands

Commands available in the

cvadmin

tool are listed in the following table.

cvadmin command

Description

activate
[volume|index]

Choose the active volume that you want to work
with interactively.

volume

– the name of the volume

index

– the numeric ID of the volume (to

see a list of these, use the

cvadmin select

command without any parameters)

disks [refresh]

List LUNs.

down pool

Disallow all access to a storage pool.

pool

– the name of a storage pool in the

currently active volume