Created
December 12, 2013 00:56
-
-
Save LincolnBryant/7921471 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Installing dcache 2.6.x from scratch | |
==================================== | |
Installing Java 7 | |
----------------- | |
Grab the Java 7 RPM: | |
```` | |
[root@dfs-m1 ~]# yum localinstall http://bootstrap.mwt2.org/repo/MWT2/jre-7-linux-x64.rpm | |
```` | |
Intalling PostgreSQL | |
-------------------- | |
First install the Postgres RPM from yum: | |
```` | |
yum install postgresql | |
```` | |
You'll need to create the initial database as well: | |
```` | |
service postgresql initdb | |
```` | |
Change the following lines in /var/lib/pgsql/data/pg_hba.conf: | |
```` | |
# "local" is for Unix domain socket connections only | |
local all all ident | |
# IPv4 local connections: | |
host all all 127.0.0.1/32 ident | |
# IPv6 local connections: | |
host all all ::1/128 ident | |
```` | |
to this: | |
```` | |
# "local" is for Unix domain socket connections only | |
local all all trust | |
# IPv4 local connections: | |
host all all 127.0.0.1/32 trust | |
# IPv6 local connections: | |
host all all ::1/128 trust | |
```` | |
Finally, restart postgresql | |
```` | |
/etc/init.d/postgresql restart | |
```` | |
Installing dCache 2.6.x server RPM | |
---------------------------------- | |
```` | |
yum localinstall http://www.dcache.org/downloads/1.9/repo/2.6/dcache-2.6.19-1.noarch.rpm | |
```` | |
Create Chimera DB: | |
```` | |
[root@dfs-m1 data]# createdb -U postgres chimera | |
[root@dfs-m1 data]# createuser -U postgres --no-superuser --no-createrole --createdb --pwprompt chimera | |
Enter password for new role: | |
Enter it again: | |
```` | |
Create the srmdcache user and dcache db: | |
```` | |
[root@dfs-m1 data]# createuser -U postgres --no-superuser --no-createrole --createdb --pwprompt srmdcache | |
Enter password for new role: | |
Enter it again: | |
[root@dfs-m1 data]# createdb -U srmdcache dcache | |
[root@dfs-m1 data]# createdb -O srmdcache -U postgres billing | |
```` | |
Create the initial dCache database: | |
```` | |
[root@dfs-m1 data]# dcache database update | |
```` | |
Need to do this (I have no idea what it does) as well, at least for Postgres 8.4: | |
```` | |
[root@dfs-m1 ~]# createlang -U postgres -d chimera plpgsql | |
```` | |
Remove gplazma configuration and create a blank one: | |
```` | |
[root@dfs-m1 ~]# mv /etc/dcache/gplazma.conf /etc/dcache/gplazma.conf.bak | |
[root@dfs-m1 ~]# touch /etc/dcache/gplazma.conf | |
```` | |
Finally, start dCache! | |
```` | |
[root@dfs-m1 ~]# dcache start | |
Starting dCacheDomain done | |
```` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment