Hi Andy,
Since you are at this point, you may want to configure everything to access the site bdii through an alias rather than the machine name. That works fine and then you can also move the service around by just moving the alias. We have site-bdii.pp.rl.ac.uk for this.
Here’s a useful bit of sed magic:
sed -ne '1{h;n;};/^ /!{x;p;};/^ /{H;g;s/\n //;h;};${g;s/\n //;p;}'
that unrolls wrapped lines in ldap output and so makes it easier to compare the output between two bdiis.
So for example, this:
diff <(ldapsearch -x -H ldap://bdii1.site.ac.uk:2170 -b mds-vo-name=UKI-SOUTHGRID-RALPP,o=grid |\
sed -ne '1{h;n;};/^ /!{x;p;};/^ /{H;g;s/\n //;h;};${g;s/\n //;p;}' | \
grep '^dn:' | sort )
<(ldapsearch -x -H ldap://bdii2.site.ac.uk:2170 -b mds-vo-name=UKI-SOUTHGRID-RALPP,o=grid | \
sed -ne '1{h;n;};/^ /!{x;p;};/^ /{H;g;s/\n //;h;};${g;s/\n //;p;}' | \
grep '^dn:' | sort )
compares the DNs published by two bdiis.
Yours,
Chris.
P.s. Is asking an interview candidate for a Linux sysadmin job to explain what the sed commands do too mean?
On 31/05/2016, 12:01, "Testbed Support for GridPP member institutes on behalf of Andrew Washbrook" <[log in to unmask] on behalf of [log in to unmask]> wrote:
>Hi Stephen,
>
>> On 31 May 2016, at 11:57, Stephen Burke <[log in to unmask]> wrote:
>>
>> Testbed Support for GridPP member institutes [mailto:TB-
>>> [log in to unmask]] On Behalf Of Andrew Washbrook said:
>>> I have a new working site BDII instance which I’d like to swap in with
>>> our existing service. Is this action any more complicated than just
>>> replacing the entry in GOCDB? Or is there a heavy reliance on the site
>>> BDII hostname by VOs? Ideally I’d like to have a different hostname but
>>> we could retain the same hostname if that is a requirement.
>>
>> Normally the only things querying the site BDII are the top BDIIs, which get the name from the GIIS URL field in the GOC DB, so if you change that and wait a day or two you should be OK. You should also check that the new site BDII is correctly configured - see this wiki page:
>>
>> https://wiki.egi.eu/wiki/MAN01_How_to_publish_Site_Information
>>
>
>Ok thanks - thats good to know. I’ll check the configuration and switch the services over (maybe leave both of them running side by side if it takes a day or two to propagate).
>
>Cheers,
>Andy.
>
>
>--
>The University of Edinburgh is a charitable body, registered in
>Scotland, with registration number SC005336.
|