HowTo: Adding/Removing pools to a VO

From Public PIC Wiki
Revision as of 09:47, 6 August 2015 by Mcaubet (talk | contribs) (Created page with "'''1. Login as root to dccore.pic.es''' '''2. cd /root/srm22''' Here we've this important files: * srm22-prod.xml - This is the file you'll need to edit * Link...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

1. Login as root to dccore.pic.es

2. cd /root/srm22

Here we've this important files:

  • srm22-prod.xml - This is the file you'll need to edit
  • LinkGroupAuthorization.xsl - Compiles srm22-prod.xml to generate the LinkGroupAuthorization file, needed in the SRM node (srm.pic.es)
  • poolmanagerconfig.xsl - Compiles srm22-prod.xml to generate PoolManager.conf file, needed in the PoolManager node (dccore.pic.es)
  • propagarCanvis.sh - This eases your life compiling files and copying them where they need to be.
  • historic - In this directory you'll find old versions of the config files

3. Now you've to edit srm22-prod.xml, look for (ie we want to add a pool to lhcb) pgroup-$VO (pgroup-lhcb) and you'll see:

...
<!--PoolGroups LHCb-->
  <poolgroup name="pgroup-lhcb">
      <pool name="dc023_1"/>
      <pool name="dc043_1"/>
      <pool name="dc042_1"/>
      <pool name="dc052_1"/>
      <pool name="dc041_1"/>
      <pool name="dc041_2"/>
  </poolgroup>
  <poolgroup name="pgroup-lhcb-recall">
      <pool name="dc041_7"/>
  </poolgroup>

<!--PoolGroups CMS-->
...

Adding a new pool is as easy as making another pool name line with the right pool name.

Moving pools between poolgroups is the same, just make sure the pool is empty before moving it, if not you might make a mess.


4. Now you've to run propagarCanvis.sh this way:

  • First we check what is actually changing:
[root@dccore01 srm22]# ./propagarCanvis.sh srm22-prod.xml 
diff /tmp/LinkGroupAuthorization.conf.temp /opt/d-cache/etc/LinkGroupAuthorization.conf

#############################################################################################

diff /tmp/PoolManager.conf.temp /opt/d-cache/config/PoolManager.conf
[root@dccore01 srm22]# 
  • If it's OK we have to run ./propagarCanvis.sh srm22-prod.xml -yes

After adding a pool to a poolgroup, make sure it has all movers to the right value; sometimes it's not a big deal but it's worth to check it (via the admin interface in the generic infos queue summary or via CLI with the info command and grepping for Mover Queue).