Viewing or changing volume and, Storage pool settings (cvadmin) – Apple Xsan 2 (Third Edition) User Manual
Page 111

Appendix B
Using the Command Line
111
Tool
Description
cvmkfile
Create and preallocate a file; see page 118
cvmkfs
Initialize a volume; see page 119
cvupdatefs
Apply volume setup changes; see page 119
snfsdefrag
Defragment a volume; see page 119
xsanctl
Mount and unmount Xsan volumes; see page 121
Viewing or Changing Volume and Storage Pool Settings (cvadmin)
Use the
cvadmin
tool to perform status and setup tasks related to Xsan volumes.
For help, see the
cvadmin
man page or enter:
$ sudo cvadmin -e help
To enter interactive mode:
$ sudo cvadmin
To execute commands from a file:
$ sudo cvadmin [-H host] [-F volume] -f cmdfile
To execute a single command and return to the shell prompt:
$ sudo cvadmin [-H host] [-F volume] -e ["]command [cmdparam..."]
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