beautypg.com

Xsan commands, 110 xsan commands – Apple Xsan 2 (Third Edition) User Manual

Page 110

background image

110

Appendix B

Using the Command Line

To install Xsan on a computer that has no keyboard or monitor:

1

Log in to a computer that has a keyboard and monitor, and then insert the Xsan Install

Disc.

2

Open the Terminal application (in /Applications/Utilities/).

3

In Terminal, copy the Xsan installer package to the remote computer:

$ scp -r /Volumes/Xsan\ Install\ Disc/Install\ Xsan.mpkg user@

remotehost

:/tmp/

Replace

user

with the name of an administrator user on the remote computer and

remotehost

with the IP address or DNS name of the computer you want to install on.

To install only the Xsan Admin application, enter:

$ scp -r /Volumes/Xsan\ Install\ Disc/Other\ Installs/XsanAdmin.mpkg/

user

@remotehost:/tmp/

4

Log in to the remote computer:

$ ssh user@remotehost

Replace

user

and

remotehost

with the same information as in the previous step.

5

Run the installer on the headless computer:

To install the Xsan file system and Xsan Admin application, enter:

Â

$ sudo installer -pkg /tmp/Install\ Xsan.mpkg -target /

To install only the Xsan Admin application, enter:

Â

$ sudo installer -pkg /tmp/Install\ Xsan.mpkg/Contents/Installers/

XsanAdminApp.pkg/ -target /

To monitor the installation, add the

Â

-verbose

parameter:

$ sudo installer -verbose -pkg /tmp/Install\ Xsan.mpkg -target /

Xsan Commands

Xsan includes these command-line tools:

Tool

Description

cvadmin

View or change volume and storage pool
settings; see page 111

cvaffinity

Manipulate affinity tags manually; see (page 114

cvcp

Copy files or folders; see page 115

cvfsck

Check or repair a volume; see page 116

cvlabel

View, label, and initialize LUNs; see page 116

cvmkdir

Create a folder and assign an affinity; see page 117