关闭服务(srm, sepnfs, seadmin, cmspn01, cmspn02, cmspn03, cmspn04, cmspn05, cmspn06, cmspn07, cmspn08)

/etc/init.d/dcache stop

mount备份目录

mount mir-local.ihep.ac.cn:/data/bak /data/bak

数据库备份, 包括srm, sepnfs, seadmin以及poolnodes

su - postgres

pg_dumpall > /data/bak/dcache/sepnfsdb20130121

配置文件备份

cp /opt/d-cache /opt/d-cache1.9.5

升级脚本下载,并在各结点安装

rpm -ivh http://www.dcache.org/downloads/1.9/index.shtml#server-1.9.12

配置文件升级

1.9.5到1.9.12大部分的配置文件的格式以及内容有很大的变化

(1)执行/opt/d-cache/libexec/migrate-from-1.9.5.sh.

(2)For each generated warning and error, update /opt/d-cache/etc/dcache.conf

(3)Run /opt/d-cache/bin/dcache check-config and repeat the previous step if necessary.

出现的问题:

(1)dCacheSetup->dCache.conf java_options can't be set change to: dcache.java.memory.heap=2048m dcache.java.memory.direct=2048m

(2) node_config -> /opt/d-cache/etc/layouts

(3) pool定义从原来的/opt/d-cache/config/*.poollist 改到 /opt/d-cache/etc/layouts/cmspn*.conf

notes:

(1) srm需要加infoDomain

(2)以domain为单位产生log dCacheDomain.log seadmin chimeraDomain.log sepnfs

pool nodes升级(编写脚本统一升级)

(1) Java环境初始化,解包,去掉旧的配置文件,运行升级脚本,获取修改过的dcache.conf,验证配置文件 ssh cmspn04 'source /etc/profile; export JAVA_HOME=/usr/java/latest; rpm -Uvh http://mirror.ihep.ac.cn/asdf/dcache-server-1.9.12-24.noarch.rpm ; rm -f /opt/d-cache/etc/layouts/cmspn*; /opt/d-cache/libexec/migrate-from-1.9.5.sh; wget http://mirror.ihep.ac.cn/asdf/dcache.conf -O /opt/d-cache/etc/dcache.conf; /opt/d-cache/bin/dcache check-config'

(2)检查配置文件 for ((i=1;i<=8;i++)) do ssh cmspn0$i 'echo $HOSTNAME;/opt/d-cache/bin/dcache check-config'; done

(3)启动服务 for ((i=1;i<=8;i++)) do ssh cmspn0$i 'echo $HOSTNAME;/opt/d-cache/bin/dcache status'; done

Information Provider

将与1.9.12升级到2.2一起做
Topic revision: r1 - 2013-02-20 - ZhangXiaomei
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback