Skip to content

Commit 841e4b2

Browse files
committed
Put the disk information all in one chapter.
1 parent cda776e commit 841e4b2

File tree

4 files changed

+46
-110
lines changed

4 files changed

+46
-110
lines changed

doc/src/sgml/admin.sgml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/Attic/admin.sgml,v 1.38 2002/09/25 21:16:10 petere Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/Attic/admin.sgml,v 1.39 2002/10/16 22:06:33 petere Exp $
33
-->
44

55
<book id="admin">
@@ -34,7 +34,6 @@ $Header: /cvsroot/pgsql/doc/src/sgml/Attic/admin.sgml,v 1.38 2002/09/25 21:16:10
3434
&monitoring;
3535
&diskusage;
3636
&wal;
37-
&recovery;
3837
&regress;
3938
&release;
4039

doc/src/sgml/diskusage.sgml

Lines changed: 44 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,20 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/diskusage.sgml,v 1.5 2002/09/21 18:32:52 petere Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/diskusage.sgml,v 1.6 2002/10/16 22:06:33 petere Exp $
33
-->
44

55
<chapter id="diskusage">
66
<title>Monitoring Disk Usage</title>
77

8+
<para>
9+
This chapter discusses how to monitor the disk usage of a PostgreSQL
10+
database system. In the current release, the database administrator
11+
does not have much control over the on-disk storage layout, so this
12+
chapter is mostly informative and can give you some ideas how to
13+
manage the disk usage with operating system tools.
14+
</para>
15+
816
<sect1 id="disk-usage">
9-
<title>Monitoring Disk Usage</Title>
17+
<title>Determining Disk Usage</Title>
1018

1119
<indexterm zone="disk-usage">
1220
<primary>disk usage</primary>
@@ -96,6 +104,40 @@ play-# ORDER BY relpages DESC;
96104
shows disk usage for each database.
97105
</para>
98106
</sect1>
107+
108+
<sect1 id="disk-full">
109+
<title>Disk Full Failure</title>
110+
111+
<para>
112+
The most important disk monitoring task of a database administrator
113+
is to make sure the disk doesn't grow full. A filled data disk may
114+
result in subsequent corruption of database indexes, but not of the
115+
fundamental data tables. If the WAL files are on the same disk (as
116+
is the case for a default configuration) then a filled disk during
117+
database initialization may result in corrupted or incomplete WAL
118+
files. This failure condition is detected and the database server
119+
will refuse to start up.
120+
</para>
121+
122+
<para>
123+
If you cannot free up additional space on the disk by deleting
124+
other things you can move some of the database files to other file
125+
systems and create a symlink from the original location. But
126+
note that <application>pg_dump</> cannot save the location layout
127+
information of such a setup; a restore would put everything back in
128+
one place. To avoid running out of disk space, you can place the
129+
WAL files or individual databases in other locations while creating
130+
them. See the <application>initdb</> documentation and <xref
131+
linkend="manage-ag-alternate-locs"> for more information.
132+
</para>
133+
134+
<tip>
135+
<para>
136+
Some file systems perform badly when they are almost full, so do
137+
not wait until the disk is full to take action.
138+
</para>
139+
</tip>
140+
</sect1>
99141
</chapter>
100142

101143
<!-- Keep this comment at the end of the file

doc/src/sgml/filelist.sgml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $Header: /cvsroot/pgsql/doc/src/sgml/filelist.sgml,v 1.23 2002/09/25 21:16:10 petere Exp $ -->
1+
<!-- $Header: /cvsroot/pgsql/doc/src/sgml/filelist.sgml,v 1.24 2002/10/16 22:06:33 petere Exp $ -->
22

33
<!entity history SYSTEM "history.sgml">
44
<!entity info SYSTEM "info.sgml">
@@ -49,7 +49,6 @@
4949
<!entity maintenance SYSTEM "maintenance.sgml">
5050
<!entity manage-ag SYSTEM "manage-ag.sgml">
5151
<!entity monitoring SYSTEM "monitoring.sgml">
52-
<!entity recovery SYSTEM "recovery.sgml">
5352
<!entity regress SYSTEM "regress.sgml">
5453
<!entity release SYSTEM "release.sgml">
5554
<!entity runtime SYSTEM "runtime.sgml">

doc/src/sgml/recovery.sgml

Lines changed: 0 additions & 104 deletions
This file was deleted.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy