pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
wal_level not changing
8+ messages / 3 participants
[nested] [flat]

* wal_level not changing
@ 2017-09-04 15:42  Sumeet Shukla <sumeet.k.shukla@gmail.com>
  0 siblings, 1 reply; 8+ messages in thread

From: Sumeet Shukla @ 2017-09-04 15:42 UTC (permalink / raw)
  To: pgsql-admin

Hi,

update pg_settings set reset_val='minimal' where name='wal_level';

ERROR:  parameter "wal_level" cannot be changed without restarting the
server



set wal_level='minimal';

ERROR:  parameter "wal_level" cannot be changed without restarting the
server


update pg_settings set setting='minimal' where name='wal_level';

ERROR:  parameter "wal_level" cannot be changed without restarting the
server


Even after restarting and reloading the server multiple times the setting
does not update and remains as below:

show wal_level;

+-----------+

| wal_level |

+-----------+

| replica   |

+-----------+



Thanks & Regards,
Sumeet Shukla

^ permalink  raw  reply  [nested|flat] 8+ messages in thread

* Re: wal_level not changing
@ 2017-09-04 15:50  Vasilis Ventirozos <v.ventirozos@gmail.com>
  parent: Sumeet Shukla <sumeet.k.shukla@gmail.com>
  0 siblings, 1 reply; 8+ messages in thread

From: Vasilis Ventirozos @ 2017-09-04 15:50 UTC (permalink / raw)
  To: pgsql-admin

try ALTER SYSTEM  set wal_level = 'minimal';
and then restart , just make sure that archiving is disabled first.

Vasilis Ventirozos

> On 4 Sep 2017, at 18:42, Sumeet Shukla <sumeet.k.shukla@gmail.com> wrote:
> 
> 
> Hi,
> 
> update pg_settings set reset_val='minimal' where name='wal_level';
> 
> ERROR:  parameter "wal_level" cannot be changed without restarting the server
> 
>  
> set wal_level='minimal';
> 
> ERROR:  parameter "wal_level" cannot be changed without restarting the server
> 
> 
> 
> update pg_settings set setting='minimal' where name='wal_level';
> 
> 
> ERROR:  parameter "wal_level" cannot be changed without restarting the server
> 
> 
> 
> Even after restarting and reloading the server multiple times the setting does not update and remains as below:
> 
> show wal_level;
> 
> +-----------+
> 
> | wal_level |
> 
> +-----------+
> 
> | replica   |
> 
> 
> +-----------+
> 
> 
> 
> 
> 
> Thanks & Regards,
> Sumeet Shukla
> 

^ permalink  raw  reply  [nested|flat] 8+ messages in thread

* Re: wal_level not changing
@ 2017-09-04 15:58  Sumeet Shukla <sumeet.k.shukla@gmail.com>
  parent: Vasilis Ventirozos <v.ventirozos@gmail.com>
  0 siblings, 2 replies; 8+ messages in thread

From: Sumeet Shukla @ 2017-09-04 15:58 UTC (permalink / raw)
  To: Vasilis Ventirozos <v.ventirozos@gmail.com>; +Cc: pgsql-admin

Tried but does not work.

I see below output when I check the status of the service.

systemctl status postgresql-9.6

*●* postgresql-9.6.service - PostgreSQL 9.6 database server

   Loaded: loaded (/usr/lib/systemd/system/postgresql-9.6.service; enabled;
vendor preset: disabled)

   Active: *failed* (Result: exit-code) since Mon 2017-09-04 11:25:42 EDT;
27min ago

  Process: 28093 ExecStop=/opt/postgresql/9.6/bin/pg_ctl stop -m fast -w -D
/data/9.6/data *(code=exited, status=1/FAILURE)*

  Process: 28052 ExecStart=/opt/postgresql/9.6/bin/pg_ctl start -w -t
${TimeoutSec} -D /data/9.6/data -l /data/9.6/data/pg_log/startup.log
(code=exited, status=0/SUCCESS)

 Main PID: 28054 (code=exited, status=0/SUCCESS)


Sep 04 11:25:36 ashprmlpdb-p05 systemd[1]: Starting PostgreSQL 9.6 database
server...

Sep 04 11:25:36 ashprmlpdb-p05 systemd[1]: Started PostgreSQL 9.6 database
server.

Sep 04 11:25:42 ashprmlpdb-p05 systemd[1]: *postgresql-9.6.service: control
process exited, code=exited status=1*

Sep 04 11:25:42 ashprmlpdb-p05 systemd[1]: *Unit postgresql-9.6.service
entered failed state.*

Sep 04 11:25:42 ashprmlpdb-p05 systemd[1]: *postgresql-9.6.service failed.*


Thanks & Regards,
Sumeet Shukla


On Mon, Sep 4, 2017 at 9:20 PM, Vasilis Ventirozos <v.ventirozos@gmail.com>
wrote:

> try ALTER SYSTEM  set wal_level = 'minimal';
> and then restart , just make sure that archiving is disabled first.
>
> Vasilis Ventirozos
>
>
> On 4 Sep 2017, at 18:42, Sumeet Shukla <sumeet.k.shukla@gmail.com> wrote:
>
>
> Hi,
>
> update pg_settings set reset_val='minimal' where name='wal_level';
>
> ERROR:  parameter "wal_level" cannot be changed without restarting the
> server
>
>
> set wal_level='minimal';
>
> ERROR:  parameter "wal_level" cannot be changed without restarting the
> server
>
>
> update pg_settings set setting='minimal' where name='wal_level';
>
> ERROR:  parameter "wal_level" cannot be changed without restarting the
> server
>
>
> Even after restarting and reloading the server multiple times the setting
> does not update and remains as below:
>
> show wal_level;
>
> +-----------+
>
> | wal_level |
>
> +-----------+
>
> | replica   |
>
> +-----------+
>
>
>
> Thanks & Regards,
> Sumeet Shukla
>
>
>

^ permalink  raw  reply  [nested|flat] 8+ messages in thread

* Re: wal_level not changing
@ 2017-09-04 16:08  Sumeet Shukla <sumeet.k.shukla@gmail.com>
  parent: Sumeet Shukla <sumeet.k.shukla@gmail.com>
  1 sibling, 1 reply; 8+ messages in thread

From: Sumeet Shukla @ 2017-09-04 16:08 UTC (permalink / raw)
  To: Vasilis Ventirozos <v.ventirozos@gmail.com>; +Cc: pgsql-admin

I restarted the service using systemctl and now the status shows green but
the problem persists.

Thanks & Regards,
Sumeet Shukla


On Mon, Sep 4, 2017 at 9:28 PM, Sumeet Shukla <sumeet.k.shukla@gmail.com>
wrote:

> Tried but does not work.
>
> I see below output when I check the status of the service.
>
> systemctl status postgresql-9.6
>
> *●* postgresql-9.6.service - PostgreSQL 9.6 database server
>
>    Loaded: loaded (/usr/lib/systemd/system/postgresql-9.6.service;
> enabled; vendor preset: disabled)
>
>    Active: *failed* (Result: exit-code) since Mon 2017-09-04 11:25:42
> EDT; 27min ago
>
>   Process: 28093 ExecStop=/opt/postgresql/9.6/bin/pg_ctl stop -m fast -w
> -D /data/9.6/data *(code=exited, status=1/FAILURE)*
>
>   Process: 28052 ExecStart=/opt/postgresql/9.6/bin/pg_ctl start -w -t
> ${TimeoutSec} -D /data/9.6/data -l /data/9.6/data/pg_log/startup.log
> (code=exited, status=0/SUCCESS)
>
>  Main PID: 28054 (code=exited, status=0/SUCCESS)
>
>
> Sep 04 11:25:36 ashprmlpdb-p05 systemd[1]: Starting PostgreSQL 9.6
> database server...
>
> Sep 04 11:25:36 ashprmlpdb-p05 systemd[1]: Started PostgreSQL 9.6 database
> server.
>
> Sep 04 11:25:42 ashprmlpdb-p05 systemd[1]: *postgresql-9.6.service:
> control process exited, code=exited status=1*
>
> Sep 04 11:25:42 ashprmlpdb-p05 systemd[1]: *Unit postgresql-9.6.service
> entered failed state.*
>
> Sep 04 11:25:42 ashprmlpdb-p05 systemd[1]: *postgresql-9.6.service
> failed.*
>
>
> Thanks & Regards,
> Sumeet Shukla
>
>
> On Mon, Sep 4, 2017 at 9:20 PM, Vasilis Ventirozos <v.ventirozos@gmail.com
> > wrote:
>
>> try ALTER SYSTEM  set wal_level = 'minimal';
>> and then restart , just make sure that archiving is disabled first.
>>
>> Vasilis Ventirozos
>>
>>
>> On 4 Sep 2017, at 18:42, Sumeet Shukla <sumeet.k.shukla@gmail.com> wrote:
>>
>>
>> Hi,
>>
>> update pg_settings set reset_val='minimal' where name='wal_level';
>>
>> ERROR:  parameter "wal_level" cannot be changed without restarting the
>> server
>>
>>
>> set wal_level='minimal';
>>
>> ERROR:  parameter "wal_level" cannot be changed without restarting the
>> server
>>
>>
>> update pg_settings set setting='minimal' where name='wal_level';
>>
>> ERROR:  parameter "wal_level" cannot be changed without restarting the
>> server
>>
>>
>> Even after restarting and reloading the server multiple times the setting
>> does not update and remains as below:
>>
>> show wal_level;
>>
>> +-----------+
>>
>> | wal_level |
>>
>> +-----------+
>>
>> | replica   |
>>
>> +-----------+
>>
>>
>>
>> Thanks & Regards,
>> Sumeet Shukla
>>
>>
>>
>

^ permalink  raw  reply  [nested|flat] 8+ messages in thread

* Re: wal_level not changing
@ 2017-09-04 16:16  Vasilis Ventirozos <v.ventirozos@gmail.com>
  parent: Sumeet Shukla <sumeet.k.shukla@gmail.com>
  0 siblings, 1 reply; 8+ messages in thread

From: Vasilis Ventirozos @ 2017-09-04 16:16 UTC (permalink / raw)
  To: Sumeet Shukla <sumeet.k.shukla@gmail.com>; pgsql-admin

you should have postgres archiving enabled , can you edit /data/9.6/data/postgresql.conf making sure that :
archive_mode = off
and
max_wal_senders = 0

otherwise you will be getting errors like :

FATAL:  WAL archival cannot be enabled when wal_level is "minimal"
and 
FATAL:  WAL streaming (max_wal_senders > 0) requires wal_level "replica" or "logical"

Regards, 
Vasilis Ventirozos


> On 4 Sep 2017, at 19:08, Sumeet Shukla <sumeet.k.shukla@gmail.com> wrote:
> 
> I restarted the service using systemctl and now the status shows green but the problem persists.
> 
> Thanks & Regards,
> Sumeet Shukla
> 
> 
> On Mon, Sep 4, 2017 at 9:28 PM, Sumeet Shukla <sumeet.k.shukla@gmail.com <mailto:sumeet.k.shukla@gmail.com>> wrote:
> Tried but does not work.
> 
> I see below output when I check the status of the service.
> systemctl status postgresql-9.6
> 
> ● postgresql-9.6.service - PostgreSQL 9.6 database server
> 
>    Loaded: loaded (/usr/lib/systemd/system/postgresql-9.6.service; enabled; vendor preset: disabled)
> 
>    Active: failed (Result: exit-code) since Mon 2017-09-04 11:25:42 EDT; 27min ago
> 
>   Process: 28093 ExecStop=/opt/postgresql/9.6/bin/pg_ctl stop -m fast -w -D /data/9.6/data (code=exited, status=1/FAILURE)
> 
>   Process: 28052 ExecStart=/opt/postgresql/9.6/bin/pg_ctl start -w -t ${TimeoutSec} -D /data/9.6/data -l /data/9.6/data/pg_log/startup.log (code=exited, status=0/SUCCESS)
> 
>  Main PID: 28054 (code=exited, status=0/SUCCESS)
> 
> 
> 
> Sep 04 11:25:36 ashprmlpdb-p05 systemd[1]: Starting PostgreSQL 9.6 database server...
> 
> Sep 04 11:25:36 ashprmlpdb-p05 systemd[1]: Started PostgreSQL 9.6 database server.
> 
> Sep 04 11:25:42 ashprmlpdb-p05 systemd[1]: postgresql-9.6.service: control process exited, code=exited status=1
> 
> Sep 04 11:25:42 ashprmlpdb-p05 systemd[1]: Unit postgresql-9.6.service entered failed state.
> 
> Sep 04 11:25:42 ashprmlpdb-p05 systemd[1]: postgresql-9.6.service failed.
> 
> 
> 
> Thanks & Regards,
> Sumeet Shukla
> 
> 
> On Mon, Sep 4, 2017 at 9:20 PM, Vasilis Ventirozos <v.ventirozos@gmail.com <mailto:v.ventirozos@gmail.com>> wrote:
> try ALTER SYSTEM  set wal_level = 'minimal';
> and then restart , just make sure that archiving is disabled first.
> 
> Vasilis Ventirozos
> 
> 
>> On 4 Sep 2017, at 18:42, Sumeet Shukla <sumeet.k.shukla@gmail.com <mailto:sumeet.k.shukla@gmail.com>> wrote:
>> 
>> 
>> Hi,
>> 
>> update pg_settings set reset_val='minimal' where name='wal_level';
>> 
>> ERROR:  parameter "wal_level" cannot be changed without restarting the server
>> 
>>  
>> set wal_level='minimal';
>> 
>> ERROR:  parameter "wal_level" cannot be changed without restarting the server
>> 
>> 
>> 
>> update pg_settings set setting='minimal' where name='wal_level';
>> 
>> 
>> ERROR:  parameter "wal_level" cannot be changed without restarting the server
>> 
>> 
>> 
>> Even after restarting and reloading the server multiple times the setting does not update and remains as below:
>> 
>> show wal_level;
>> 
>> +-----------+
>> 
>> | wal_level |
>> 
>> +-----------+
>> 
>> | replica   |
>> 
>> 
>> +-----------+
>> 
>> 
>> 
>> 
>> 
>> Thanks & Regards,
>> Sumeet Shukla
>> 
> 
> 
> 

^ permalink  raw  reply  [nested|flat] 8+ messages in thread

* Re: wal_level not changing
@ 2017-09-04 16:25  Sumeet Shukla <sumeet.k.shukla@gmail.com>
  parent: Vasilis Ventirozos <v.ventirozos@gmail.com>
  0 siblings, 1 reply; 8+ messages in thread

From: Sumeet Shukla @ 2017-09-04 16:25 UTC (permalink / raw)
  To: Vasilis Ventirozos <v.ventirozos@gmail.com>; +Cc: pgsql-admin

archive_mode is already off but it doesn't seem to work at all..
and I'm unable to change max_wal_senders to 0; encountering same error..



Thanks & Regards,
Sumeet Shukla
Ph. No. 962 323 4700

On Mon, Sep 4, 2017 at 9:46 PM, Vasilis Ventirozos <v.ventirozos@gmail.com>
wrote:

> you should have postgres archiving enabled , can you edit
> /data/9.6/data/postgresql.conf making sure that :
> archive_mode = off
> and
> max_wal_senders = 0
>
> otherwise you will be getting errors like :
>
> FATAL:  WAL archival cannot be enabled when wal_level is "minimal"
> and
> FATAL:  WAL streaming (max_wal_senders > 0) requires wal_level "replica"
> or "logical"
>
> Regards,
> Vasilis Ventirozos
>
>
> On 4 Sep 2017, at 19:08, Sumeet Shukla <sumeet.k.shukla@gmail.com> wrote:
>
> I restarted the service using systemctl and now the status shows green but
> the problem persists.
>
> Thanks & Regards,
> Sumeet Shukla
>
>
> On Mon, Sep 4, 2017 at 9:28 PM, Sumeet Shukla <sumeet.k.shukla@gmail.com>
> wrote:
>
>> Tried but does not work.
>>
>> I see below output when I check the status of the service.
>>
>> systemctl status postgresql-9.6
>>
>> *●* postgresql-9.6.service - PostgreSQL 9.6 database server
>>
>>    Loaded: loaded (/usr/lib/systemd/system/postgresql-9.6.service;
>> enabled; vendor preset: disabled)
>>
>>    Active: *failed* (Result: exit-code) since Mon 2017-09-04 11:25:42
>> EDT; 27min ago
>>
>>   Process: 28093 ExecStop=/opt/postgresql/9.6/bin/pg_ctl stop -m fast -w
>> -D /data/9.6/data *(code=exited, status=1/FAILURE)*
>>
>>   Process: 28052 ExecStart=/opt/postgresql/9.6/bin/pg_ctl start -w -t
>> ${TimeoutSec} -D /data/9.6/data -l /data/9.6/data/pg_log/startup.log
>> (code=exited, status=0/SUCCESS)
>>
>>  Main PID: 28054 (code=exited, status=0/SUCCESS)
>>
>>
>> Sep 04 11:25:36 ashprmlpdb-p05 systemd[1]: Starting PostgreSQL 9.6
>> database server...
>>
>> Sep 04 11:25:36 ashprmlpdb-p05 systemd[1]: Started PostgreSQL 9.6
>> database server.
>>
>> Sep 04 11:25:42 ashprmlpdb-p05 systemd[1]: *postgresql-9.6.service:
>> control process exited, code=exited status=1*
>>
>> Sep 04 11:25:42 ashprmlpdb-p05 systemd[1]: *Unit postgresql-9.6.service
>> entered failed state.*
>>
>> Sep 04 11:25:42 ashprmlpdb-p05 systemd[1]: *postgresql-9.6.service
>> failed.*
>>
>>
>> Thanks & Regards,
>> Sumeet Shukla
>>
>>
>> On Mon, Sep 4, 2017 at 9:20 PM, Vasilis Ventirozos <
>> v.ventirozos@gmail.com> wrote:
>>
>>> try ALTER SYSTEM  set wal_level = 'minimal';
>>> and then restart , just make sure that archiving is disabled first.
>>>
>>> Vasilis Ventirozos
>>>
>>>
>>> On 4 Sep 2017, at 18:42, Sumeet Shukla <sumeet.k.shukla@gmail.com>
>>> wrote:
>>>
>>>
>>> Hi,
>>>
>>> update pg_settings set reset_val='minimal' where name='wal_level';
>>>
>>> ERROR:  parameter "wal_level" cannot be changed without restarting the
>>> server
>>>
>>>
>>> set wal_level='minimal';
>>>
>>> ERROR:  parameter "wal_level" cannot be changed without restarting the
>>> server
>>>
>>>
>>> update pg_settings set setting='minimal' where name='wal_level';
>>>
>>> ERROR:  parameter "wal_level" cannot be changed without restarting the
>>> server
>>>
>>>
>>> Even after restarting and reloading the server multiple times the
>>> setting does not update and remains as below:
>>>
>>> show wal_level;
>>>
>>> +-----------+
>>>
>>> | wal_level |
>>>
>>> +-----------+
>>>
>>> | replica   |
>>>
>>> +-----------+
>>>
>>>
>>>
>>> Thanks & Regards,
>>> Sumeet Shukla
>>>
>>>
>>>
>>
>
>

^ permalink  raw  reply  [nested|flat] 8+ messages in thread

* Re: wal_level not changing
@ 2017-09-04 16:28  Vasilis Ventirozos <v.ventirozos@gmail.com>
  parent: Sumeet Shukla <sumeet.k.shukla@gmail.com>
  0 siblings, 0 replies; 8+ messages in thread

From: Vasilis Ventirozos @ 2017-09-04 16:28 UTC (permalink / raw)
  To: Sumeet Shukla <sumeet.k.shukla@gmail.com>; +Cc: pgsql-admin

I just tried it myself on my local db to make sure i didn't forget anything and it worked. 
What does your postgresql log say ? it should be ( assuming you are using default log_directory) in /data/9.6/data/pg_log/


> On 4 Sep 2017, at 19:25, Sumeet Shukla <sumeet.k.shukla@gmail.com> wrote:
> 
> archive_mode is already off but it doesn't seem to work at all..
> and I'm unable to change max_wal_senders to 0; encountering same error..
> 
> 
> 
> Thanks & Regards,
> Sumeet Shukla
> Ph. No. 962 323 4700
> 
> On Mon, Sep 4, 2017 at 9:46 PM, Vasilis Ventirozos <v.ventirozos@gmail.com <mailto:v.ventirozos@gmail.com>> wrote:
> you should have postgres archiving enabled , can you edit /data/9.6/data/postgresql.conf making sure that :
> archive_mode = off
> and
> max_wal_senders = 0
> 
> otherwise you will be getting errors like :
> 
> FATAL:  WAL archival cannot be enabled when wal_level is "minimal"
> and 
> FATAL:  WAL streaming (max_wal_senders > 0) requires wal_level "replica" or "logical"
> 
> Regards, 
> Vasilis Ventirozos
> 
> 
>> On 4 Sep 2017, at 19:08, Sumeet Shukla <sumeet.k.shukla@gmail.com <mailto:sumeet.k.shukla@gmail.com>> wrote:
>> 
>> I restarted the service using systemctl and now the status shows green but the problem persists.
>> 
>> Thanks & Regards,
>> Sumeet Shukla
>> 
>> 
>> On Mon, Sep 4, 2017 at 9:28 PM, Sumeet Shukla <sumeet.k.shukla@gmail.com <mailto:sumeet.k.shukla@gmail.com>> wrote:
>> Tried but does not work.
>> 
>> I see below output when I check the status of the service.
>> systemctl status postgresql-9.6
>> 
>> ● postgresql-9.6.service - PostgreSQL 9.6 database server
>> 
>>    Loaded: loaded (/usr/lib/systemd/system/postgresql-9.6.service; enabled; vendor preset: disabled)
>> 
>>    Active: failed (Result: exit-code) since Mon 2017-09-04 11:25:42 EDT; 27min ago
>> 
>>   Process: 28093 ExecStop=/opt/postgresql/9.6/bin/pg_ctl stop -m fast -w -D /data/9.6/data (code=exited, status=1/FAILURE)
>> 
>>   Process: 28052 ExecStart=/opt/postgresql/9.6/bin/pg_ctl start -w -t ${TimeoutSec} -D /data/9.6/data -l /data/9.6/data/pg_log/startup.log (code=exited, status=0/SUCCESS)
>> 
>>  Main PID: 28054 (code=exited, status=0/SUCCESS)
>> 
>> 
>> 
>> Sep 04 11:25:36 ashprmlpdb-p05 systemd[1]: Starting PostgreSQL 9.6 database server...
>> 
>> Sep 04 11:25:36 ashprmlpdb-p05 systemd[1]: Started PostgreSQL 9.6 database server.
>> 
>> Sep 04 11:25:42 ashprmlpdb-p05 systemd[1]: postgresql-9.6.service: control process exited, code=exited status=1
>> 
>> Sep 04 11:25:42 ashprmlpdb-p05 systemd[1]: Unit postgresql-9.6.service entered failed state.
>> 
>> Sep 04 11:25:42 ashprmlpdb-p05 systemd[1]: postgresql-9.6.service failed.
>> 
>> 
>> 
>> Thanks & Regards,
>> Sumeet Shukla
>> 
>> 
>> On Mon, Sep 4, 2017 at 9:20 PM, Vasilis Ventirozos <v.ventirozos@gmail.com <mailto:v.ventirozos@gmail.com>> wrote:
>> try ALTER SYSTEM  set wal_level = 'minimal';
>> and then restart , just make sure that archiving is disabled first.
>> 
>> Vasilis Ventirozos
>> 
>> 
>>> On 4 Sep 2017, at 18:42, Sumeet Shukla <sumeet.k.shukla@gmail.com <mailto:sumeet.k.shukla@gmail.com>> wrote:
>>> 
>>> 
>>> Hi,
>>> 
>>> update pg_settings set reset_val='minimal' where name='wal_level';
>>> 
>>> ERROR:  parameter "wal_level" cannot be changed without restarting the server
>>> 
>>>  
>>> set wal_level='minimal';
>>> 
>>> ERROR:  parameter "wal_level" cannot be changed without restarting the server
>>> 
>>> 
>>> 
>>> update pg_settings set setting='minimal' where name='wal_level';
>>> 
>>> 
>>> ERROR:  parameter "wal_level" cannot be changed without restarting the server
>>> 
>>> 
>>> 
>>> Even after restarting and reloading the server multiple times the setting does not update and remains as below:
>>> 
>>> show wal_level;
>>> 
>>> +-----------+
>>> 
>>> | wal_level |
>>> 
>>> +-----------+
>>> 
>>> | replica   |
>>> 
>>> 
>>> +-----------+
>>> 
>>> 
>>> 
>>> 
>>> 
>>> Thanks & Regards,
>>> Sumeet Shukla
>>> 
>> 
>> 
>> 
> 
> 

^ permalink  raw  reply  [nested|flat] 8+ messages in thread

* Re: wal_level not changing
@ 2017-09-05 07:38  Achilleas Mantzios <achill@matrix.gatewaynet.com>
  parent: Sumeet Shukla <sumeet.k.shukla@gmail.com>
  1 sibling, 0 replies; 8+ messages in thread

From: Achilleas Mantzios @ 2017-09-05 07:38 UTC (permalink / raw)
  To: pgsql-admin

On 04/09/2017 18:58, Sumeet Shukla wrote:
> Tried but does not work.
>
> I see below output when I check the status of the service.
>
> systemctl status postgresql-9.6
>
> *●*postgresql-9.6.service - PostgreSQL 9.6 database server
>
> Loaded: loaded (/usr/lib/systemd/system/postgresql-9.6.service; enabled; vendor preset: disabled)
>
> Active: *failed*(Result: exit-code) since Mon 2017-09-04 11:25:42 EDT; 27min ago
>
> Process: 28093 ExecStop=/opt/postgresql/9.6/bin/pg_ctl stop -m fast -w -D /data/9.6/data *(code=exited, status=1/FAILURE)*
>
> Process: 28052 ExecStart=/opt/postgresql/9.6/bin/pg_ctl start -w -t ${TimeoutSec} -D /data/9.6/data -l /data/9.6/data/pg_log/startup.log (code=exited, status=0/SUCCESS)
>
> Main PID: 28054 (code=exited, status=0/SUCCESS)
>
>
> Sep 04 11:25:36 ashprmlpdb-p05 systemd[1]: Starting PostgreSQL 9.6 database server...
>
> Sep 04 11:25:36 ashprmlpdb-p05 systemd[1]: Started PostgreSQL 9.6 database server.
>
> Sep 04 11:25:42 ashprmlpdb-p05 systemd[1]: *postgresql-9.6.service: control process exited, code=exited status=1*
>
> Sep 04 11:25:42 ashprmlpdb-p05 systemd[1]: *Unit postgresql-9.6.service entered failed state.*
>
> Sep 04 11:25:42 ashprmlpdb-p05 systemd[1]: *postgresql-9.6.service failed.*
>
>

Just check the value of your current wal_level
cat /data/9.6/data/postgresql.conf /data/9.6/data/postgresql.auto.conf | egrep -v '^#|^$' | grep wal_level | tail -1
and your max_wal_senders
cat /data/9.6/data/postgresql.conf /data/9.6/data/postgresql.auto.conf | egrep -v '^#|^$' | grep max_wal_senders | tail -1
Make sure this as suggested.
Then, for the moment try to start pgsql as :
/opt/postgresql/9.6/bin/pg_ctl start -w -D /data/9.6/data
echo $?
^^^ what does it return? How does your stderr say?

> Thanks & Regards,
> Sumeet Shukla
>
>
> On Mon, Sep 4, 2017 at 9:20 PM, Vasilis Ventirozos <v.ventirozos@gmail.com <mailto:v.ventirozos@gmail.com>> wrote:
>
>     try ALTER SYSTEM  set wal_level = 'minimal';
>     and then restart , just make sure that archiving is disabled first.
>
>     Vasilis Ventirozos
>
>
>>     On 4 Sep 2017, at 18:42, Sumeet Shukla <sumeet.k.shukla@gmail.com <mailto:sumeet.k.shukla@gmail.com>> wrote:
>>
>>
>>     Hi,
>>
>>     update pg_settings set reset_val='minimal' where name='wal_level';
>>
>>     ERROR:parameter "wal_level" cannot be changed without restarting the server
>>
>>
>>     set wal_level='minimal';
>>
>>     ERROR:parameter "wal_level" cannot be changed without restarting the server
>>
>>
>>     update pg_settings set setting='minimal' where name='wal_level';
>>
>>
>>     ERROR:parameter "wal_level" cannot be changed without restarting the server
>>
>>
>>     Even after restarting and reloading the server multiple times the setting does not update and remains as below:
>>
>>     show wal_level;
>>
>>     +-----------+
>>
>>     | wal_level |
>>
>>     +-----------+
>>
>>     | replica |
>>
>>
>>     +-----------+
>>
>>
>>
>>     Thanks & Regards,
>>     Sumeet Shukla
>>
>
>

-- 
Achilleas Mantzios
IT DEV Lead
IT DEPT
Dynacom Tankers Mgmt

^ permalink  raw  reply  [nested|flat] 8+ messages in thread


end of thread, other threads:[~2017-09-05 07:38 UTC | newest]

Thread overview: 8+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2017-09-04 15:42 wal_level not changing Sumeet Shukla <sumeet.k.shukla@gmail.com>
2017-09-04 15:50 ` Vasilis Ventirozos <v.ventirozos@gmail.com>
2017-09-04 15:58   ` Sumeet Shukla <sumeet.k.shukla@gmail.com>
2017-09-04 16:08     ` Sumeet Shukla <sumeet.k.shukla@gmail.com>
2017-09-04 16:16       ` Vasilis Ventirozos <v.ventirozos@gmail.com>
2017-09-04 16:25         ` Sumeet Shukla <sumeet.k.shukla@gmail.com>
2017-09-04 16:28           ` Vasilis Ventirozos <v.ventirozos@gmail.com>
2017-09-05 07:38     ` Achilleas Mantzios <achill@matrix.gatewaynet.com>

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