[OpenAFS] Replication

Derrick J Brashear shadow@dementia.org
Mon, 3 Mar 2003 01:38:55 -0500 (EST)


On Sun, 2 Mar 2003, Dexter "Kim" Kimball wrote:

We have a tool that effectively does this (2 below), which I can probably
make available if anyone cares.

> 2) write a script that,
>     a.  runs vos examine against the read-only volume of interest, parse out
> the update times and do a "sort -u" or the equivalent
>     b.  we might have run vos examine against the RW as well -- I don't
> remember if you get the RW update time from the vos exa of the RO volume
>     c.  So you've got the update times of all of the ROs and of the single
> RW
>     d.  If the "sort -u" in step (a) results in more than one update time,
> the ROs are out of synch with each other -- so we'd do a vos release to
> correct this
>     e.  If the ROs are in synch and if the RW is "older" than the ROs, then
> the RW hasn't been changed since the last vos release -- so don't do
> anything
>     f.   If the ROs are in synch but the RW is "younger" than the ROs, then
> the RW has been changed since the last vos release -- so update the ROs with
> vos release
>     g.  Check the result codes from vos release
>     h.  Repeat the vos examines and reinspect the update times.
>     i.   Repeat the vos release and/or use vos release -force if steps (g)
> or (h) indicate a vos release failure