pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedLinux Update Experience
6+ messages / 6 participants
[nested] [flat]
* Linux Update Experience
@ 2020-05-28 07:59 Zwettler Markus (OIZ) <Markus.Zwettler@zuerich.ch>
0 siblings, 2 replies; 6+ messages in thread
From: Zwettler Markus (OIZ) @ 2020-05-28 07:59 UTC (permalink / raw)
To: PostgreSQL General <pgsql-general@lists.postgresql.org>
We are running PGDG Postgres 9.6 and 12 on RHEL7.
Our Linux team does global Linux updates on a quarterly basis (yum update).
We are hitting more and more update problems.
Some troubles this time:
+ Postgis24 has been updated to Postgis30
+ Postgres 12.2 has been updated to Postgres 12.3 claiming missing requirements:
Error: Package: postgresql12-devel-12.3-1PGDG.rhel7.x86_64 (imx_product_3rd_party_postgresql_repository_postgresql12_rhel7_x86_64)
Requires: llvm-toolset-7-clang >= 4.0.1
Question: How to you handle your Linux update cycles? Not updating anymore?
Thanks,
Markus
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: Linux Update Experience
@ 2020-05-28 08:52 Jiří Fejfar <jurafejfar@gmail.com>
parent: Zwettler Markus (OIZ) <Markus.Zwettler@zuerich.ch>
1 sibling, 0 replies; 6+ messages in thread
From: Jiří Fejfar @ 2020-05-28 08:52 UTC (permalink / raw)
To: Zwettler Markus (OIZ) <Markus.Zwettler@zuerich.ch>; PostgreSQL General <pgsql-general@lists.postgresql.org>
On 28.05.2020 9:59, Zwettler Markus (OIZ) wrote:
>
> We are running PGDG Postgres 9.6 and 12 on RHEL7.
>
> Our Linux team does global Linux updates on a quarterly basis (yum
> update).
>
> We are hitting more and more update problems.
>
> Some troubles this time:
>
> + Postgis24 has been updated to Postgis30
>
> + Postgres 12.2 has been updated to Postgres 12.3 claiming missing
> requirements:
>
> Error: Package: postgresql12-devel-12.3-1PGDG.rhel7.x86_64
> (imx_product_3rd_party_postgresql_repository_postgresql12_rhel7_x86_64)
>
> Requires: llvm-toolset-7-clang >= 4.0.1
>
> Question: How to you handle your Linux update cycles? Not updating
> anymore?
>
> Thanks,
>
> Markus
>
Hi Markus,
we are using PGDG on Debian / Ubuntu trying to update Linux as frequent
as possible. I do not remember many issues if any. I would not expect:
* problems between postgres minor version upgrades (12.2 -> 12.3). We
have PG 12.3 & PostGIS 3.0 on Ubuntu Bionic and do not remember any
update problems.
* major upgrades when keeping same Linux distribution version. Our older
Ubuntu Xenial keeps PG 9.6 & PostGIS 2.3.
So from my perspective: linux updates should not trigger major DB
upgrades (or postGis), minor DB upgrades should be smooth -> it is
possible to update Linux continuously. Major DB upgrades have so be
triggered manually (on same Linux distro version or newer). On that
Ubuntu Bionic server, we started on PG10 upgrading DB together with
PostGis every year with dump / restore procedure to fresh new DB.
--
Jiří Fejfar
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: Linux Update Experience
@ 2020-05-28 14:15 Adrian Klaver <adrian.klaver@aklaver.com>
parent: Zwettler Markus (OIZ) <Markus.Zwettler@zuerich.ch>
1 sibling, 2 replies; 6+ messages in thread
From: Adrian Klaver @ 2020-05-28 14:15 UTC (permalink / raw)
To: Zwettler Markus (OIZ) <Markus.Zwettler@zuerich.ch>; PostgreSQL General <pgsql-general@lists.postgresql.org>
On 5/28/20 12:59 AM, Zwettler Markus (OIZ) wrote:
> We are running PGDG Postgres 9.6 and 12 on RHEL7.
>
> Our Linux team does global Linux updates on a quarterly basis (yum update).
>
> We are hitting more and more update problems.
>
> Some troubles this time:
>
> + Postgis24 has been updated to Postgis30
>
> + Postgres 12.2 has been updated to Postgres 12.3 claiming missing
> requirements:
>
> Error: Package: postgresql12-devel-12.3-1PGDG.rhel7.x86_64
> (imx_product_3rd_party_postgresql_repository_postgresql12_rhel7_x86_64)
>
> Requires: llvm-toolset-7-clang >= 4.0.1
>
> Question: How to you handle your Linux update cycles? Not updating anymore?
See here:
https://yum.postgresql.org/news-newreporpmsreleased.php
And if you have community account:
https://redmine.postgresql.org/issues/5483
To contact the RPM packagers directly:
https://yum.postgresql.org/contact.php
>
> Thanks,
>
> Markus
>
--
Adrian Klaver
adrian.klaver@aklaver.com
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: Linux Update Experience
@ 2020-05-28 15:10 Karsten Hilbert <Karsten.Hilbert@gmx.net>
parent: Adrian Klaver <adrian.klaver@aklaver.com>
1 sibling, 0 replies; 6+ messages in thread
From: Karsten Hilbert @ 2020-05-28 15:10 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org
On Thu, May 28, 2020 at 02:36:34PM +0000, Zwettler Markus (OIZ) wrote:
> Hi Adrian,
>
> I'm not talking about this specific bug or its resolution.
>
> I want to talk about the Linux update problem in general.
>
> Anyone updating Linux might get such nerving dependency troubles.
>
> How do you handle this situation? Updating more frequently? Updating less frequently? Not updating anymore?
If we ask ourselves general questions there can't be, by the
very nature of the question, any more specific answer beyond:
It depends.
Conventional wisdom holds it that updating "more frequently"
(not "accruing technical debt") helps -- the trick is to find
the balance between early effort and lag.
Karsten
--
GPG 40BE 5B0E C98E 1713 AFA6 5BC0 3BEA AC80 7D4F C89B
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: Linux Update Experience
@ 2020-05-29 07:09 Peter J. Holzer <hjp-pgsql@hjp.at>
parent: Adrian Klaver <adrian.klaver@aklaver.com>
1 sibling, 1 reply; 6+ messages in thread
From: Peter J. Holzer @ 2020-05-29 07:09 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org
On 2020-05-28 14:36:34 +0000, Zwettler Markus (OIZ) wrote:
> I'm not talking about this specific bug or its resolution.
>
> I want to talk about the Linux update problem in general.
>
> Anyone updating Linux might get such nerving dependency troubles.
In my experience (having administrated Linux servers for 25 years),
dependency troubles outside of major updates are rare. But of course if
you do that long enough with enough different systems you will run into
one sooner or later.
Some ways to minimize the frequency of such troubles:
* Use a base distribution with a lot of packages. RHEL has a lot fewer
packages than Debian, so when we used RHEL (we still have a few
servers) we used external repositories (RPMForge, EPEL, ...) a lot
more. Some of those external repos may not be as well maintained as
the base distro and of course they may not coordinate with each other.
So more external repos mean a higher risk of conflicts.
* Use specialized systems. In the 90's servers were big and expensive,
so we had few of them and each was running a lot of different
services. Planning an upgrade took months. These days we use (mostly)
VMs, each of which is running only one service. That greatly reduces
the number or packages installed and the number of external repos,
thus reducing the potential for conflicts.
* Update frequently. That reduces the risk of needing a package which
has since been deleted from a repo, but more importantly it makes it
easier to pinpoint the cause of a conflict.
When a conflict does occur. being familiar with the packaging system
helps a lot. Sometimes just uninstalling a few packages helps. Sometimes
something in a repo has changed and you need to change the configuration
to match (as has apparently happened here), so being on relevant
announce-lists of having the URL of the repo website handy helps.
Sometimes you can force installation (althought that will often cause
problems later). In some cases I built my own packages.
hp
--
_ | Peter J. Holzer | Story must make more sense than reality.
|_|_) | |
| | | hjp@hjp.at | -- Charles Stross, "Creative writing
__/ | http://www.hjp.at/ | challenge!"
Attachments:
signature.asc (application/pgp-signature, 832B) download
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: Linux Update Experience
@ 2020-05-29 09:56 Christoph Moench-Tegeder <cmt@burggraben.net>
parent: Peter J. Holzer <hjp-pgsql@hjp.at>
0 siblings, 0 replies; 6+ messages in thread
From: Christoph Moench-Tegeder @ 2020-05-29 09:56 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org
## Peter J. Holzer (hjp-pgsql@hjp.at):
> * Update frequently. That reduces the risk of needing a package which
> has since been deleted from a repo, but more importantly it makes it
> easier to pinpoint the cause of a conflict.
This. Plus: make sure you can re-create any machine in a fully deterministic
manner - that way, you can easily create a test environment to match
production (minus RAM/CPU/storage) for testing upgrades beforehand.
Rationale: experience shows that using Test as "first stage" and carrying
changes forward to Production results in a "contaminated" test environment;
before long, results of failed experiments have accumulated on Test,
Production and Test are diverging, and at that point Test has lost it's
purpose.
(For some people, that's a point for containerization: you don't change
a running container, but package a new one. Other environments have so
much Production with all the redundancy etc that they can "test in
production" and just scrap-and-replace failed tests, but that's not an
option if you have just a handful of systems.)
Regards,
Christoph
--
Spare Space
^ permalink raw reply [nested|flat] 6+ messages in thread
end of thread, other threads:[~2020-05-29 09:56 UTC | newest]
Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-05-28 07:59 Linux Update Experience Zwettler Markus (OIZ) <Markus.Zwettler@zuerich.ch>
2020-05-28 08:52 ` Jiří Fejfar <jurafejfar@gmail.com>
2020-05-28 14:15 ` Adrian Klaver <adrian.klaver@aklaver.com>
2020-05-28 15:10 ` Karsten Hilbert <Karsten.Hilbert@gmx.net>
2020-05-29 07:09 ` Peter J. Holzer <hjp-pgsql@hjp.at>
2020-05-29 09:56 ` Christoph Moench-Tegeder <cmt@burggraben.net>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox