Thank you for your helpful input :-) I will add a test to make sure it doesn't reconfigure already configured server values.
-- Emil -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Andrew Deason Sent: måndag den 1 november 2010 16:05 To: [email protected] Subject: [OpenAFS] Re: fs setserverprefs and supernetting On Mon, 1 Nov 2010 10:31:15 +0100 "Assarsson, Emil" <[email protected]> wrote: > This script is intended to be executed by cron each minute or so. Every minute seems a bit excessive to me, but that's just me. This may put your clients in the odd situation where the RO server they use for a particular volume will likely be changing every minute or so, if that volume has RO sites on several servers that are the same "distance" away. (Since the random number added to the set preferences will change, even if the preference does not, IIRC). Not that there's any problem with that, but I believe you're going to be different from most other clients in that way. Just something to remember. Oh, and it may increase fileserver callback load for ROs in that case, as well as net traffic for callback breaks. You could compare the pref output from getserverprefs and only change it if the higher bits of the pref are different than what you would set them to, but you may not care. > # Sort servers > open(FSGP, "fs gp -nu|") or die "Can't get servers"; It'd be nice if scripts used the full names for options (-numeric). While I think we have been maintaining backwards compatibility... I mean, this makes it really annoying to add any other option that starts with -nu. -- Andrew Deason [email protected] _______________________________________________ OpenAFS-info mailing list [email protected] https://lists.openafs.org/mailman/listinfo/openafs-info _______________________________________________ OpenAFS-info mailing list [email protected] https://lists.openafs.org/mailman/listinfo/openafs-info
