Sophie

Sophie

distrib > Mandriva > 8.2 > i586 > media > contrib > by-pkgid > 211238da6d926d1ca4390483bb29f586 > files > 3

coda-doc-5.2.0-4mdk.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
 <META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
 <TITLE> Coda System Administration: Introduction </TITLE>

 <LINK HREF="admin.html#toc1" REL=contents>
</HEAD>
<BODY>
Next
Previous
<A HREF="admin.html#toc1">Contents</A>
<HR>
<H2><A NAME="s1">1. Introduction </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 srv.   </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: &lt;volname&gt; &lt;vsgaddr&gt; &lt;partitionname&gt; [ &lt;groupid&gt; ]
<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>
<H2><A NAME="ss1.1">1.1 bldvldb.sh </A>
</H2>

<P>
<UL>
<LI> get <CODE> /vice/vol/VolumeList </CODE> from each server in <CODE>/vice/db/hosts</CODE>. Names is server-name.list.new. First try this using
ftp, then rfs, then krcp. </LI>
<LI> if the file was acquired move it to <CODE>/vice/vol/remote/server-name.list</CODE></LI>
<LI> dump them all in <CODE>/vice/vol/BigVolumeList</CODE></LI>
<LI> volutil rebuilds the VLDB with <CODE> volutil makevldb
/vice/vol/BigVolumeList</CODE> </LI>
</UL>
 
<P>Note this rebuilds the VLDB on the machine where is script is run,
i.e. the scm. 
<P>
<HR>
Next
Previous
<A HREF="admin.html#toc1">Contents</A>
</BODY>
</HTML>