On the server the command
volutil shutdown will stop the server.
If it is really toasted, you might need to kill the codasrv
To restart the server issue the command
startserver. This shell
codasrv with the correct arguments. If it
complains about a server already running do the following: first check
ps auxww | grep codasrv if this is the case. If not,
remove the file
/vice/srv/pid and reissue the
It is a good idea to create a few extra volumes on your server and
mount these in the coda directory tree. In particular if you want to
explore reintegration, conflict resolution and replication servers we
recommend that you do that in new volumes and not in the volume
mounted on the root of the Coda filesystem.
To make a new volume:
- make sure your codasrv, updatecln and updatesrv are running.
createvol_rep volname vsgaddr partitionname. Typically
you determine your own volume name, the VSG address can be found in
/vice/db/VSGDB and the partition name will be /vicepa.
- mount the volume using
cfs makemount path volumename.
This creates the mount point, and mounts the volume.
To explore volumes you can use other cfs commands, such as
cfs whereis path and
cfs listvolume path. To see the FID of
a file type
cfs getfid path.
As of release 5.2 we have a tool to manage the user database. It is
basic, but can handle things like hierarchical groups and is a major
improvement over the old tools.
- Run pdbtool on the SCM. Type help to see commands, and type the command
without arguments to get more help. There is also a manpage for
pdbtool which you may want consult.
- Add the user and her user id with the nui command.
- Add the user to any groups you want.
- Give the new user a password by using the
au nu program
(from either a client or a server).
The user should now be able to login to Coda just like the first user
set up at installation time.
Note: Conversion from a pre 5.2 version of the user databases is
done with the
pwdtopdbtool tool. This script takes no arguments
and converts old databases to new; it overwrites the new
You can set and list Access Control Lists on directories using
cfs setacl dir user rights [user rights...]. To show the ACLs type
cfs listacl directory.
codacon to see many RPC's and a few other actions taken by
the client. The file
/usr/coda/etc/console also has
To see how a server is doing use
cmon, in the form
server:25, 25 depicts the width of the column used by the server.
First create a new volume, not equal to your root volume, to explore
this. Should you get conflicts in your root volume then they will be
hard to repair. See below how to add a volume.
- change directory into this volume. Do "ls -l" on the directory
where you want to start work while disconnected. Get tokens using
cfs disconnect or disconnect your network. After 30
seconds you can see that codacon (which you should always run)
displays that your server is not reachable anymore.
- do some work disconnected, create some files, edit them etc.
cfs reconnect. Venus will discover that the net is
up, but you can speed that up by typing
Monitoring codacon, you will see that your changes are being
To start Coda while disconnected, you need the ip addresses and
hostnames of your servers in
Files and directories can get into conflict due to disconnections of
clients or servers from the net, as well as through overlapping
open/write/close sequences on two clients. A object that is in
conflict is representd as a dangling symbolic link and
X->@vol.vnode.unique is the file the symlinks points to.
How do we get rid of this conflict?
cfs beginrepair X. This changes X from a symlink
into a directory. By doing
ls X you will see either
server1 server2 server3. In the first case we have a
local global conflict and in the second case a server server conflict.
- If the objects in the directory
X are files, you have a
file conflict, they can also be directories, in which case you can
find the content underneath.
- If you are nervous, this is a good moment to make copy of your
files. They can be found under the directory X while the repair
session is in progress.
cfs endrepair X closes up the repair
- All local global conflicts are repaired with
repair and follow its cryptic instructions.
- Server-server conflicts on files are fixed with either
filerepair or with
removeinc. Server-server conflicts on
directories are fixed with
First you will have to add a second server to your Coda cluster.
Install the software and use
vice-setup again. This time your
server is not going to be the SCM. Proceed answering the
questions until done.
On the SCM add the following:
You can now use this volume and your files will automatically be
stored on multiple servers. To temporarily disable a server, and see
that things continue to function normally, either shut the server down
- Your server needs a server number, to be added to the
/vice/db/servers file ON THE SCM.
- Make two new entries in the
/vice/db/VSGDB file. One
for your new server by itself, one of the form:
- Start updatesrv and updateclnt on the second server.
- Start codasrv on the second server
- Make a new volume from the SCM using
giving the address of the volume as
- Mount the volume as above.
volutil shutdown or disconnect its network. You can also
isolate the server using our network filters with
-s server-name. Using
filcon clear server-name clears the
Modifications made to coda files during the server outage will be
resolved when the files are first accessed. You see message of the
Resolve path in the codacon output. By typing
checkservers you can see if the server is available again.