pg_notify_error.sh
application/x-sh
Filename: pg_notify_error.sh
Type: application/x-sh
Part: 0
dd if=/dev/zero of=~/postgres.disk bs=1k count=150000 mkfs.ext3 ~/postgres.disk sudo mount -o loop ~/postgres.disk /mnt sudo pg_createcluster 9.1 pg_notify -d /mnt/pg_notify sudo vi /etc/postgresql/9.1/pg_notify/pg_hba.conf local all all trust host all all 127.0.0.1/32 trust sudo pg_ctlcluster 9.1 pg_notify start sudo -u postgres psql -p 5435 CREATE user cbe SUPERUSER ; create database d1; \c d1 create table t (pk int primary key, d timestamp with time zone); insert into t values (1, now()); \c postgres CREATE DATABASE d2 TEMPLATE d1; # bucardo 4.4.0 from Debian/stable sudo bucardo_ctl install sudo bucardo_ctl add database d1 port=5435 sudo bucardo_ctl add database d2 port=5435 sudo bucardo_ctl add table t db=d1 standard_conflict=latest herd=h1 sudo bucardo_ctl add sync s1 source=h1 targetdb=d2 type=swap sudo /etc/init.d/bucardo start yes 'update t set d=now();' | psql -p 5435 d1 > /dev/null & yes 'update t set d=now();' | psql -p 5435 d2 > /dev/null & sudo dd if=/dev/zero of=/mnt/full [Tue Jun 26 13:39:25 2012] MCP Got notice "bucardo_kick_sync_s1" from 21974 on database d2 [Tue Jun 26 13:39:29 2012] MCP Warning: Killed (line 1144): DBD::Pg::db commit failed: FEHLER: konnte auf den Status von Transaktion 0 nicht zugreifen DETAIL: Konnte nicht in Datei »pg_notify/0000« bei Position 180224 schreiben: Auf dem Gerät ist kein Speicherplatz mehr verfügbar. at /usr/share/perl5/Bucardo.pm line 1144. [Tue Jun 26 13:39:29 2012] MCP Final database backend PID is 22042 [Tue Jun 26 13:39:29 2012] CTL Controller exiting at cleanup_controller. Reason: DBD::Pg::db commit failed: FEHLER: konnte auf den Status von Transaktion 0 nicht zugreifen DETAIL: Konnte nicht in Datei »pg_notify/0000« bei Position 180224 schreiben: Auf dem Gerät ist kein Speicherplatz mehr verfügbar. at /usr/share/perl5/Bucardo.pm line 3240. [Tue Jun 26 13:39:29 2012] CTL Removed pid file "/var/run/bucardo/bucardo.ctl.sync.s1.pid" [Tue Jun 26 13:39:29 2012] MCP End of cleanup_mcp. Sys time: Tue Jun 26 13:39:29 2012. Database time: 2012-06-26 13:39:29.818636+02 FEHLER: 53100: konnte auf den Status von Transaktion 0 nicht zugreifen DETAIL: Konnte nicht in Datei »pg_notify/0000« bei Position 180224 schreiben: Auf dem Gerät ist kein Speicherplatz mehr verfügbar. ORT: SlruReportIOError, slru.c:861 FEHLER: 53100: konnte auf den Status von Transaktion 0 nicht zugreifen DETAIL: Konnte nicht in Datei »pg_notify/0000« bei Position 180224 schreiben: Auf dem Gerät ist kein Speicherplatz mehr verfügbar. ORT: SlruReportIOError, slru.c:861 dd: Schreiben in „/mnt/full“: Auf dem Gerät ist kein Speicherplatz mehr verfügbar 166399+0 Datensätze ein 166398+0 Datensätze aus 85195776 Bytes (85 MB) kopiert, 4,89899 s, 17,4 MB/s [1]- Exit 3 yes 'update t set d=now();' | psql -p 5435 d1 > /dev/null [2]+ Exit 3 yes 'update t set d=now();' | psql -p 5435 d2 > /dev/null sudo rm /mnt/full psql -p 5435 notify foobar; ERROR: XX000: could not access status of transaction 0 DETAIL: Could not read from file "pg_notify/0000" at offset 245760: Success. ORT: SlruReportIOError, slru.c:854