Skip to content

Commit

Permalink
Add PostgreSQL upgrade instructions on EL8
Browse files Browse the repository at this point in the history
  • Loading branch information
ekohl committed Mar 4, 2021
1 parent 2cb730d commit c6118ac
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions _includes/manuals/2.4/3.6_upgrade.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,24 @@ Next upgrade all Foreman packages:
{% highlight bash %}
dnf upgrade ruby\* foreman\*
{% endhighlight %}

Foreman runs best on PostgreSQL 12 but the default version on EL8 is 10. The installer will try to use version 12 but can't upgrade existing databases. An upgrade can be performed by [switching module streams](https://docs.fedoraproject.org/en-US/modularity/using-modules-switching-streams/).

First make sure you have version 10 installed:

{% highlight bash %}
rpm -qv postgresql-server

If you're already on 12 or don't have the PostgreSQL server installed, you can continue with step 3. Otherwise upgrade:

{% highlight bash %}
systemctl stop postgresql.service
dnf module reset postgresql
dnf module install postgresql:12
dnf install postgresql-upgrade
postgresql-setup --upgrade
systemctl start postgresql.service
{% endhighlight %}
</div>

<div class="upgrade_os upgrade_os_debian10 upgrade_os_ubuntu1804">
Expand Down

0 comments on commit c6118ac

Please sign in to comment.