[OpenAFS] Add new fileserver
Steve Simmons
scs@umich.edu
Thu, 12 Apr 2007 03:35:14 -0400
On Apr 10, 2007, at 2:13 PM, chas williams - CONTRACTOR wrote:
> In message <F0A0F28D-4DF4-48BE-B45B-B08C17D6CA7E@umich.edu>,Steve
> Simmons write
> s:
>> open( FSDATA, "vos listaddrs -noauth |" );
>
> multihomed cells will be listed more than once. perhaps uniq
> would be helpful here.
>
>> while ( $server = <FSDATA> ) {
>> chomp $server;
>> # I'm not thrilled with this, but it works for us
>> next if $server !~ /^afs/;
>
> my servers dont start with afs. is this a common thing?
Most cells I've seen do that. But that particular line is a umich-ism
that ought to be taken out.
> otherwise, this script is pretty cool.
Thanks.
You also comment that multihomed cells would be listed more than
once. Yes, uniq-ifying them would be good. Can you point me at a cell
to test against?
Steve