Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dJInZ-0007XZ-5g for pgsql-general@arkaria.postgresql.org; Fri, 09 Jun 2017 12:13:53 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dJInY-0004T8-K1 for pgsql-general@arkaria.postgresql.org; Fri, 09 Jun 2017 12:13:52 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dJInE-0003zD-J5 for pgsql-general@postgresql.org; Fri, 09 Jun 2017 12:13:32 +0000 Received: from host3.dynacom.ondsl.gr ([62.103.35.211] helo=smadev.internal.net) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dJInB-0003lF-0H for pgsql-general@postgresql.org; Fri, 09 Jun 2017 12:13:31 +0000 Received: from smadev.internal.net (smadev [10.9.200.131]) by smadev.internal.net (8.15.2/8.15.2) with ESMTP id v59CDPPh048935 for ; Fri, 9 Jun 2017 15:13:25 +0300 (EEST) (envelope-from achill@matrix.gatewaynet.com) Subject: Re: ERROR: unexpected chunk number 0 (expected 1) for toast value 76753264 in pg_toast_10920100 To: pgsql-general@postgresql.org References: <7pefuv53dl.fsf@novozymes.com> <15990.1496849265@sss.pgh.pa.us> <66E7E557-CED6-466B-9B9C-B0307CD95F13@gmail.com> <18860.1496853985@sss.pgh.pa.us> <6962.1496947781@sss.pgh.pa.us> From: Achilleas Mantzios Message-ID: Date: Fri, 9 Jun 2017 15:13:25 +0300 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------95E47EF5E90DD2BA97FB7712" Content-Language: en-US X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-general Precedence: bulk Sender: pgsql-general-owner@postgresql.org This is a multi-part message in MIME format. --------------95E47EF5E90DD2BA97FB7712 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit On 09/06/2017 14:44, Harry Ambrose wrote: > Hi Tom, > > Thanks for attempting to replicate the issue. > > Anyway, the bad news is I couldn't reproduce the problem then and I can't > now. I don't know if it's a timing issue or if there's something critical > about configuration that I'm not duplicating. Can you explain what sort > of platform you're testing on, and what nondefault configuration settings > you're using? > > > Further details about the environment that I can replicate on below: > > - Non default postgresql.conf settings: > checkpoint_segments = 192 > checkpoint_completion_target = 0.9 > checkpoint_timeout = 5min > wal_keep_segments = 256 > wal_writer_delay = 200ms > archive_mode = on > archive_command = 'rsync -e ssh -arv /wal/pg_xlog/%f postgres@:/wal/pg_xlog' > archive_timeout = 60 > syslog_facility = 'LOCAL0' > log_statement = 'mod' > syslog_ident = 'postgres' > log_line_prefix = '%h %m %p %c %u %a %e ' > log_timezone = 'GB' > track_activities = on > track_counts = on > datestyle = 'iso, mdy' > timezone = 'GB' > default_text_search_config = 'pg_catalog.english' > array_nulls = on > sql_inheritance = on > standard_conforming_strings = on > synchronize_seqscans = on > transform_null_equals = off > - Two node master/slave setup using streaming replication (without slots). > - CentOS 6.9 (2.6.32-696.el6.x86_64). > - PostgreSQL 9.4.10 on x86_64-unknown-linux-gnu, compiled by gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-17), 64-bit. > - 64GiB RAM. > - AMD Opteron(TM) Processor 6238. > - pg_default sat on 2 disk RAID-1 conifugration (ext3 filesystem). > - Custom tablespaces (where the errors occur) sat on 4 disk RAID-10 (ext3 filesystem). > - All disks are HP 600G SAS 6.0Gbps with P420(i) controllers and battery backed cache enabled. > Maybe you could give some info on : - your ext3 mkfs and mount options (journal, barriers, etc) - your controller setup (battery should be working good and cache mode set to write back) - your disks setup (write cache should be disabled) - you should check your syslogs/messages for any errors related to storage - is your RAM ECC? Did you run any memtest? - is your CPU overheating ? - have you experienced any crashes/freezes ? > Please let me know if you require further info. > > Best wishes, > Harry > > -- Achilleas Mantzios IT DEV Lead IT DEPT Dynacom Tankers Mgmt --------------95E47EF5E90DD2BA97FB7712 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit
On 09/06/2017 14:44, Harry Ambrose wrote:
Hi Tom,

Thanks for attempting to replicate the issue.

Anyway, the bad news is I couldn't reproduce the problem then and I can't
now.  I don't know if it's a timing issue or if there's something critical
about configuration that I'm not duplicating.  Can you explain what sort
of platform you're testing on, and what nondefault configuration settings
you're using?

Further details about the environment that I can replicate on below:

- Non default postgresql.conf settings:
checkpoint_segments = 192
checkpoint_completion_target = 0.9
checkpoint_timeout = 5min
wal_keep_segments = 256
wal_writer_delay = 200ms
archive_mode = on
archive_command = 'rsync -e ssh -arv  /wal/pg_xlog/%f postgres@<removed hostname>:/wal/pg_xlog'
archive_timeout = 60
syslog_facility = 'LOCAL0'
log_statement = 'mod'
syslog_ident = 'postgres'
log_line_prefix = '%h %m  %p %c %u %a  %e '
log_timezone = 'GB'
track_activities = on
track_counts = on
datestyle = 'iso, mdy'
timezone = 'GB'
default_text_search_config = 'pg_catalog.english'
array_nulls = on
sql_inheritance = on
standard_conforming_strings = on
synchronize_seqscans = on
transform_null_equals = off
- Two node master/slave setup using streaming replication (without slots).
- CentOS 6.9 (2.6.32-696.el6.x86_64).
- PostgreSQL 9.4.10 on x86_64-unknown-linux-gnu, compiled by gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-17), 64-bit.
- 64GiB RAM.
- AMD Opteron(TM) Processor 6238.
- pg_default sat on 2 disk RAID-1 conifugration (ext3 filesystem).
- Custom tablespaces (where the errors occur) sat on 4 disk RAID-10 (ext3 filesystem).
- All disks are HP 600G SAS 6.0Gbps with P420(i) controllers and battery backed cache enabled.

Maybe you could give some info on :
- your ext3 mkfs and mount options (journal, barriers, etc)
- your controller setup (battery should be working good and cache mode set to write back)
- your disks setup (write cache should be disabled)
- you should check your syslogs/messages for any errors related to storage
- is your RAM ECC? Did you run any memtest?
- is your CPU overheating ?
- have you experienced any crashes/freezes ?


Please let me know if you require further info.

Best wishes,
Harry



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