#Backup
tar zcf neo4j.tar neo4j
# Extract new
mkdir /data/neo4j;tar -zvxf install/neo4j-enterprise-2.3.0-unix.tar.gz -C /data/neo4j –strip-components=1
#Copy back DB files
cp -rp /data/tmp/neo4j/data/dbms neo4j/data/.
cp -rp /data/tmp/neo4j/data/graph.db neo4j/data/.
cp -rp /data/tmp/neo4j/conf/ssl neo4j/conf/.
# Change back perm
chown -R neo:neo /data/neo4j
# cd /data/neo4j/conf, modify
#neo4j-server.properties
org.neo4j.server.database.mode=SINGLE
org.neo4j.server.webserver.address=0.0.0.0
#neo4j.properties
allow_store_upgrade=true
dbms.pagecache.memory=10g
############
# Start DB to complete upgrade process
#Stop once upgrade done
copy back orignal files (which has full cluster config)
#cp ../tmp/neo4j/conf/neo4j.properties conf/
remove allow_store_upgrade=true
###
Once done
extract on slaves all new binry
repet steps above
Note: exclude copying back the data files
start the master node (first node that is alrday upgarded)
start slaves, one at a time
Subscribe
0 Comments