]> andersk Git - moira.git/blobdiff - afssync/INSTRUCTIONS
Add support for get_host_by_account_number query.
[moira.git] / afssync / INSTRUCTIONS
index febf1272b7b8ca941aa1853c307d13ed7eedbaf3..92c608f9575bdb7d2dec8f1df9def9fad0c27106 100644 (file)
@@ -1,8 +1,3 @@
-[This is a still-under-construction rewrite of the afssync
-instructions, adapted to the Ingres/Maxine -> Oracle/SPARC port, and
-is also being updated and simplified.]
-
-
 The executables are in /moira/bin/ on the moira server, with sources
 in /mit/moiradev/src/afssync/.  Most of the commands are run on the
 Moira server.
@@ -27,7 +22,7 @@ If the two udebugs show that the version changed, lather-rinse-repeat.
 to extract and prepare the personal groups and special user entries in
 the old prdb for being reincorporated into the new prdb.
 
-       awk -F\| '$8 == 3 {print $1}' /backup/backup_1/users > /tmp/deactivated
+       awk -F\| '$9 == 3 {print $1}' /backup/backup_1/users > /tmp/deactivated
        perl -e 'for(`cat /tmp/deactivated`) { chop; $ex{$_}=1;} \
                $punt=0; foreach $L (`cat prdb.extra.sort`){ \
                @w=split(/ /,$L);  $_=$w[0]; if ( /:/ ) \
@@ -35,7 +30,8 @@ the old prdb for being reincorporated into the new prdb.
                print $L unless $punt==1;}' > prdb.extra.trimmed
 to remove the personal groups for users who are deactivated
 
-       awk '/^[^ ][^:]*@/ {printf "KERBEROS:%s\n",$1}' prdb.extra > foreign
+       awk '/^[^ ][^:]*@/ {printf "KERBEROS:%s\n",$1}' prdb.extra.trimmed \
+               > foreign
        blanche afs-foreign-users -f foreign
 Get a list of all the @andrew.cmu.edu type (non- athena.mit.edu cell)
 users, and sync the Moira list afs-foreign-users to this list.
@@ -44,8 +40,9 @@ thus keeping them from being lost in the prdb resync.
 Sanity checking the diffs before running the blanche command is recommended.
 
        awk '/^[^ 0-9][^:@]*$/ {printf "KERBEROS:%s@ATHENA.MIT.EDU\n",$1}' \
-               prdb.extra > oddities
-       awk '/^[^ ][0-9.]* .*$/ {printf "KERBEROS:%s\n",$1}' prdb.extra >> oddities
+               prdb.extra.trimmed > oddities
+       awk '/^[^ ][0-9.]* .*$/ {printf "KERBEROS:%s\n",$1}' prdb.extra.trimmed\
+                >> oddities
        echo "LIST:afs-foreign-users" >> oddities
        blanche afs-odd-entities -f oddities
 Do the equivalent of afs-foreign-users for domestic users.  We make
@@ -80,7 +77,7 @@ creations and list additions.  (To start over, do both the `cp` and
 `pt_util` again.)  You can filter out the "User or group doesn't exist"
 type of lines that were caused by a user deactivation with something
 like:
-       awk -F\| '$8 == 3 {print $1}' /backup/backup_1/users > /tmp/deactivated
+       awk -F\| '$9 == 3 {print $1}' /backup/backup_1/users > /tmp/deactivated
        perl -e 'for(`cat /tmp/deactivated`){ chop; $ex{$_}=1;} \
                foreach $L (`cat prdb.extra.err`){ $f=0; \
                @w=split(/[ :]/,$L); for(@w){ $f=1 if $ex{$_}; } \
@@ -121,7 +118,7 @@ rm /moira/afs/noafs and try again later.)
 to watch the status of the servers to make sure things are going well,
 where "prill" is preferred db server (the sync site).
 
-Make sure the beacons are working, and that once quorom is established
+Make sure the beacons are working, and that once quorum is established
 (~90 seconds) that the servers are resynchronizing their notions of
 the databases and that the "dbcurrent" and "up" fields all become set
 and the state goes to "1f".  Also, if "sdi" isn't running, watch out
@@ -137,7 +134,7 @@ appropriately to the saved ones using `pts setmax`.
        pts ex system:administrators
 as a good spot check, especially since it has special people.
 (also spot check one of the personal groups and perhaps, something like
-the membership of rcmd.ronald-ann)
+the membership of rcmd.reynelda)
 
        rm /moira/afs/noafs
 to remove the lock file and let Moira's afs incrementals continue.
This page took 0.192508 seconds and 4 git commands to generate.