Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 26 Next »


WARNING: Before proceeding with initializations, make sure that you are pointing at branches/1.1.3.


web server into maintenance mode (SF WEB)

cd /var/www/html
sudo ./set_eas_mode.sh MAINT

database backup (SF DB)

sudo -u postgres -i
/home/dba/scripts/dbbackup.sh > /var/tmp/dbbackup.log

ETL server

REM see warning above
cd "C:\Program Files\MAD\"
del etl
setup.bat
python job.py --job migrate_to_1.1.3 --action INIT --env SF_PROD

upgrade java (SF GEO/SD GEO)

install the latest version of java

Remember that in PROD you must also do this to the SD instance!

http://docs.geoserver.org/stable/en/user/production/java.html

http://docs.oracle.com/javase/7/docs/webnotes/install/linux/linux-jre.html#install-64-rpm

wget --no-cookies --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com" "http://download.oracle.com/otn-pub/java/jdk/7/jre-7-linux-x64.rpm"
sudo rpm -ivh jre-7-linux-x64.rpm?AuthParam=1347904319_53c7d4517bc08e457c15c859a1ba216e
install JAI

http://download.java.net/media/jai/builds/release/1_1_3/

wget http://download.java.net/media/jai/builds/release/1_1_3/jai-1_1_3-lib-linux-amd64-jre.bin
sudo cp jai-1_1_3-lib-linux-amd64-jre.bin /usr/java/jre1.7.0
sudo cd /usr/java/jre1.7.0
sudo sh jai-1_1_3-lib-linux-amd64-jre.bin
remove previous version of java
cd /usr
sudo rm -rf jdk1.6.0_24

upgrade tomcat (SF GEO/SD GEO)

install tomcat 7

http://davidghedini.blogspot.com/2011/02/install-tomcat-7-on-centos-rhel.html

wget http://mirror.cc.columbia.edu/pub/software/apache/tomcat/tomcat-7/v7.0.30/bin/apache-tomcat-7.0.30.tar.gz
cd /usr/share
sudo tar xvfz ~/apache-tomcat-7.0.30.tar.gz
sudo chown -Rf tomcat:tomcat /usr/share/apache-tomcat-7.0.30/
configure tomcat startup
cd /etc/init.d
sudo svn export http://eas.googlecode.com/svn/trunk/geoserver/tomcat
sudo dos2unix tomcat
sudo chmod 755 tomcat
sudo -u root /sbin/chkconfig --add tomcat
sudo -u root /sbin/chkconfig --level 234 tomcat on
sudo -u root /sbin/chkconfig --list tomcat
tomcat start, stop, restart
sudo /sbin/service tomcat start
sudo /sbin/service tomcat stop
sudo /sbin/service tomcat restart
inspect log files for errors
view /usr/share/apache-tomcat-7.0.30/logs/catalina.out
examine tomcat admin panel

SSH tunnel required.

http://localhost:8081/ (DEV)
http://localhost:8082/ (QA)
http://localhost:8083/ (PROD)

remove old version of tomcat

sudo rm -rf /usr/share/tomcat5
sudo rm /etc/init.d/tomcat5

upgrade geoserver (SF GEO/SD GEO)

cd /usr/share/apache-tomcat-7.0.30/webapps
wget http://downloads.sourceforge.net/geoserver/geoserver-2.1.4-war.zip
unzip geoserver-2.1.4-war.zip
svn export http://eas.googlecode.com/svn/trunk/geoserver/deploy_geoserver_init.sh
dos2unix deploy_geoserver_init.sh

Clean out the gwc

sudo /sbin/service tomcat stop
sudo rm -rf /srv/gwc
sudo /sbin/service tomcat start

upgrade the deploy automation and deploy

cd /usr/share/apache-tomcat-7.0.30/webapps
sudo svn export http://eas.googlecode.com/svn/trunk/geoserver/deploy_geoserver_init.sh

sudo ./deploy_geoserver_init.sh

install image processing software

We need to install the following on the geoserver boxes so we can process imagery in situ.

install mrsidgeodecode

This software is needed to extract the mrsid data.

mkdir downloads
mkdir bin
cd downloads
wget http://bin.us.lizardtech.com/geoexpress_commandlineutils_linux.tgz
tar xvfz geoexpress_commandlineutils_linux.tgz
cd linux64
tar xvf GeoExpressCLUtils-8.5.0.3330.tar
cp -P GeoExpressCLUtils-8.5.0.3330/bin/* ~/bin

Next, add this to your .bash_profile

# If you choose to use lizard tech tools while doing projections, you'll need this.
# NOTE that this prevents GDAL from working properly so I comment it out.
# All I use Lizard tech for is to get data out of mrsid format!
#PROJSO=/home/dev/lizard_tech/linux64/GeoExpressCLUtils-8.5.0.3330/libproject
#export PROJSO
PATH=$PATH:$HOME/bin
export PATH

 

  • gdal-1.5.4
  • geos-3.1.1
  • proj-4.6.1
  • proj-datumgrid-1.4

 

 

  • No labels

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.