Personal tools
You are here: Home Documentation Configuring a new dcache node
Document Actions

Configuring a new dcache node

by Carl Lundstedt last modified 2008-06-09 05:45

Procedures to finish the install of a new dache node.

Once you've installed JAVA and the dcache software stack to a linux node that will serve as  a pool, download and run the fix_dcache.sh script from dcache-head.

If you update any of the following files (dCacheSetup, dcachesrm-gplazma.policy, storage-authzdb, dcache.kpwd), upload them to red's web server area so the changes are passed to this script.  You can dcache-part this script from dcache-head to run on all the dcache nodes.

Current Script:
#!/bin/bash
cd /root
/bin/mkdir dcache_fix
cd dcache_fix
wget http://red.unl.edu:/dcache/dCacheSetup
wget http://red.unl.edu:/dcache/dcachesrm-gplazma.policy
wget http://red.unl.edu:/dcache/storage-authzdb
wget http://red.unl.edu:/dcache/dcache.kpwd

/etc/init.d/dcache-pool stop
/etc/inti.d/dcache-core stop
mv /opt/d-cache/config/dCacheSetup /opt/d-cache/config/dCacheSetup.orig
/bin/cp -f dCacheSetup /opt/d-cache/config/dCacheSetup
/bin/cp -f dcachesrm-gplazma.policy /opt/d-cache/etc/dcachesrm-gplazma.policy
/bin/cp -f storage-authzdb /etc/grid-security/storage-authzdb
/bin/cp -f dcache.kpwd /opt/d-cache/etc/dcache.kpwd
/etc/init.d/dcache-pool start
/etc/init.d/dcache-core start

cat << EOF >> /etc/sysctl.conf
net.ipv4.tcp_window_scaling = 1
net.ipv4.tcp_timestamps = 0
net.ipv4.tcp_sack = 0
net.core.rmem_max = 1048576
net.core.rmem_default = 87380
net.core.wmem_max = 131072
net.core.wmem_default = 32768
net.ipv4.tcp_rmem = 4096 87380 1048576
net.ipv4.tcp_wmem = 4096 32768 131072
net.ipv4.tcp_mem = 65536 87380 98304
vm.min_free_kbytes = 65536
vm.overcommit_memory = 2
vm.dirty_background_ratio = 30
vm.dirty_ratio = 75
EOF

Powered by Plone, the Open Source Content Management System