Created
July 26, 2019 13:04
-
-
Save HerrSpace/58bace2634ab972b7ed8bd76c6143ddf to your computer and use it in GitHub Desktop.
how to pg clusterupgrade
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
- prepare a new puppet branch with the updated version in the postgresql globals | |
- add the new pkgs to your repo and install them on the server | |
- systemctl stop postgresql@<old-version> | |
- systemctl stop postgresql@<new-version> | |
- pg_dropcluster <new version> main --stop | |
- try pg_upgradecluster <old version> main -j <cores> --link --method=upgrade | |
- if that fails try pg_upgradecluster <old version> main | |
- pg_dropcluster <old version> main | |
- run puppet with your new branch | |
- uninstall the old pg version | |
- maybe clean failed services or whatever |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment