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 59e6e15 commit a5523a8
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions _includes/manuals/2.4/3.6_upgrade.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,25 @@ 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
{% endhighlight %}

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 a5523a8

Please sign in to comment.