[OpenAFS] Server recovery
Jeffrey Hutzelman
jhutz@cmu.edu
Fri, 22 Oct 2004 17:10:06 -0400
--==========2945599384==========
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
On Friday, October 22, 2004 13:24:46 -0400 James Burns <jfburns@gmail.com>
wrote:
> Thanks, that worked great. I can't believe I've been sitting around
> with a broken cell for this long when the solution was so simple. Oh
> well...
For what it's worth, I recommend making regular backups of the prdb,
because its contents are critical to the correct functioning of the ACL
system. If you have to recreate the prdb from scratch, you may be able to
reconstruct local users' ID's from other sources, but you are not going to
be able to recover the ID's of groups, foreign users, and non-null
instances (any of which may appear on ACL's) and you will not be able to
recover group memberships.
The attached script (with modifications to reflect the location of your
server binaries and databases) can be run out of cron or the bosserver to
produce a prdb.dump each night. In the event of a corrupted prdb, the
database can be reconstructed from scratch by feeding this file to pt_util.
It is also useful in the inevitable event than an admin accidentally
deletes himself.
-- Jeffrey T. Hutzelman (N3NHS) <jhutz+@cmu.edu>
Sr. Research Systems Programmer
School of Computer Science - Research Computing Facility
Carnegie Mellon University - Pittsburgh, PA
--==========2945599384==========
Content-Type: application/octet-stream; name=backupprdb
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename=backupprdb; size=381
IyEvYmluL3NoCiMgUGVyZm9ybSBuaWdodGx5IHB0cyBkYXRhYmFzZSBiYWNrdXBzCgppZiBbICJ4
YC9iaW4vaG9zdG5hbWVgIiA9IHhjdWN1bWJlci5zcnYuY3MuY211LmVkdSBdIDsgdGhlbgogIGRi
ZGlyPS91c3IvYWZzL2RiCiAgcHR1dGlsPS91c3IvYWZzL2Jpbi9wdF91dGlsCmVsc2UKICBkYmRp
cj0vdmFyL29wZW5hZnMvZGIKICBwdHV0aWw9L3Vzci9sb2NhbC9zYmluL3B0X3V0aWwKZmkKCmRi
ZmlsZT0kZGJkaXIvcHJkYi5EQjAKdG1wZmlsZT0kZGJkaXIvcHJkYi50bXAKZHVtcGZpbGU9JGRi
ZGlyL3ByZGIuZHVtcAoKcm0gLWYgJHRtcGZpbGUKJHB0dXRpbCAtdWdtIC1wICRkYmZpbGUgLWQg
JHRtcGZpbGUgfHwgZXhpdAptdiAkdG1wZmlsZSAkZHVtcGZpbGUK
--==========2945599384==========--