Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UrUJn-0005ps-T1 for pgsql-bugs@arkaria.postgresql.org; Tue, 25 Jun 2013 14:34:04 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1UrUJn-0006tR-C7 for pgsql-bugs@arkaria.postgresql.org; Tue, 25 Jun 2013 14:34:03 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UrUJm-0006rl-2F for pgsql-bugs@postgresql.org; Tue, 25 Jun 2013 14:34:02 +0000 Received: from qmta06.westchester.pa.mail.comcast.net ([2001:558:fe14:43:76:96:62:56]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UrUJh-0004Ti-7s for pgsql-bugs@postgresql.org; Tue, 25 Jun 2013 14:34:01 +0000 Received: from omta20.westchester.pa.mail.comcast.net ([76.96.62.71]) by qmta06.westchester.pa.mail.comcast.net with comcast id sbYS1l0031YDfWL56eZtXD; Tue, 25 Jun 2013 14:33:53 +0000 Received: from sz0093.wc.mail.comcast.net ([68.87.26.137]) by omta20.westchester.pa.mail.comcast.net with comcast id seZt1l00M2xV5no3geZtJz; Tue, 25 Jun 2013 14:33:53 +0000 Date: Tue, 25 Jun 2013 14:33:53 +0000 (UTC) From: Lou Picciano To: Yuri Levinsky Cc: pgsql-bugs@postgresql.org Message-ID: <1996695098.127233.1372170833046.JavaMail.root@sz0093a.westchester.pa.mail.comcast.net> In-Reply-To: Subject: Re: Postgres crash? could not write to log file: No space left on device MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_127232_616264687.1372170833017" X-Originating-IP: [::ffff:76.117.177.86] X-Mailer: Zimbra 6.0.13_GA_2944 (zclient/6.0.13_GA_2944) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20121106; t=1372170833; bh=u4dHWnBU25TfixFvkbbwJOPm6BYR9FLT4u7YBPpcvA4=; h=Received:Received:Date:From:To:Message-ID:Subject:MIME-Version: Content-Type; b=LB8xcvYhT/s3rtwdZAoVI46N2xZah0GrnK5CmMOIgVrZ6y2BH2V3JngfekKp1A77z TJWuG5XxGOu+pS3GcdolLpR7ENcdZXgh+AxDErUDmyt0DrLns9lxjEhCoSmRRva9Z7 6MweZGy4t1EUDVdoU9GGSpv1UeHGkn2geESXfZcmtb8xaVGvzq1l+X53EWbs+KaPAr KECMYoPz6xjhonTagBb3MT/Gsj7I6xfDTlBu4fY6HAwG0NiewXuwk2eSHnDOMeZNwW 30JyaFyfxhUQldzCpA4H0qBmZQp3q+XkaweY6f8vvofj9sM5zPqMQ330q/eghylrLw JYoZOo2DGU8gQ== X-Pg-Spam-Score: -3.3 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org ------=_Part_127232_616264687.1372170833017 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Yuri, You're sure the pg xlogs are going where you expect them to? Have you= fine-tooth-combed your conf file for log file-related settings? Log files = may well be directed to fs other than /data/postgres (as is common in our e= nvironments, e.g.) Do a $ df -h on the various FSes involved... Are you using Solaris 10 ACLs? Dig deeper on Tom's point on user-specific q= uotas. ZFS in use? Various quota settings under Solaris can get you really = unexpected mileage. Lou Picciano ----- Original Message ----- From: Yuri Levinsky=20 To: pgsql-bugs@postgresql.org Sent: Tue, 25 Jun 2013 12:23:00 -0000 (UTC) Subject: [BUGS] Postgres crash? could not write to log file: No space left = on device Dear All, I have the following issue on Sun Solaris 10. PostgreSQL version= is 9.2.3. The wall logging is minimal and no archiving. The DB restarted s= everal time, the box is up for last 23 days. The PostgreSQL installation an= d files under /data/postgres that is half empty. Is it some other destinati= on that might cause the problem? Can I log the space consumption and direct= ory name where the problem is happening by some debug level or trace settin= g? PANIC: could not write to log file 81, segment 125 at offset 13959168= , length 1392640: No space left on deviceLOG: process 10203 still waiting = for ShareLock on transaction 3010915 after 1004.113 msSTATEMENT: UPDATE tc= tuserinfo SET clickmiles =3D clickmiles + $1, periodicalclickmiles =3D peri= odicalclickmiles + $2, active =3D $3, activeupdatetime =3D $4, activationse= tby =3D $5, smscid =3D $6, sdrtime =3D $7, simvalue =3D simvalue + $8, tota= lsimvalue =3D totalsimvalue + $9, firstclick =3D $10, lastclick =3D $11, fi= rstactivationtime =3D $12, cbchannel =3D $13, clickmilesupdatetime =3D $14,= ci =3D $15, lac =3D $16, bscid =3D $17, lastlocationupdatetime =3D $18, su= bscriptiontype =3D $19, contentcategory =3D$20, livechannels =3D $21, conte= xtclicks =3D $22 WHERE phonenumber =3D $23LOG: WAL writer process (PID 104= 76) was terminated by signal 6LOG: terminating any other active server pro= cessesFATAL: the database system is in recovery mode But it looks OK: dbne= tapp:/vol/postgres 90G 44G 46G 49% /data= /postgres Is it possible that =E2=80=9Cheavy=E2=80=9D queries consuming dis= k space (as temporary space) and after the crash and recovery it becoming O= K? =20 ------=_Part_127232_616264687.1372170833017 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable Yuri, You're sure the pg xlogs are go= ing where you expect them to? Have you fine-tooth-combed your conf file for= log file-related settings? Log files may well be directed to fs other than= /data/postgres (as is common in our environments, e.g.)

Do a = $ df -h on the various FSes involved...

Are you using S= olaris 10 ACLs? Dig deeper on Tom's point on user-specific quotas. ZFS in u= se? Various quota settings under Solaris can get you really unexpected mile= age.

Lou Picciano

----- Original Message = -----
From: Yuri Levinsky
To: pgsql-bugs@postgre= sql.org
Sent: Tue, 25 Jun 2013 12:23:00 -0000 (UTC)
Subject: [BUGS] P= ostgres crash? could not write to log file: No space left on device

=

Dear All,

I have the following = issue on Sun Solaris 10. PostgreSQL version is 9.2.3. The wall logging is m= inimal and no archiving. The DB restarted several time, the box is up for l= ast 23 days. The PostgreSQL installation and files under /data/postgres tha= t is half empty. Is it some other destination that might cause the problem?= Can I log the space consumption and directory name where the problem is ha= ppening by some debug level or trace setting?  

 

PANIC:  could not write to log file 81, segment 125 a= t offset 13959168, length 1392640: No space left on device

LOG:  process 10= 203 still waiting for ShareLock on transaction 3010915 after 1004.113 ms

STATEME= NT:  UPDATE tctuserinfo SET clickmiles =3D clickmiles + $1, periodical= clickmiles =3D periodicalclickmiles + $2, active =3D $3, activeupdatetime = =3D $4, activationsetby =3D $5, smscid =3D $6, sdrtime =3D $7, simvalue =3D= simvalue + $8, totalsimval

ue =3D totalsimvalue + $9, firstclick =3D $10, lastc= lick =3D $11, firstactivationtime =3D $12, cbchannel =3D $13, clickmilesupd= atetime =3D $14, ci =3D $15, lac =3D $16, bscid =3D $17, lastlocationupdate= time =3D $18, subscriptiontype =3D $19, contentcategory =3D

$20, livechannels = =3D $21, contextclicks =3D $22 WHERE phonenumber =3D $23

LOG:  WAL writer p= rocess (PID 10476) was terminated by signal 6

LOG:  terminating any other a= ctive server processes

FATAL:  the database system is in recovery mode

&= nbsp;

But it looks OK:

 

dbnetapp:/vol/postgres

     &nbs= p;            &= nbsp;     90G    44G    4= 6G    49%    /data/postgres

 <= /p>

Is i= t possible that =E2=80=9Cheavy=E2=80=9D queries consuming disk space (as te= mporary space) and after the crash and recovery it becoming OK?

 


------=_Part_127232_616264687.1372170833017--