Skip to content

Instantly share code, notes, and snippets.

@jkburges
Last active November 9, 2015 03:41
Show Gist options
  • Save jkburges/ced994f7cee4774c6af0 to your computer and use it in GitHub Desktop.
Save jkburges/ced994f7cee4774c6af0 to your computer and use it in GitHub Desktop.

Disable chef from running.

In VM:

screen
sudo service tomcat7_aatams stop
sudo apt-get install postgresql-9.4-postgis-2.1

sudo service postgresql stop

sudo pg_dropcluster --stop 9.4 main # on some nodes
# This took a bit under 5 hrs on full production data
sudo time pg_upgradecluster -k -v 9.4 -m upgrade 9.3 aatams /mnt/db/1/aatams.9.4

sudo service postgresql stop
sudo mv /mnt/db/1/aatams /mnt/db/1/aatams.9.3
sudo mv /mnt/db/1/aatams.9.4 /mnt/db/1/aatams

Run chef

In chef:

sudo service tomcat7_aatams start

# Check the app - if all looks good...
sudo rm -rf /mnt/db/1/aatams.9.3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment