[OpenAFS] 'replication'

craigev@us.ibm.com craigev@us.ibm.com
Wed, 28 Aug 2002 09:45:53 -0400


On Wednesday, 08/28/2002 at 10:10 ZE2, Hartmut Reuter <reuter@rzg.mpg.de>
wrote:
> ......
> Whenever the original partition should break I will do a
> "vos convert <otherserver> <partition> <volume>"
> which converts the RO into a RW-volume.
>
> This "vos convert" command, however, is an extension I wrote for MR-AFS,
> but suppose it could easily be implemented for OpenAFS with
> NAMEI-interface as well. practically it only does things:
>
> 1) it checks the vldb and prompts for a yes if the RW-volume exists at
> another place.
> 2) it checks only one volume is in the volume group on this partition.
> 3) it renames the large and small vnode-files in the special directory
> and creates a new volinfo special file with the correct volume id and
name.
> 4.) it removes the old volinfo file and volume header file and create a
> new volume header-file.
> 5.) it updates the vldb-entry to point to this RW.
>
> This command is pretty fast. You could regain the volumes of a 200 GB
> partition in half an hour. Much faster than to restore the contents from
> tapes.

Yup, this is a good idea.  I did an analogous thing for DFS as one of my
last hack attacks with it.  I called it "fts rwconvert" or some such and it
basically did the same thing: promote a single R/O site as the new R/W.
With DFS using Episode, I could add another check and verify that the R/O
being promoted has the largest fileset version of all the extant R/O sites.

            Craig

Craig Everhart
+1 919 543 2169 (tie 441 2169)