[29] in Moira

home help back first fref pref prev next nref lref last post

update files to the NFS servers

daemon@ATHENA.MIT.EDU (qjb@ATHENA.MIT.EDU)
Sat Jan 20 13:07:19 1990

From: qjb@ATHENA.MIT.EDU
Date: Sat, 20 Jan 90 13:06:56 -0500
To: jnrees@ATHENA.MIT.EDU
Cc: moiradev@ATHENA.MIT.EDU
In-Reply-To: jnrees@ATHENA.MIT.EDU's message of Thu, 18 Jan 90 15:13:41 -0500 <9001182013.AA07078@E40-358D-1.MIT.EDU>

Have you gotten a response to this yet?

>    From: jnrees@ATHENA.MIT.EDU
>    Date: Thu, 18 Jan 90 15:13:41 -0500
> 
> 
>    I would like to suggest that the .dirs and .quotas file for each
>    server remain on the server after the update in some temporary
>    location.  Only those update files for the actual server would be
>    kept, so that cyrus doesn't have to know what talos got that day.
>    This would make life a lot easier for testing and maintenence.
> 
>    Another suggestion is to include the mount directory name in these
>    filenames.  I hate having to look up in the mount table every time I'm
>    presented with a name like:
> 
> 	   THESEUS.MIT.EDU.@dev@ra1h.quotas
> 
>    How about:
> 
> 	   THESEUS.MIT.EDU.u1.@dev@ra1h.quotas

Here's mine.  I believe that the reason that this has not been
done in the past is because the information is stored in the
moira database by physical partition.  The database does not
necessarily have an accurate picture of what disk is physically
mounted where, although it should have this picture.  I don't
imagine that it would be terribly complicated to do this at the
DCM level, but it would add extra database lookups for the DCM
which would further slow and complicate the system.  

Currently, only files relating to the server being updated are
extracted.  If I'm wrong about this, please correct me, but I
distinctly remember putting that into the code.

I suppose what could be done is that the shell script that runs
on the NFS server being updated could figure out where a given
disk was mounted and rename the files appropriately.  It would
do this the same way you would; looking in /etc/fstab.

Of course, these are comments from someone who hasn't looked at
the code for some time.  The shell scripts that are run can be
found in moiradev/src/gen/nfs.sh and the scripts that it calls.

                                Jay

home help back first fref pref prev next nref lref last post