473,406 Members | 2,867 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

no space left on device

I'm running Postgres 7.1.3, and just started having a problem where my
dynamic site is going down (read-only DB, with no writes happening to the
DB) regularly (every other day). I have no idea whay this is happening,
and my search of the FAQ's and mail list don't bring up anything. i've
attached the error from the log file, at the end of this message.

Here's an output of the disk usage from within the DB dir

[postgres - DB]$ du -k .
1716 ./base/1
1716 ./base/16555
5192 ./base/56048
8628 ./base
116 ./global
32812 ./pg_xlog
11380 ./pg_clog
53192 .

Note that the pg_xlog dir is huge! Here's its contents:

[postgres - DB/pg_xlog]$ ls -al
total 32816
drwx------ 2 postgres admin 4096 Mar 29 2003 .
drwx------ 6 postgres admin 4096 Jan 9 15:04 ..
-rwx------ 1 postgres admin 16777216 Jan 9 15:09 0000000000000001
-rwx------ 1 postgres admin 16777216 Mar 29 2003 0000000000000002

What are these files, and what can I do to resolve this issue?

Thx,

Zeb
--
DEBUG: statistics collector process (pid 2523) exited with exit code 1
PGSTAT: Error closing temp stats file
PGSTAT: /usr/local/G101/App/DB/./global/pgstat.tmp.7823: No space left on
device
PGSTAT: AbDEBUG: statistics collector process (pid 2979) exited with exit
code
1
FATAL 2: write of clog file 43, offset 188416 failed: No space left on
device
DEBUG: server process (pid 3741) exited with exit code 2
DEBUG: terminating any other active server processes
NOTICE: Message from PostgreSQL backend:
The Postmaster has informed me that some other backend
died abnormally and possibly corrupted shared memory.
I have rolled back the current transaction and am
going to terminate your database system connection and exit.
Please reconnect to the database system and repeat your query.
NOTICE: Message from PostgreSQL backend:
The Postmaster has informed me that some other backend
died abnormally and possibly corrupted shared memory.
I have rolled back the current transaction and am
going to terminate your database system connection and exit.
Please reconnect to the database system and repeat your query.
NOTICE: Message from PostgreSQL backend:
The Postmaster has informed me that some other backend
died abnormally and possibly corrupted shared memory.
I have rolled back the current transaction and am
going to terminate your database system connection and exit.
Please reconnect to the database system and repeat your query.
DEBUG: all server processes terminated; reinitializing shared memory and
semaph
ores
DEBUG: database system was interrupted at 2004-01-09 05:22:52 EST
DEBUG: checkpoint record is at 0/138CFD4
DEBUG: redo record is at 0/138CFD4; undo record is at 0/0; shutdown FALSE
DEBUG: next transaction id: 45811837; next oid: 65205
DEBUG: database system was not properly shut down; automatic recovery in
progre
ss
DEBUG: redo starts at 0/138D014
FATAL 2: write of clog file 43, offset 188416 failed: No space left on
device
DEBUG: startup process (pid 3785) exited with exit code 2
DEBUG: aborting startup due to startup process failure

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

Nov 12 '05 #1
27 20011

Note that the pg_xlog dir is huge! Here's its contents:

[postgres - DB/pg_xlog]$ ls -al
total 32816
drwx------ 2 postgres admin 4096 Mar 29 2003 .
drwx------ 6 postgres admin 4096 Jan 9 15:04 ..
-rwx------ 1 postgres admin 16777216 Jan 9 15:09 0000000000000001
-rwx------ 1 postgres admin 16777216 Mar 29 2003 0000000000000002

What are these files, and what can I do to resolve this issue?

The are check_point files. You need them. Have you ran a vacuum recently?

Sincerely,

Joshua D. Drake
Thx,

Zeb
--
DEBUG: statistics collector process (pid 2523) exited with exit code 1
PGSTAT: Error closing temp stats file
PGSTAT: /usr/local/G101/App/DB/./global/pgstat.tmp.7823: No space left on
device
PGSTAT: AbDEBUG: statistics collector process (pid 2979) exited with exit
code
1
FATAL 2: write of clog file 43, offset 188416 failed: No space left on
device
DEBUG: server process (pid 3741) exited with exit code 2
DEBUG: terminating any other active server processes
NOTICE: Message from PostgreSQL backend:
The Postmaster has informed me that some other backend
died abnormally and possibly corrupted shared memory.
I have rolled back the current transaction and am
going to terminate your database system connection and exit.
Please reconnect to the database system and repeat your query.
NOTICE: Message from PostgreSQL backend:
The Postmaster has informed me that some other backend
died abnormally and possibly corrupted shared memory.
I have rolled back the current transaction and am
going to terminate your database system connection and exit.
Please reconnect to the database system and repeat your query.
NOTICE: Message from PostgreSQL backend:
The Postmaster has informed me that some other backend
died abnormally and possibly corrupted shared memory.
I have rolled back the current transaction and am
going to terminate your database system connection and exit.
Please reconnect to the database system and repeat your query.
DEBUG: all server processes terminated; reinitializing shared memory and
semaph
ores
DEBUG: database system was interrupted at 2004-01-09 05:22:52 EST
DEBUG: checkpoint record is at 0/138CFD4
DEBUG: redo record is at 0/138CFD4; undo record is at 0/0; shutdown FALSE
DEBUG: next transaction id: 45811837; next oid: 65205
DEBUG: database system was not properly shut down; automatic recovery in
progre
ss
DEBUG: redo starts at 0/138D014
FATAL 2: write of clog file 43, offset 188416 failed: No space left on
device
DEBUG: startup process (pid 3785) exited with exit code 2
DEBUG: aborting startup due to startup process failure

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

--
Command Prompt, Inc., home of Mammoth PostgreSQL - S/ODBC and S/JDBC
Postgresql support, programming shared hosting and dedicated hosting.
+1-503-667-4564 - jd@commandprompt.com - http://www.commandprompt.com
PostgreSQL Replicator -- production quality replication for PostgreSQL
---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to ma*******@postgresql.org

Nov 12 '05 #2
On Friday 09 January 2004 20:31, Aurangzeb M. Agha wrote:
I'm running Postgres 7.1.3, and just started having a problem where my
dynamic site is going down (read-only DB, with no writes happening to the
DB) regularly (every other day). I have no idea whay this is happening,
and my search of the FAQ's and mail list don't bring up anything. i've
attached the error from the log file, at the end of this message.

Here's an output of the disk usage from within the DB dir

[postgres - DB]$ du -k .
1716 ./base/1
1716 ./base/16555
5192 ./base/56048
8628 ./base
116 ./global
32812 ./pg_xlog
11380 ./pg_clog
53192 .
OK, and what does "df -m" show? That will display disk sizes and free space
remaining. Your error is that you have run out of disk space.
Note that the pg_xlog dir is huge! Here's its contents:
Well - it's 32MB (2 x 16MB as you show below).
-rwx------ 1 postgres admin 16777216 Jan 9 15:09 0000000000000001
-rwx------ 1 postgres admin 16777216 Mar 29 2003 0000000000000002

What are these files, and what can I do to resolve this issue?


They're transaction logs (see the section on WAL). You can probably reduce
them from their default size of 16MB, I'm guessing by changing some constant
in the source and re-compiling.

--
Richard Huxton
Archonet Ltd

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to ma*******@postgresql.org

Nov 12 '05 #3
I've not run a vacuum in quite some time, and that's because I've only
been doing reads from this DB. I was under the impression that I should
run vacuum when tables are heavily modified:

http://www.postgresql.org/docs/aw_pg...k/node110.html

I guess I must have been mistaken?

I'm looking through the docs now, but am having trouble finding this: how
can I vacuum the entire DB at once?

Thx,

Zeb

On Fri, 9 Jan 2004, Joshua D. Drake wrote:

:
:>
:>Note that the pg_xlog dir is huge! Here's its contents:
:>
:>[postgres - DB/pg_xlog]$ ls -al
:>total 32816
:>drwx------ 2 postgres admin 4096 Mar 29 2003 .
:>drwx------ 6 postgres admin 4096 Jan 9 15:04 ..
:>-rwx------ 1 postgres admin 16777216 Jan 9 15:09 0000000000000001
:>-rwx------ 1 postgres admin 16777216 Mar 29 2003 0000000000000002
:>
:>What are these files, and what can I do to resolve this issue?
:>
:>
:The are check_point files. You need them. Have you ran a vacuum recently?
:
:Sincerely,
:
:Joshua D. Drake
:
:
:
:>Thx,
:>
:>Zeb
:>
:>
:>--
:>DEBUG: statistics collector process (pid 2523) exited with exit code 1
:>PGSTAT: Error closing temp stats file
:>PGSTAT: /usr/local/G101/App/DB/./global/pgstat.tmp.7823: No space left on
:>device
:>PGSTAT: AbDEBUG: statistics collector process (pid 2979) exited with exit
:>code
:>1
:>FATAL 2: write of clog file 43, offset 188416 failed: No space left on
:>device
:>DEBUG: server process (pid 3741) exited with exit code 2
:>DEBUG: terminating any other active server processes
:>NOTICE: Message from PostgreSQL backend:
:> The Postmaster has informed me that some other backend
:> died abnormally and possibly corrupted shared memory.
:> I have rolled back the current transaction and am
:> going to terminate your database system connection and exit.
:> Please reconnect to the database system and repeat your query.
:>NOTICE: Message from PostgreSQL backend:
:> The Postmaster has informed me that some other backend
:> died abnormally and possibly corrupted shared memory.
:> I have rolled back the current transaction and am
:> going to terminate your database system connection and exit.
:> Please reconnect to the database system and repeat your query.
:>NOTICE: Message from PostgreSQL backend:
:> The Postmaster has informed me that some other backend
:> died abnormally and possibly corrupted shared memory.
:> I have rolled back the current transaction and am
:> going to terminate your database system connection and exit.
:> Please reconnect to the database system and repeat your query.
:>DEBUG: all server processes terminated; reinitializing shared memory and
:>semaph
:>ores
:>DEBUG: database system was interrupted at 2004-01-09 05:22:52 EST
:>DEBUG: checkpoint record is at 0/138CFD4
:>DEBUG: redo record is at 0/138CFD4; undo record is at 0/0; shutdown FALSE
:>DEBUG: next transaction id: 45811837; next oid: 65205
:>DEBUG: database system was not properly shut down; automatic recovery in
:>progre
:>ss
:>DEBUG: redo starts at 0/138D014
:>FATAL 2: write of clog file 43, offset 188416 failed: No space left on
:>device
:>DEBUG: startup process (pid 3785) exited with exit code 2
:>DEBUG: aborting startup due to startup process failure
:>
:>---------------------------(end of broadcast)---------------------------
:>TIP 6: Have you searched our list archives?
:>
:> http://archives.postgresql.org
:>
:>
:
:
:

---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

Nov 12 '05 #4
Aurangzeb M. Agha wrote:
I've not run a vacuum in quite some time, and that's because I've only
been doing reads from this DB. I was under the impression that I should
run vacuum when tables are heavily modified:


That would be accurate. Did you recently add a second database?

Sincerely,

Joshua D. Drake

http://www.postgresql.org/docs/aw_pg...k/node110.html

I guess I must have been mistaken?

I'm looking through the docs now, but am having trouble finding this: how
can I vacuum the entire DB at once?

Thx,

Zeb

On Fri, 9 Jan 2004, Joshua D. Drake wrote:

:
:>
:>Note that the pg_xlog dir is huge! Here's its contents:
:>
:>[postgres - DB/pg_xlog]$ ls -al
:>total 32816
:>drwx------ 2 postgres admin 4096 Mar 29 2003 .
:>drwx------ 6 postgres admin 4096 Jan 9 15:04 ..
:>-rwx------ 1 postgres admin 16777216 Jan 9 15:09 0000000000000001
:>-rwx------ 1 postgres admin 16777216 Mar 29 2003 0000000000000002
:>
:>What are these files, and what can I do to resolve this issue?
:>
:>
:The are check_point files. You need them. Have you ran a vacuum recently?
:
:Sincerely,
:
:Joshua D. Drake
:
:
:
:>Thx,
:>
:>Zeb
:>
:>
:>--
:>DEBUG: statistics collector process (pid 2523) exited with exit code 1
:>PGSTAT: Error closing temp stats file
:>PGSTAT: /usr/local/G101/App/DB/./global/pgstat.tmp.7823: No space left on
:>device
:>PGSTAT: AbDEBUG: statistics collector process (pid 2979) exited with exit
:>code
:>1
:>FATAL 2: write of clog file 43, offset 188416 failed: No space left on
:>device
:>DEBUG: server process (pid 3741) exited with exit code 2
:>DEBUG: terminating any other active server processes
:>NOTICE: Message from PostgreSQL backend:
:> The Postmaster has informed me that some other backend
:> died abnormally and possibly corrupted shared memory.
:> I have rolled back the current transaction and am
:> going to terminate your database system connection and exit.
:> Please reconnect to the database system and repeat your query.
:>NOTICE: Message from PostgreSQL backend:
:> The Postmaster has informed me that some other backend
:> died abnormally and possibly corrupted shared memory.
:> I have rolled back the current transaction and am
:> going to terminate your database system connection and exit.
:> Please reconnect to the database system and repeat your query.
:>NOTICE: Message from PostgreSQL backend:
:> The Postmaster has informed me that some other backend
:> died abnormally and possibly corrupted shared memory.
:> I have rolled back the current transaction and am
:> going to terminate your database system connection and exit.
:> Please reconnect to the database system and repeat your query.
:>DEBUG: all server processes terminated; reinitializing shared memory and
:>semaph
:>ores
:>DEBUG: database system was interrupted at 2004-01-09 05:22:52 EST
:>DEBUG: checkpoint record is at 0/138CFD4
:>DEBUG: redo record is at 0/138CFD4; undo record is at 0/0; shutdown FALSE
:>DEBUG: next transaction id: 45811837; next oid: 65205
:>DEBUG: database system was not properly shut down; automatic recovery in
:>progre
:>ss
:>DEBUG: redo starts at 0/138D014
:>FATAL 2: write of clog file 43, offset 188416 failed: No space left on
:>device
:>DEBUG: startup process (pid 3785) exited with exit code 2
:>DEBUG: aborting startup due to startup process failure
:>
:>---------------------------(end of broadcast)---------------------------
:>TIP 6: Have you searched our list archives?
:>
:> http://archives.postgresql.org
:>
:>
:
:
:

--
Command Prompt, Inc., home of Mammoth PostgreSQL - S/ODBC and S/JDBC
Postgresql support, programming shared hosting and dedicated hosting.
+1-503-667-4564 - jd@commandprompt.com - http://www.commandprompt.com
PostgreSQL Replicator -- production quality replication for PostgreSQL
---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faqs/FAQ.html

Nov 12 '05 #5
Here's the output of "df -m":

[postgres - DB]$ df -m .
Filesystem 1M-blocks Used Available Use% Mounted on
- 63328 55308 4803 93% /

Thx for the info.
Rgs,

Aurangzeb
On Fri, 9 Jan 2004, Richard Huxton wrote:

:On Friday 09 January 2004 20:31, Aurangzeb M. Agha wrote:
:> I'm running Postgres 7.1.3, and just started having a problem where my
:> dynamic site is going down (read-only DB, with no writes happening to the
:> DB) regularly (every other day). I have no idea whay this is happening,
:> and my search of the FAQ's and mail list don't bring up anything. i've
:> attached the error from the log file, at the end of this message.
:>
:> Here's an output of the disk usage from within the DB dir
:>
:> [postgres - DB]$ du -k .
:> 1716 ./base/1
:> 1716 ./base/16555
:> 5192 ./base/56048
:> 8628 ./base
:> 116 ./global
:> 32812 ./pg_xlog
:> 11380 ./pg_clog
:> 53192 .
:
:OK, and what does "df -m" show? That will display disk sizes and free space
:remaining. Your error is that you have run out of disk space.
:
:> Note that the pg_xlog dir is huge! Here's its contents:
:
:Well - it's 32MB (2 x 16MB as you show below).
:
:> -rwx------ 1 postgres admin 16777216 Jan 9 15:09 0000000000000001
:> -rwx------ 1 postgres admin 16777216 Mar 29 2003 0000000000000002
:>
:> What are these files, and what can I do to resolve this issue?
:
:They're transaction logs (see the section on WAL). You can probably reduce
:them from their default size of 16MB, I'm guessing by changing some constant
:in the source and re-compiling.
:
:

--
Aurangzeb M. Agha | Email : am*@mltp.com
| Home : +1 413 586.4863
| Pager : +1 413 785.7568
| : 41********@myairmail.com
73 Bridge St. #15 | Mobile: <coming soon>
Northampton, MA 01060 | e-Fax : +1 978 246.0770
USA | PGP id: <coming soon>
---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

Nov 12 '05 #6
No, I've not added any new DB's. In fact, what's puzzling is that this DB
has been running without issue (except for one server restart) for the
last nine months. Now, all of a sudden, with no DB changes, additions,
etc... I'm getting this problem.

Do you suggest that I still run a vacuumdb?

Rgs,

Zeb

On Fri, 9 Jan 2004, Joshua D. Drake wrote:

:Aurangzeb M. Agha wrote:
:
:>I've not run a vacuum in quite some time, and that's because I've only
:>been doing reads from this DB. I was under the impression that I should
:>run vacuum when tables are heavily modified:
:>
:>
:
:That would be accurate. Did you recently add a second database?
:
:Sincerely,
:
:Joshua D. Drake
:
:
:>http://www.postgresql.org/docs/aw_pg...k/node110.html
:>
:>I guess I must have been mistaken?
:>
:>I'm looking through the docs now, but am having trouble finding this: how
:>can I vacuum the entire DB at once?
:>
:>Thx,
:>
:>Zeb
:>
:>On Fri, 9 Jan 2004, Joshua D. Drake wrote:
:>
:>:
:>:>
:>:>Note that the pg_xlog dir is huge! Here's its contents:
:>:>
:>:>[postgres - DB/pg_xlog]$ ls -al
:>:>total 32816
:>:>drwx------ 2 postgres admin 4096 Mar 29 2003 .
:>:>drwx------ 6 postgres admin 4096 Jan 9 15:04 ..
:>:>-rwx------ 1 postgres admin 16777216 Jan 9 15:09 0000000000000001
:>:>-rwx------ 1 postgres admin 16777216 Mar 29 2003 0000000000000002
:>:>
:>:>What are these files, and what can I do to resolve this issue?
:>:>
:>:>
:>:The are check_point files. You need them. Have you ran a vacuum recently?
:>:
:>:Sincerely,
:>:
:>:Joshua D. Drake
:>:
:>:
:>:
:>:>Thx,
:>:>
:>:>Zeb
:>:>
:>:>
:>:>--
:>:>DEBUG: statistics collector process (pid 2523) exited with exit code 1
:>:>PGSTAT: Error closing temp stats file
:>:>PGSTAT: /usr/local/G101/App/DB/./global/pgstat.tmp.7823: No space left on
:>:>device
:>:>PGSTAT: AbDEBUG: statistics collector process (pid 2979) exited with exit
:>:>code
:>:>1
:>:>FATAL 2: write of clog file 43, offset 188416 failed: No space left on
:>:>device
:>:>DEBUG: server process (pid 3741) exited with exit code 2
:>:>DEBUG: terminating any other active server processes
:>:>NOTICE: Message from PostgreSQL backend:
:>:> The Postmaster has informed me that some other backend
:>:> died abnormally and possibly corrupted shared memory.
:>:> I have rolled back the current transaction and am
:>:> going to terminate your database system connection and exit.
:>:> Please reconnect to the database system and repeat your query.
:>:>NOTICE: Message from PostgreSQL backend:
:>:> The Postmaster has informed me that some other backend
:>:> died abnormally and possibly corrupted shared memory.
:>:> I have rolled back the current transaction and am
:>:> going to terminate your database system connection and exit.
:>:> Please reconnect to the database system and repeat your query.
:>:>NOTICE: Message from PostgreSQL backend:
:>:> The Postmaster has informed me that some other backend
:>:> died abnormally and possibly corrupted shared memory.
:>:> I have rolled back the current transaction and am
:>:> going to terminate your database system connection and exit.
:>:> Please reconnect to the database system and repeat your query.
:>:>DEBUG: all server processes terminated; reinitializing shared memory and
:>:>semaph
:>:>ores
:>:>DEBUG: database system was interrupted at 2004-01-09 05:22:52 EST
:>:>DEBUG: checkpoint record is at 0/138CFD4
:>:>DEBUG: redo record is at 0/138CFD4; undo record is at 0/0; shutdown FALSE
:>:>DEBUG: next transaction id: 45811837; next oid: 65205
:>:>DEBUG: database system was not properly shut down; automatic recovery in
:>:>progre
:>:>ss
:>:>DEBUG: redo starts at 0/138D014
:>:>FATAL 2: write of clog file 43, offset 188416 failed: No space left on
:>:>device
:>:>DEBUG: startup process (pid 3785) exited with exit code 2
:>:>DEBUG: aborting startup due to startup process failure
:>:>
:>:>---------------------------(end of broadcast)---------------------------
:>:>TIP 6: Have you searched our list archives?
:>:>
:>:> http://archives.postgresql.org
:>:>
:>:>
:>:
:>:
:>:
:>
:>
:
:
:

--
Aurangzeb M. Agha | Email : am*@mltp.com
| Home : +1 413 586.4863
| Pager : +1 413 785.7568
| : 41********@myairmail.com
73 Bridge St. #15 | Mobile: <coming soon>
Northampton, MA 01060 | e-Fax : +1 978 246.0770
USA | PGP id: <coming soon>
---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match

Nov 12 '05 #7
Hello,

Wait... from the df you provided you have space left on the device:

postgres - DB]$ df -m .
Filesystem 1M-blocks Used Available Use% Mounted on
- 63328 55308 4803 93% /

Perhaps you are out of inodes?

Sincerely,

Josuha D. Drake


Aurangzeb M. Agha wrote:
No, I've not added any new DB's. In fact, what's puzzling is that this DB
has been running without issue (except for one server restart) for the
last nine months. Now, all of a sudden, with no DB changes, additions,
etc... I'm getting this problem.

Do you suggest that I still run a vacuumdb?

Rgs,

Zeb

On Fri, 9 Jan 2004, Joshua D. Drake wrote:

:Aurangzeb M. Agha wrote:
:
:>I've not run a vacuum in quite some time, and that's because I've only
:>been doing reads from this DB. I was under the impression that I should
:>run vacuum when tables are heavily modified:
:>
:>
:
:That would be accurate. Did you recently add a second database?
:
:Sincerely,
:
:Joshua D. Drake
:
:
:>http://www.postgresql.org/docs/aw_pg...k/node110.html
:>
:>I guess I must have been mistaken?
:>
:>I'm looking through the docs now, but am having trouble finding this: how
:>can I vacuum the entire DB at once?
:>
:>Thx,
:>
:>Zeb
:>
:>On Fri, 9 Jan 2004, Joshua D. Drake wrote:
:>
:>:
:>:>
:>:>Note that the pg_xlog dir is huge! Here's its contents:
:>:>
:>:>[postgres - DB/pg_xlog]$ ls -al
:>:>total 32816
:>:>drwx------ 2 postgres admin 4096 Mar 29 2003 .
:>:>drwx------ 6 postgres admin 4096 Jan 9 15:04 ..
:>:>-rwx------ 1 postgres admin 16777216 Jan 9 15:09 0000000000000001
:>:>-rwx------ 1 postgres admin 16777216 Mar 29 2003 0000000000000002
:>:>
:>:>What are these files, and what can I do to resolve this issue?
:>:>
:>:>
:>:The are check_point files. You need them. Have you ran a vacuum recently?
:>:
:>:Sincerely,
:>:
:>:Joshua D. Drake
:>:
:>:
:>:
:>:>Thx,
:>:>
:>:>Zeb
:>:>
:>:>
:>:>--
:>:>DEBUG: statistics collector process (pid 2523) exited with exit code 1
:>:>PGSTAT: Error closing temp stats file
:>:>PGSTAT: /usr/local/G101/App/DB/./global/pgstat.tmp.7823: No space left on
:>:>device
:>:>PGSTAT: AbDEBUG: statistics collector process (pid 2979) exited with exit
:>:>code
:>:>1
:>:>FATAL 2: write of clog file 43, offset 188416 failed: No space left on
:>:>device
:>:>DEBUG: server process (pid 3741) exited with exit code 2
:>:>DEBUG: terminating any other active server processes
:>:>NOTICE: Message from PostgreSQL backend:
:>:> The Postmaster has informed me that some other backend
:>:> died abnormally and possibly corrupted shared memory.
:>:> I have rolled back the current transaction and am
:>:> going to terminate your database system connection and exit.
:>:> Please reconnect to the database system and repeat your query.
:>:>NOTICE: Message from PostgreSQL backend:
:>:> The Postmaster has informed me that some other backend
:>:> died abnormally and possibly corrupted shared memory.
:>:> I have rolled back the current transaction and am
:>:> going to terminate your database system connection and exit.
:>:> Please reconnect to the database system and repeat your query.
:>:>NOTICE: Message from PostgreSQL backend:
:>:> The Postmaster has informed me that some other backend
:>:> died abnormally and possibly corrupted shared memory.
:>:> I have rolled back the current transaction and am
:>:> going to terminate your database system connection and exit.
:>:> Please reconnect to the database system and repeat your query.
:>:>DEBUG: all server processes terminated; reinitializing shared memory and
:>:>semaph
:>:>ores
:>:>DEBUG: database system was interrupted at 2004-01-09 05:22:52 EST
:>:>DEBUG: checkpoint record is at 0/138CFD4
:>:>DEBUG: redo record is at 0/138CFD4; undo record is at 0/0; shutdown FALSE
:>:>DEBUG: next transaction id: 45811837; next oid: 65205
:>:>DEBUG: database system was not properly shut down; automatic recovery in
:>:>progre
:>:>ss
:>:>DEBUG: redo starts at 0/138D014
:>:>FATAL 2: write of clog file 43, offset 188416 failed: No space left on
:>:>device
:>:>DEBUG: startup process (pid 3785) exited with exit code 2
:>:>DEBUG: aborting startup due to startup process failure
:>:>
:>:>---------------------------(end of broadcast)---------------------------
:>:>TIP 6: Have you searched our list archives?
:>:>
:>:> http://archives.postgresql.org
:>:>
:>:>
:>:
:>:
:>:
:>
:>
:
:
:

--
Command Prompt, Inc., home of Mammoth PostgreSQL - S/ODBC and S/JDBC
Postgresql support, programming shared hosting and dedicated hosting.
+1-503-667-4564 - jd@commandprompt.com - http://www.commandprompt.com
PostgreSQL Replicator -- production quality replication for PostgreSQL
---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

Nov 12 '05 #8
On Fri, 9 Jan 2004, Aurangzeb M. Agha wrote:
I'm running Postgres 7.1.3, and just started having a problem where my
dynamic site is going down (read-only DB, with no writes happening to the
DB) regularly (every other day). I have no idea whay this is happening,
and my search of the FAQ's and mail list don't bring up anything. i've
attached the error from the log file, at the end of this message.

Here's an output of the disk usage from within the DB dir

[postgres - DB]$ du -k .
1716 ./base/1
1716 ./base/16555
5192 ./base/56048
8628 ./base
116 ./global
32812 ./pg_xlog
11380 ./pg_clog
53192 .

Note that the pg_xlog dir is huge! Here's its contents:


That's normal. 32 meg isn't really that big. How big of a partition do
you have this database on? Your best bet is to put it on a bigger
partition. the pg_xlog directory is gonna be at least 16 megs for most
installations.

Do you have any transactions sitting at idle keeping postgresql from
recycling the xlogs?

Normally when you run out of space it's a lack of vacuuming, but here it
just sounds like either the partition is too small or the postgres user is
living under a quota on that partition.
---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings

Nov 12 '05 #9
:That's normal. 32 meg isn't really that big. How big of a partition do
:you have this database on? Your best bet is to put it on a bigger
:partition. the pg_xlog directory is gonna be at least 16 megs for most
:installations.
:
:Do you have any transactions sitting at idle keeping postgresql from
:recycling the xlogs?
:
:Normally when you run out of space it's a lack of vacuuming, but here it
:just sounds like either the partition is too small or the postgres user is
:living under a quota on that partition.

Scott -- I'm at 93% disk usage:

[postgres - DB]$ df -m .
Filesystem 1M-blocks Used Available Use% Mounted on
- 63328 55308 4803 93% /

I don't know about transactions sitting idle--like I mentioned this DB is
read-only, and there's no writes taking place. Would I still need to
worry about transactions? How can I check to see if there are any?

Re vacuuming, I haven't run vacuum for the same reason as above. This is
only a read-only DB, and I didn't think a vacuum was necessary if there's
no writes happening to the DB.

My concern is why this problem is happening now (on a read-only DB). The
DB has had nothing written to it, no new DB's have been created, and the
disk usage has stayed constant. I'm stumped as to why this problem has
started all of a sudden.

Rgs,

Zeb

---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

Nov 12 '05 #10
On Fri, Jan 09, 2004 at 01:11:51PM -0800, Aurangzeb M. Agha wrote:
I've not run a vacuum in quite some time, and that's because I've only
been doing reads from this DB. I was under the impression that I should
run vacuum when tables are heavily modified:

http://www.postgresql.org/docs/aw_pg...k/node110.html


Another reason to vacuum is that the pg_clog files are deleted if they
are no longer needed. So if you had vacuumed, there would be less files
there (I'm not sure if this was the case on 7.1 though).

Maybe in the meantime you could move one of the pg_xlog files to another
filesystem and make a symlink to the correct position. That should given
you some breathing room. Vacuum right after that.

Also keep in mind that deleted files that are kept open by running
processes do not release the occupied space ... see if you have some
process with an open file on that filesystem which is no longer present
(some clever usage of fuser and ps should give you that info)

--
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
"We are who we choose to be", sang the goldfinch
when the sun is high (Sandman)

---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to ma*******@postgresql.org so that your
message can get through to the mailing list cleanly

Nov 12 '05 #11
> Wait... from the df you provided you have space left on the device:

postgres - DB]$ df -m .
Filesystem 1M-blocks Used Available Use% Mounted on
- 63328 55308 4803 93% /

Perhaps you are out of inodes?

Remember that df shows the *total* space left on the device,
especially when run as root. Some percent are reserved for
root, however, AFAIR pretty much exactly 7% in my experience,
eg. user postgres can't use them but rather sees a device
that's out of space. That may be the case here.

Karsten
--
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346

---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to ma*******@postgresql.org so that your
message can get through to the mailing list cleanly

Nov 12 '05 #12
On Fri, 9 Jan 2004, Aurangzeb M. Agha wrote:
:That's normal. 32 meg isn't really that big. How big of a partition do
:you have this database on? Your best bet is to put it on a bigger
:partition. the pg_xlog directory is gonna be at least 16 megs for most
:installations.
:
:Do you have any transactions sitting at idle keeping postgresql from
:recycling the xlogs?
:
:Normally when you run out of space it's a lack of vacuuming, but here it
:just sounds like either the partition is too small or the postgres user is
:living under a quota on that partition.

Scott -- I'm at 93% disk usage:

[postgres - DB]$ df -m .
Filesystem 1M-blocks Used Available Use% Mounted on
- 63328 55308 4803 93% /
Do you have root access to it? if so, set the reserved space for root to
be 0%, and then try vacuuming. Vacuuming requires some free space, and
since you're pretty much out, it isn't gonna be able to complete.
I don't know about transactions sitting idle--like I mentioned this DB is
read-only, and there's no writes taking place. Would I still need to
worry about transactions? How can I check to see if there are any?
If you stop and restart it all transactions that are holding will be
disconnected, so that would clear that up.

But it looks to me like you just have it on too small of a partition. On
a modern multi-gigabyte hard drive, Postgresql's usage of tens of megs for
transactions logs is no big deal, but on a smaller partition like yours it
can cause problems.
Re vacuuming, I haven't run vacuum for the same reason as above. This is
only a read-only DB, and I didn't think a vacuum was necessary if there's
no writes happening to the DB.


Well, if the database has been emptied and refilled it would use the
space, so it might be something like that. Or that it was right on the
edge of being out of space and some single alter user kinda thing drove
it over the edge. Hard to say. It looks like your individual databases
are pretty small, so I doubt there's lots of lost space in them.

Can you get a larger partition to move the data directory to on that box?
I'd recommend having about twice the max size of your database as a
minimum, which would be 120 to 150 megs for you.
---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to ma*******@postgresql.org

Nov 12 '05 #13
"Joshua D. Drake" <jd@commandprompt.com> writes:
Perhaps you are out of inodes?


Either that or he's hitting a per-user quota limit, which is perhaps
more likely.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

Nov 12 '05 #14
On Fri, 9 Jan 2004, Aurangzeb M. Agha wrote:
Here's the output of "df -m":

[postgres - DB]$ df -m .
Filesystem 1M-blocks Used Available Use% Mounted on
- 63328 55308 4803 93% /

But your du, below, of the postgres data directory shows 53MB in use. That's an
order of magnitude smaller than the 55GB the above appears to be saying is used
in the db.

Start again with du -sk /* and follow the biggest numbers.

Ideas:

- have you logfiles that processes, such as postmaster, are writing to and
have got huge?

- did you have the above and you deleted such files without restarting the
process that was writing to the deleted files?

- /var/(mail|tmp|whatever) is huge due to huge amounts of email recieved and
not deleted

- /home/whatever is huge due to logfiles, downloads (inc. application caches),
datafiles, software builds, ...
--
Nigel Andrews
Thx for the info.
Rgs,

Aurangzeb
On Fri, 9 Jan 2004, Richard Huxton wrote:

:On Friday 09 January 2004 20:31, Aurangzeb M. Agha wrote:
:> I'm running Postgres 7.1.3, and just started having a problem where my
:> dynamic site is going down (read-only DB, with no writes happening to the
:> DB) regularly (every other day). I have no idea whay this is happening,
:> and my search of the FAQ's and mail list don't bring up anything. i've
:> attached the error from the log file, at the end of this message.
:>
:> Here's an output of the disk usage from within the DB dir
:>
:> [postgres - DB]$ du -k .
:> 1716 ./base/1
:> 1716 ./base/16555
:> 5192 ./base/56048
:> 8628 ./base
:> 116 ./global
:> 32812 ./pg_xlog
:> 11380 ./pg_clog
:> 53192 .
:
:OK, and what does "df -m" show? That will display disk sizes and free space
:remaining. Your error is that you have run out of disk space.
:
:> Note that the pg_xlog dir is huge! Here's its contents:
:
:Well - it's 32MB (2 x 16MB as you show below).
:
:> -rwx------ 1 postgres admin 16777216 Jan 9 15:09 0000000000000001
:> -rwx------ 1 postgres admin 16777216 Mar 29 2003 0000000000000002
:>
:> What are these files, and what can I do to resolve this issue?
:
:They're transaction logs (see the section on WAL). You can probably reduce
:them from their default size of 16MB, I'm guessing by changing some constant
:in the source and re-compiling.
:
:

---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match

Nov 12 '05 #15

On Fri, 9 Jan 2004, Aurangzeb M. Agha wrote:

Scott -- I'm at 93% disk usage:

[postgres - DB]$ df -m .
Filesystem 1M-blocks Used Available Use% Mounted on
- 63328 55308 4803 93% /

BTW, don't do -m with df it confuses us old folk, as you probably noticed from
the responses.

:)
--
Nigel
---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to ma*******@postgresql.org)

Nov 12 '05 #16
Right! Thus my quandry.

Re inodes, how can I check this? But why would this be? Is Postgres
sucking up inodes just sitting there as a read-only DB?

AMA

On Fri, 9 Jan 2004, Joshua D. Drake wrote:

:Hello,
:
: Wait... from the df you provided you have space left on the device:
:
:postgres - DB]$ df -m .
:Filesystem 1M-blocks Used Available Use% Mounted on
:- 63328 55308 4803 93% /
:
:Perhaps you are out of inodes?
:
:Sincerely,
:
:Josuha D. Drake
:
:
:
:
:Aurangzeb M. Agha wrote:
:
:>No, I've not added any new DB's. In fact, what's puzzling is that this DB
:>has been running without issue (except for one server restart) for the
:>last nine months. Now, all of a sudden, with no DB changes, additions,
:>etc... I'm getting this problem.
:>
:>Do you suggest that I still run a vacuumdb?
:>
:>Rgs,
:>
:>Zeb
:>
:>
:>
:>On Fri, 9 Jan 2004, Joshua D. Drake wrote:
:>
:>:Aurangzeb M. Agha wrote:
:>:
:>:>I've not run a vacuum in quite some time, and that's because I've only
:>:>been doing reads from this DB. I was under the impression that I should
:>:>run vacuum when tables are heavily modified:
:>:>
:>:>
:>:
:>:That would be accurate. Did you recently add a second database?
:>:
:>:Sincerely,
:>:
:>:Joshua D. Drake
:>:
:>:
:>:>http://www.postgresql.org/docs/aw_pg...k/node110.html
:>:>
:>:>I guess I must have been mistaken?
:>:>
:>:>I'm looking through the docs now, but am having trouble finding this: how
:>:>can I vacuum the entire DB at once?
:>:>
:>:>Thx,
:>:>
:>:>Zeb
:>:>
:>:>On Fri, 9 Jan 2004, Joshua D. Drake wrote:
:>:>
:>:>:
:>:>:>
:>:>:>Note that the pg_xlog dir is huge! Here's its contents:
:>:>:>
:>:>:>[postgres - DB/pg_xlog]$ ls -al
:>:>:>total 32816
:>:>:>drwx------ 2 postgres admin 4096 Mar 29 2003 .
:>:>:>drwx------ 6 postgres admin 4096 Jan 9 15:04 ..
:>:>:>-rwx------ 1 postgres admin 16777216 Jan 9 15:09 0000000000000001
:>:>:>-rwx------ 1 postgres admin 16777216 Mar 29 2003 0000000000000002
:>:>:>
:>:>:>What are these files, and what can I do to resolve this issue?
:>:>:>
:>:>:>
:>:>:The are check_point files. You need them. Have you ran a vacuum recently?
:>:>:
:>:>:Sincerely,
:>:>:
:>:>:Joshua D. Drake
:>:>:
:>:>:
:>:>:
:>:>:>Thx,
:>:>:>
:>:>:>Zeb
:>:>:>
:>:>:>
:>:>:>--
:>:>:>DEBUG: statistics collector process (pid 2523) exited with exit code 1
:>:>:>PGSTAT: Error closing temp stats file
:>:>:>PGSTAT: /usr/local/G101/App/DB/./global/pgstat.tmp.7823: No space left on
:>:>:>device
:>:>:>PGSTAT: AbDEBUG: statistics collector process (pid 2979) exited with exit
:>:>:>code
:>:>:>1
:>:>:>FATAL 2: write of clog file 43, offset 188416 failed: No space left on
:>:>:>device
:>:>:>DEBUG: server process (pid 3741) exited with exit code 2
:>:>:>DEBUG: terminating any other active server processes
:>:>:>NOTICE: Message from PostgreSQL backend:
:>:>:> The Postmaster has informed me that some other backend
:>:>:> died abnormally and possibly corrupted shared memory.
:>:>:> I have rolled back the current transaction and am
:>:>:> going to terminate your database system connection and exit.
:>:>:> Please reconnect to the database system and repeat your query.
:>:>:>NOTICE: Message from PostgreSQL backend:
:>:>:> The Postmaster has informed me that some other backend
:>:>:> died abnormally and possibly corrupted shared memory.
:>:>:> I have rolled back the current transaction and am
:>:>:> going to terminate your database system connection and exit.
:>:>:> Please reconnect to the database system and repeat your query.
:>:>:>NOTICE: Message from PostgreSQL backend:
:>:>:> The Postmaster has informed me that some other backend
:>:>:> died abnormally and possibly corrupted shared memory.
:>:>:> I have rolled back the current transaction and am
:>:>:> going to terminate your database system connection and exit.
:>:>:> Please reconnect to the database system and repeat your query.
:>:>:>DEBUG: all server processes terminated; reinitializing shared memory and
:>:>:>semaph
:>:>:>ores
:>:>:>DEBUG: database system was interrupted at 2004-01-09 05:22:52 EST
:>:>:>DEBUG: checkpoint record is at 0/138CFD4
:>:>:>DEBUG: redo record is at 0/138CFD4; undo record is at 0/0; shutdown FALSE
:>:>:>DEBUG: next transaction id: 45811837; next oid: 65205
:>:>:>DEBUG: database system was not properly shut down; automatic recovery in
:>:>:>progre
:>:>:>ss
:>:>:>DEBUG: redo starts at 0/138D014
:>:>:>FATAL 2: write of clog file 43, offset 188416 failed: No space left on
:>:>:>device
:>:>:>DEBUG: startup process (pid 3785) exited with exit code 2
:>:>:>DEBUG: aborting startup due to startup process failure
:>:>:>
:>:>:>---------------------------(end of broadcast)---------------------------
:>:>:>TIP 6: Have you searched our list archives?
:>:>:>
:>:>:> http://archives.postgresql.org
:>:>:>
:>:>:>
:>:>:
:>:>:
:>:>:
:>:>
:>:>
:>:
:>:
:>:
:>
:>
:>
:
:
:

--
Aurangzeb M. Agha | Email : am*@mltp.com
| Home : +1 413 586.4863
| Pager : +1 413 785.7568
| : 41********@myairmail.com
73 Bridge St. #15 | Mobile: <coming soon>
Northampton, MA 01060 | e-Fax : +1 978 246.0770
USA | PGP id: <coming soon>
---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings

Nov 12 '05 #17
"scott.marlowe" <sc***********@ihs.com> writes:
[postgres - DB]$ df -m .
Filesystem 1M-blocks Used Available Use% Mounted on
- 63328 55308 4803 93% /
Do you have root access to it? if so, set the reserved space for root to
be 0%, and then try vacuuming. Vacuuming requires some free space, and
since you're pretty much out, it isn't gonna be able to complete.


Look again --- it's showing free space in MB not KB. He's got 4.8GB
free. (Although that might be free-from-root's-point-of-view, rather
than what an unprivileged user can use ...)

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

Nov 12 '05 #18
On Fri, 9 Jan 2004, Aurangzeb M. Agha wrote:
DEBUG: statistics collector process (pid 2523) exited with exit code 1
PGSTAT: Error closing temp stats file
PGSTAT: /usr/local/G101/App/DB/./global/pgstat.tmp.7823: No space left on
device


To me it does not sound strange that the database is growing when the stat
collector updates the tables with statistics. And since there are updates
it would have been good to have vacuumed avery once in a while.

I don't know the internals of pg as well as some of the other people who
have answered, but as far as I know the stat collector is not special in
any way but is updating the stat tables.

--
/Dennis Björklund
---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match

Nov 12 '05 #19
"Aurangzeb M. Agha" <am******@mltp.com> writes:
Re inodes, how can I check this?
"df -i" should help.
But why would this be? Is Postgres
sucking up inodes just sitting there as a read-only DB?


I think you have missed the point here. Postgres is using 0.1 percent
of your disk; whatever is eating disk space or inodes is somewhere in
the 92.9% of the disk that you have not told us about. You are focusing
on killing the messenger instead of finding the true source of the
problem.

You should also check into the per-user-quota possibility.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

Nov 12 '05 #20
On Fri, 9 Jan 2004, Tom Lane wrote:
"scott.marlowe" <sc***********@ihs.com> writes:
[postgres - DB]$ df -m .
Filesystem 1M-blocks Used Available Use% Mounted on
- 63328 55308 4803 93% /

Do you have root access to it? if so, set the reserved space for root to
be 0%, and then try vacuuming. Vacuuming requires some free space, and
since you're pretty much out, it isn't gonna be able to complete.


Look again --- it's showing free space in MB not KB. He's got 4.8GB
free. (Although that might be free-from-root's-point-of-view, rather
than what an unprivileged user can use ...)


Good catch. I'm so used to using raw df output...

Yeah, it looks like root's reserved space is getting him to me, but since
it's the root partition, it's possible it's out of inodes as well.

Aurangzeb, try running df -i to see how many inodes you have left...
---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to ma*******@postgresql.org

Nov 12 '05 #21
On Fri, 9 Jan 2004, Aurangzeb M. Agha wrote:
Right! Thus my quandry.

Re inodes, how can I check this? But why would this be? Is Postgres
sucking up inodes just sitting there as a read-only DB?


If you are out of inodes, I seriously doubt it is Postgresql's fault, as
you seem to be running everything on the root partition here, it could be
any other process more likely than postgresql is using all the inodes.
Basically, when you make a lot of small files you can run out of inodes.
Since postgresql tends to make a few rather large files, it's usually not
a concern.

df -i shows inode usage.

On linux, you can change the % reserved for root to 1% with tune2fs:

tune2fs -m 1

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

Nov 12 '05 #22
I would suspect some *other* service is using the 4G for transient
storage every now and again, and it just so happens that Pg is getting
tripped up.

What else does this machine run ?

regards

Mark

Nigel J. Andrews wrote:
On Fri, 9 Jan 2004, Aurangzeb M. Agha wrote:
Here's the output of "df -m":

[postgres - DB]$ df -m .
Filesystem 1M-blocks Used Available Use% Mounted on
- 63328 55308 4803 93% /


But your du, below, of the postgres data directory shows 53MB in use. That's an
order of magnitude smaller than the 55GB the above appears to be saying is used
in the db.

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to ma*******@postgresql.org)

Nov 12 '05 #23
On Fri, 9 Jan 2004, scott.marlowe wrote:
On Fri, 9 Jan 2004, Aurangzeb M. Agha wrote:
Right! Thus my quandry.

Re inodes, how can I check this? But why would this be? Is Postgres
sucking up inodes just sitting there as a read-only DB?
If you are out of inodes, I seriously doubt it is Postgresql's fault, as
you seem to be running everything on the root partition here, it could be
any other process more likely than postgresql is using all the inodes.
Basically, when you make a lot of small files you can run out of inodes.


And a common culprit is whatever is being used for usenet caching/serving...or
ordinary mail which is just accumulating in /var/mail (or whereever).

Since postgresql tends to make a few rather large files, it's usually not
a concern.

df -i shows inode usage.

On linux, you can change the % reserved for root to 1% with tune2fs:

tune2fs -m 1


--
Nigel J. Andrews
---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

Nov 12 '05 #24

On Sat, 10 Jan 2004, Nigel J. Andrews wrote:
And a common culprit is whatever is being used for usenet caching/serving...or
ordinary mail which is just accumulating in /var/mail (or whereever).


Sheesh. Did I really put ordinary mailbox mail in the uses up inodes category?
I should taken out and whi....errrr...on the other hand better not might be too
exciting for some and spark off a whole new xxx web site.
Nigel Andrews
---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings

Nov 12 '05 #25
On Sat, Jan 10, 2004 at 00:38:43 +0000,
"Nigel J. Andrews" <na******@investsystems.co.uk> wrote:

On Sat, 10 Jan 2004, Nigel J. Andrews wrote:
And a common culprit is whatever is being used for usenet caching/serving...or
ordinary mail which is just accumulating in /var/mail (or whereever).


Sheesh. Did I really put ordinary mailbox mail in the uses up inodes category?
I should taken out and whi....errrr...on the other hand better not might be too
exciting for some and spark off a whole new xxx web site.


While mbox mailboxes only take one inode per mailbox, maildir mailboxes take
one inode per message. So if you are using maildir you could potentially
use a significant number of inodes for email.

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to ma*******@postgresql.org)

Nov 12 '05 #26
na******@investsystems.co.uk ("Nigel J. Andrews") writes:
On Sat, 10 Jan 2004, Nigel J. Andrews wrote:
And a common culprit is whatever is being used for usenet caching/serving...or
ordinary mail which is just accumulating in /var/mail (or whereever).


Sheesh. Did I really put ordinary mailbox mail in the uses up inodes category?
I should taken out and whi....errrr...on the other hand better not might be too
exciting for some and spark off a whole new xxx web site.


Mail accumulating in "mbox" spools shouldn't chew up inodes too badly,
but if you're using "Maildir" to spool mail, whether incoming or
outgoing, it sure can...
--
let name="cbbrowne" and tld="libertyrms.info" in String.concat "@" [name;tld];;
<http://dev6.int.libertyrms.com/>
Christopher Browne
(416) 646 3304 x124 (land)
Nov 12 '05 #27
On Fri, 9 Jan 2004, Tom Lane wrote:

:"scott.marlowe" <sc***********@ihs.com> writes:
:>> [postgres - DB]$ df -m .
:>> Filesystem 1M-blocks Used Available Use% Mounted on
:>> - 63328 55308 4803 93% /
:
:> Do you have root access to it? if so, set the reserved space for root to
:> be 0%, and then try vacuuming. Vacuuming requires some free space, and
:> since you're pretty much out, it isn't gonna be able to complete.
:
:Look again --- it's showing free space in MB not KB. He's got 4.8GB
:free. (Although that might be free-from-root's-point-of-view, rather
:than what an unprivileged user can use ...)

Tom -- You're right here. This account is running on a virtual server, so
the 4.8GB free is not for this user.

Re i-nodes:

[admin - temp]$ df -i .
Filesystem Inodes IUsed IFree IUse% Mounted on
- 8241152 1819166 6421986 23% /

However, I did just get word from the ISP that they had some sort of error
log rotation error which was keeping logs from being deleted off the
machine, taking up a lot of space (for this user account). So the 93% is
aparently not a good representation of the disk usage, as its not for this
specific user account.

Rgs,

Zeb
---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings

Nov 22 '05 #28

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Yasaswi Pulavarti | last post by:
does a command like, db2 drop table tabschema.tabname when run from the Aix prompt reclaim the disk space? Are there any other options? How can we make sure the disk space is reclaimed? Thanks,...
9
by: James Harris | last post by:
I'm wanting to write in C some code in which it is necessary to address a device as I/O space rather than as part of memory. I would like the code to be as standard - and hence as portable - as...
1
by: sir_alex | last post by:
Is there any function to see how much space is left on a device (such as a usb key)? I'm trying to fill in an mp3 reader in a little script, and this information could be very useful! Thanks!
28
by: Alan Silver | last post by:
Hello, Here I am again with another "why does IE do that" question!! Please have a look at http://www.kidsinaction.org.uk/fd/homepage.html and see if you can work out why IE adds a one pixel...
8
by: maroger | last post by:
I'm sure this is a common issue, but I haven't come across anything that works for me thusfar. I am trying to fix my header, which works fine in firefox but has extra space in IE. Here are...
4
by: bill_nirl | last post by:
Hi all, can anyone help. i have a spreasheet (set up by a looney) they have in the surname field, the surname then forename. What sort of code would i need to use to sort this out. It looks...
12
by: JA | last post by:
Is there a way to remove all the white space in the fields? I have been using Find-and-replace - looking for 2 or 3 or 4 or 10 spaces and replacing them with none. I don't want to replace single...
5
by: mostro713 | last post by:
Hello all, I would like to write a script in Python to email me when disk space gets below a certain value. My first question (I'm sure of many) is how do get this output into a dictionary or...
1
by: ismailc | last post by:
Hi, I've changed an existing xslt file, i found this css file but now the css object is not aligned with the other objects - i checked the other objects they are calling templates. I have...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.