<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> <HTML> <HEAD> <META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9"> <TITLE>The Coda File Server: Configuration databases </TITLE> <LINK HREF="server-7.html" REL=next> <LINK HREF="server-5.html" REL=previous> <LINK HREF="server.html#toc6" REL=contents> </HEAD> <BODY> <A HREF="server-7.html">Next</A> <A HREF="server-5.html">Previous</A> <A HREF="server.html#toc6">Contents</A> <HR> <H2><A NAME="s6">6. Configuration databases </A></H2> <P> <P> <UL> <LI> Volume databases (text) </LI> <LI> <CODE>/vice/vol/VolumeList</CODE> Holds partition and volume information for volumes for which this server is custodian. This is file is generated by <B>codasrv</B>. </LI> <LI> <CODE> /vice/vol/groupid</CODE> is maximum replicated volume id allocated so far. </LI> <LI> HOSTS (text) <UL> <LI> Entries describe volume storage groups: id hostname1 hostname2 etc. Stored in /vice/db/VSGDB</LI> <LI> <CODE>/vice/db/hosts</CODE> servers should be in this file. Servers found in the VSGDB are checked to be in this file before proceeding to make a volume. </LI> <LI> <CODE> /vice/db/servers</CODE> contains an id for each server. </LI> </UL> </LI> </UL> <P>Createvol_rep works as follows: Parameters are: volname vsgaddr partition-name [groupid] <UL> <LI> check we are the SCM</LI> <LI> Check that the volname doesn't appear in AllVolumes or VRList</LI> <LI> Get the list of servers from the vsgaddr using the VSGDB</LI> <LI> verify the servers against /vice/db/hosts</LI> <LI> get a new replicated id for this replicated volume using the <CODE> /vice/vol/groupid</CODE> file</LI> <LI> use volutil to create the volume on each host, using the partition, volumename and groupid acquired before. Note that each server now assigns a volume id for this newly created volume. It dumps</LI> </UL> <P> <HR> <A HREF="server-7.html">Next</A> <A HREF="server-5.html">Previous</A> <A HREF="server.html#toc6">Contents</A> </BODY> </HTML>