Appendix c: use command-line tools, Use shell commands, Send commands to remote computers – Apple Xsan 2 User Manual
Page 142: 142 use shell commands 142, Use command-line tools

142
You can use Xsan shell commands and configuration files to
work with a SAN from the command line.
You can use the shell commands and configuration files described here to access, set
up, and manage Xsan SANs, LUNs, storage pools, and volumes from the command line.
The Terminal app is the Mac OS X gateway to the BSD command-line interface (UNIX
shell command prompt). Each window in Terminal contains a complete command-line
execution context, called a shell, that is separate from all other execution contexts.
Although you can use any shell of your choice, the examples in this book assume that
you’re using
bash
, the standard Mac OS X shell.
Use shell commands
The Xsan command-line utilities are located in /System/Library/Filesystems/acfs.fs/
Contents/bin/.
Many commands used to manage Xsan must be executed by the root user (also
known as the superuser). If you get a message such as “permission denied,” the
command probably requires root user privileges.
To execute a single command with root user privileges, begin the command with
sudo
(short for superuser do). For example:
$ sudo cvfsck -n MyVolume
If you haven’t used
sudo
recently, you’re prompted for the password for your
administrator account.
Send commands to remote computers
To use commands on a remote computer, first use SSH to log in to the other computer:
$ ssh user@computer
Replace
user
with the name of a user account on the remote computer and
computer
with its IP address or DNS name.
A
pp
endix
C
Use command-line tools