InstallDcacheShadowPoolConfiguration

From T2B Wiki
Revision as of 12:28, 26 August 2015 by Maintenance script (talk | contribs) (Created page with " === Configuration of dCache v1.9.5 pool === *See section "Creating and configuring pools" on http://www.dcache.org/manuals/Book-1.9.13/start/in-install.shtml *[[Installin...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Configuration of dCache v1.9.5 pool

Headnode settings

  • On the headnode in PoolManager.conf add these lines
psu create pool pool2-shadow
psu create unit -net    192.168.99.0/255.255.255.0
psu addto ugroup all_net 192.168.99.0/255.255.255.0
psu addto ugroup in_net 192.168.99.0/255.255.255.0
psu addto ugroup in_server 192.168.99.0/255.255.255.0
psu addto pgroup cms pool2-shadow
psu addto pgroup becms pool2-shadow
psu addto pgroup default pool2-shadow
psu addto pgroup out_buf pool2-shadow
psu addto pgroup phedex_pools pool2-shadow

Pool node settings

  • behar030 has been used as the reference storage box
  • Install dcache software
wget http://www.dcache.org/downloads/1.9/dcache-server-1.9.5-29.noarch.rpm
rpm -ivh dcache-server-1.9.5-29.noarch.rpm
wget http://www.dcache.org/downloads/1.9/dcache-srmclient-1.9.5-23.noarch.rpm
rpm -ivh dcache-srmclient-1.9.5-23.noarch.rpm
  • In the v180 setup the dCacheSetup file differs from the template file with several aspects
    • ourHomeDir and ourHome are set
    • serviceLocatorHost is defined to hostname
    • java version is not set to a specific version
    • java_options are different
    • metaDataRepository, metaDataRepositoryImport, parallelStreams, srmBufferSize, srmTcpBufferSize, billingToDb parameters are set explicitely
    • logArea=/var/log/dcache is set to specific subdirectory
  • The v180 file has been put in place with the necessary changes
  • The v195 log4j.properties is kept
  • PoolManager.conf: seems to be the default file in v180 and the v195 and v180 don't seem to differ
  • dcache.kpwd: put file of behar030 in place
  • dcachesrm-gplazma.policy: put behar030 file in place
  • logConfig.xml: kept v195 file
  • node_config: set behar030 version of file but change the
  • srm_setup.env keep 195 file
  • /opt/pnfs/etc/pnfs_config: no such file
  • /usr/etc/pnfsSetup: no such file
  • generate keys
cd /opt/d-cache/config/
ssh-keygen -t rsa1 -b  768 -f ./server_key -N "" 
ssh-keygen -t rsa1 -b 1024 -f ./host_key   -N "" 
  • run install script
/opt/d-cache/install/install.sh
  • make log directory
mdkir /var/log/dcache
pool2-shadow  /storage/1/pool  sticky=allowed recover-space recover-control recover-anyway lfs=precious tag.hostname=pool2-shadow
    • must make sure this /storage/1/pool/data directory exists, in this case made a symlink to a larger partition
ln -s /var/storage /storage
mkdir /var/storage
    • then create the pool
/opt/d-cache/bin/dcache pool create 20g /storage/2/pool/ 
    • Don't forget to add the pool in PoolManager.conf on the headnode and restart dcache on both headnode and poolnode
  • some more directories are created when the dcache is started
  • scp ccq:/root/dCache_essential_config/behar030_essential_config/setup /storage/1/pool/setup.orig.behar
  • Add lcg-CA rpms
wget http://repository.egi.eu/sw/production/cas/1/current/repo-files/EGI-trustanchors.repo
mv EGI-trustanchors.repo /etc/yum.repos.d/
yum install ca-policy-egi-core
yum install lcg-CA
  • start dcache
/opt/d-cache/bin/dcache start


Template:TracNotice