HowTo: srm22 - Generating poolmanager.conf & LinkGroupAuthorization.conf
Jump to navigation
Jump to search
About this documentation
- This documentation is PIC specific and requires the proper scripts and xsl/xml files.
- If you are interested on this, please do not hesitate to contact us for requesting these files: services@support.pic.es
About srm22
- srm22 is a software that can be found in the dccore' server.
- srm22 location:
- Prod instance -> dccore.pic.es:/root/srm22
- Test instance -> dccore-test.pic.es:/root/srm22
- Dev instance -> dccore-dev.pic.es:/root/srm22
- PPS instance -> dccore-pps.pic.es:/root/srm22
- srm22 content:
- srm22-[prod|test|dev|pps].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
Adding/Removing pools to a VO
1. Login as root to dccore.pic.es
2. cd /root/srm22
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).