User guide

Appendix B Using the Command Line 111
Tool Description
cvmkfile
Create and preallocate a le; see page 118
cvmkfs
Initialize a volume; see page 11 9
cvupdatefs
Apply volume setup changes; see page 119
snfsdefrag
Defragment a volume; see page 11 9
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 le:
$ 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 specied le.
cmdfile – the name of a text le containing
cvadmin commands