Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1noWOA-0004pD-3F for pgsql-admin@arkaria.postgresql.org; Tue, 10 May 2022 20:23:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1noWO8-0002v3-Pa for pgsql-admin@arkaria.postgresql.org; Tue, 10 May 2022 20:23:20 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1noWO8-0002uu-C9 for pgsql-admin@lists.postgresql.org; Tue, 10 May 2022 20:23:20 +0000 Received: from mail-ed1-x531.google.com ([2a00:1450:4864:20::531]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1noWO5-0002a2-NZ for pgsql-admin@lists.postgresql.org; Tue, 10 May 2022 20:23:19 +0000 Received: by mail-ed1-x531.google.com with SMTP id t5so99749edw.11 for ; Tue, 10 May 2022 13:23:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=657GU1OErnOESK1YjT75ED4ObMyH9pe+giRo8KYp0Sw=; b=F8T5r1X7scKo3zOSHRInF3KzLuUITbFNp5N/3RY/sScQ54wQteVHdt2LL6oUyZ1PtJ uqMMPcQte0znRKukHQEd8u4feo6cta8Iqt4f8hEX8BGnhF1Y7+W1J/qq8niK0+vEBttu 9GZuAXufn4J9+pQVSpzuIDI7E8Xafn3LBgEJTbxxhhYgFkMWs7DNORrT/+CfPCteAQwu 6BCbePjYVM/4+HqaqNtQtiE0x7S3fjl68inNJK4QELbgHIEu2bLtr4vKhRHiuQR5D0pS lUnjbf2CVJ1Z/JKIf1cgkc7+aj/LN/BR5UjNDAqo2dLfDnV8emwExqfhqOjUF1S1w1pF z19A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=657GU1OErnOESK1YjT75ED4ObMyH9pe+giRo8KYp0Sw=; b=036/9ALU5Kug5dneEp02ou9fFeTGZYzztON5eyQ1N8tQn3ZCUerlUjXsYX6Truaj/y huRM1Bgu9vHhR2QTL+tCUEnj3CjGlig1tHnCj66lTZkPLxCScVBX8rBb4p5VDAa/Pc40 ogf2/fWc3hJ7pR4fiZTeGWD0h2Ltyipy0YpTaC3Wyr0Uy0KirvfxUkttuz7oLQ+MIn74 zWC4QDd7Gg0tR3N+iwCicmPhUvg7rfV5+JbHsfxQfkH61c+5Z7KHz6ND+3/VS2GF8kbZ ogIqwWLZpfkhy70XKnAl2Cyr6Zrkv1+uHmFTKPXPvmXXUT7+Qv9Ejlf+kllRpPpQMMA1 hsDA== X-Gm-Message-State: AOAM530trlsYxOYRIGWSfkdAo6eNMdTRUE4jrYjtEH5jmQUb5HNqq46I A0YHunCstItAIwU02L+sOlYcJsdxK1h6Pi+ytUjhtstouCg= X-Google-Smtp-Source: ABdhPJxR2CQ7UBDcKYmIkPeOgsIiLnZEVmdl5QDD5QS6tMebShrl9oyu5cr1Pq/oE96z2umAxotfpCG4OmorENpPBuE= X-Received: by 2002:a05:6402:26d3:b0:427:c571:86fe with SMTP id x19-20020a05640226d300b00427c57186femr24639259edd.133.1652214195489; Tue, 10 May 2022 13:23:15 -0700 (PDT) MIME-Version: 1.0 From: Albin Ary Date: Tue, 10 May 2022 22:23:02 +0200 Message-ID: Subject: Tuning Linux for Postgresql - Database failed to start To: pgsql-admin@lists.postgresql.org Content-Type: multipart/alternative; boundary="000000000000370d4405deae1865" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000370d4405deae1865 Content-Type: text/plain; charset="UTF-8" Hello, I have a Postgresql Database cluster. Version: 14.2 OS: Oracle Linux 8 I tried to follow the link to optimize the server. https://www.enterprisedb.com/blog/tuning-red-hat-enterprise-linux-family-postgresql Unfortunately, after rebooting the database is not starting anymore. I know the HINT is straightforward but I am not able to see what the reason could be. Any advice would be appreciated. -- Unit postgresql-14.service has begun starting up. May 10 22:10:40 postgersdb.localdomain postmaster[1612]: 2022-05-10 22:10:40.047 CEST [1612] FATAL: could not map anonymous shared memory: Cannot allocate memory May 10 22:10:40 postgersdb.localdomain postmaster[1612]: 2022-05-10 22:10:40.047 CEST [1612] *HINT: This error usually means that PostgreSQL's request for a shared memory segment exceeded available memory,>* May 10 22:10:40 postgersdb.localdomain postmaster[1612]: 2022-05-10 22:10:40.048 CEST [1612] LOG: database system is shut down May 10 22:10:40 postgersdb.localdomain systemd[1]: postgresql-14.service: Main process exited, code=exited, status=1/FAILURE May 10 22:10:40 postgersdb.localdomain systemd[1]: postgresql-14.service: Failed with result 'exit-code'. -- Subject: Unit failed -- Defined-By: systemd -- Support: https://support.oracle.com --000000000000370d4405deae1865 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,=C2=A0
I have a Postgresql Database cluster.=C2= =A0
Version: 14.2
OS: Oracle Linux 8

I tried to follow the link to optimize the server.

Unfortunately= , after rebooting the database is not starting anymore. I know the HINT is = straightforward but I am not able to see what the reason could be.=C2=A0

Any advice would be appreciated.

-- Unit postgresql-14.service has begun starting up.
May 10 22:10:= 40 postgersdb.localdomain postmaster[1612]: 2022-05-10 22:10:40.047 CEST [1= 612] FATAL: =C2=A0could not map anonymous shared memory: Cannot allocate me= mory
May 10 22:10:40 postgersdb.localdomain postmaster[1612]: 2022-05-10= 22:10:40.047 CEST [1612] HINT: =C2=A0This error usually means that Post= greSQL's request for a shared memory segment exceeded available memory,= >
May 10 22:10:40 postgersdb.localdomain postmaster[1612]: 2022-0= 5-10 22:10:40.048 CEST [1612] LOG: =C2=A0database system is shut down
Ma= y 10 22:10:40 postgersdb.localdomain systemd[1]: postgresql-14.service: Mai= n process exited, code=3Dexited, status=3D1/FAILURE
May 10 22:10:40 post= gersdb.localdomain systemd[1]: postgresql-14.service: Failed with result &#= 39;exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
= -- Support: https://support.oracle.c= om
--000000000000370d4405deae1865--