dCache Migration to 2.6 from 2.2
The official upgrade notes can be found on the dCache website at the link below
http://www.dcache.org/manuals/upgrade/upgrade-2.2-to-2.6.html
Config changes
Java update
With the release of 1.7.0_45 there has been some changes to the security limits specifically the minimum RSA key size. Some grid services use smaller keys as such we need to remove this.
/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.45.x86_64/jre/lib/security/java.security
# 1.7.0_45
jdk.certpath.disabledAlgorithms=MD2, RSA keySize < 1024
# Previous versions
jdk.certpath.disabledAlgorithms=MD2
dcache.conf
In the dcache.conf file there are some lines we need to add.
In dache 2.6 atime isn't recorded by default the below re-enables this
pnfsmanager/atime.gap=1
Plots are disabled in the
WebUI for dcache 2.6 by default, the below enabled them
poolqplots.enabled=true
webdavBasicAuthentication=true
PNFS namespace support has been dropped from 2.6 be sure the following line is removed or commented out
#cacheInfo=pnfs
Layouts
As nfsv4 is now used in 2.6 as such we need to add "[namespaceDomain/nfsv41]" to our namespace domian, the whole thing looks like this.
[namespaceDomain]
[namespaceDomain/pnfsmanager]
[namespaceDomain/nfsv41]
[namespaceDomain/cleaner]
[namespaceDomain/acl]
Upgrade procedure
Make backups
Stop dcache
dcache stop
Dump the db
pg_dumpall -U postgres -c -f pgdump.16102013.sql
Stop postgres
service postgresql stop
Backup billing info
Note: compress the in PROD
cp /var/lib/dcache/billing/ .
Copy backups to remote location (e.g. the NAS)
Re-install machine
Important: Ensure machine will use UMD-3 repos in cfengine when re-installed.
Install postgres 9.3
yum remove postgresql*
rpm -ivh http://yum.postgresql.org/9.3/redhat/rhel-6-x86_64/pgdg-sl93-9.3-1.noarch.rpm
yum install postgresql93-server
Start the new postgres
service service postgresql-9.3 initdb
vim /var/lib/pgsql/9.3/data/pg_hba.conf - change auth to trust
service service postgresql-9.3 start
Import the db
su - postgres
psql -f /tmp/pgdump.16102013
Ensure you are running Java 7
java -version
# If not
yum install java-1.7.0-openjdk.x86_64
Install dCache
yum localinstall http://www.dcache.org/downloads/1.9/repo/2.6/dcache-2.6.10-1.noarch.rpm
Check the config, and start dCache if all is ok
dcache check-config
dcache start
Additional monitoring
xrootd-monitor
Install dcache26-plugin-xrootd-monitor package form WLCG repo
http://linuxsoft.cern.ch/wlcg/sl6/x86_64/ to enable CMS monitoring of xrootd door at
http://xrootd.t2.ucsd.edu/display
Requires the following config to be added
pool/xrootdPlugins=edu.uchicago.monitor
detailed=xrootd.t2.ucsd.edu:9930:60
summary=xrootd.t2.ucsd.edu:9931:60
Awesome documentation by Fabio can be found at the following link
https://twiki.cern.ch/twiki/bin/view/Main/DcacheXrootd
Java monitoring
Explore usage of jmxquery and jmxmetric to plot Java utilization
http://code.google.com/p/jmxquery/
https://github.com/ganglia/jmxetric
--
GeorgeBrown - 2013-10-28