pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedpg_dump not enough space to create a backup FreeBSD 6.1?
4+ messages / 4 participants
[nested] [flat]
* pg_dump not enough space to create a backup FreeBSD 6.1?
@ 2007-05-16 12:36 Joost Kraaijeveld <J.Kraaijeveld@Askesis.nl>
0 siblings, 3 replies; 4+ messages in thread
From: Joost Kraaijeveld @ 2007-05-16 12:36 UTC (permalink / raw)
To: pgsql-admin
Hi,
Running pg_dump on a FreeBSD 6.1 machine gives me:
[root@s13.nedstars.nl:/data/even]# pg_dump -Ft -f ./my_db-2007-5-16.backup -U user my_db
/tmp: write failed, filesystem is full
pg_dump: [tar archiver] could not write to tar member (wrote 0,
attempted 86)
pg_dump: *** aborted because of error
[root@s13.nedstars.nl:/data/even]# df -h
Filesystem Size Used Avail Capacity Mounted on
/dev/aacd0s1g 125G 5.8G 109G 5% /data
/dev/aacd0s1e 484M 86K 445M 0% /tmp
The database is, when dumped in text format and gzipped, 40 Mb, so I
assume that there is enough space on the /tmp drive to store the temp
files of the pg_dump.
Is that assumption OK? Can I somehow use another partition to store the
temporaray files without changing my /tmp mount?
TIA
--
Groeten,
Joost Kraaijeveld
Askesis B.V.
Molukkenstraat 14
6524NB Nijmegen
tel: 024-3888063 / 06-51855277
fax: 024-3608416
web: www.askesis.nl
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: pg_dump not enough space to create a backup FreeBSD 6.1?
@ 2007-05-16 16:22 Jim C. Nasby <decibel@decibel.org>
parent: Joost Kraaijeveld <J.Kraaijeveld@Askesis.nl>
2 siblings, 0 replies; 4+ messages in thread
From: Jim C. Nasby @ 2007-05-16 16:22 UTC (permalink / raw)
To: Joost Kraaijeveld <J.Kraaijeveld@Askesis.nl>; +Cc: pgsql-admin
On Wed, May 16, 2007 at 02:36:45PM +0200, Joost Kraaijeveld wrote:
> Hi,
>
> Running pg_dump on a FreeBSD 6.1 machine gives me:
>
> [root@s13.nedstars.nl:/data/even]# pg_dump -Ft -f ./my_db-2007-5-16.backup -U user my_db
>
> /tmp: write failed, filesystem is full
> pg_dump: [tar archiver] could not write to tar member (wrote 0,
> attempted 86)
>
> pg_dump: *** aborted because of error
>
> [root@s13.nedstars.nl:/data/even]# df -h
>
> Filesystem Size Used Avail Capacity Mounted on
> /dev/aacd0s1g 125G 5.8G 109G 5% /data
> /dev/aacd0s1e 484M 86K 445M 0% /tmp
>
> The database is, when dumped in text format and gzipped, 40 Mb, so I
> assume that there is enough space on the /tmp drive to store the temp
> files of the pg_dump.
>
> Is that assumption OK? Can I somehow use another partition to store the
> temporaray files without changing my /tmp mount?
tar is what's creating the temp files, not pg_dump. AFAIK it obeys the
TEMP environment variable, so changing that should make things good.
--
Jim Nasby decibel@decibel.org
EnterpriseDB http://enterprisedb.com 512.569.9461 (cell)
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: pg_dump not enough space to create a backup FreeBSD 6.1?
@ 2007-05-16 19:41 Tom Lane <tgl@sss.pgh.pa.us>
parent: Joost Kraaijeveld <J.Kraaijeveld@Askesis.nl>
2 siblings, 0 replies; 4+ messages in thread
From: Tom Lane @ 2007-05-16 19:41 UTC (permalink / raw)
To: Joost Kraaijeveld <J.Kraaijeveld@Askesis.nl>; +Cc: pgsql-admin
Joost Kraaijeveld <J.Kraaijeveld@Askesis.nl> writes:
> Running pg_dump on a FreeBSD 6.1 machine gives me:
> [root@s13.nedstars.nl:/data/even]# pg_dump -Ft -f ./my_db-2007-5-16.backup -U user my_db
> /tmp: write failed, filesystem is full
> pg_dump: [tar archiver] could not write to tar member (wrote 0,
> attempted 86)
Do you have a specific reason to use -Ft rather than -Fc mode? -Fc
does not have this limitation, nor some other ones.
While I don't wish to actually deprecate -Ft, I wonder whether the
documentation should provide a more forceful recommendation to use
-Fc unless you have a good reason not to.
regards, tom lane
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: pg_dump not enough space to create a backup FreeBSD 6.1?
@ 2007-05-17 07:33 Peter Eisentraut <peter_e@gmx.net>
parent: Joost Kraaijeveld <J.Kraaijeveld@Askesis.nl>
2 siblings, 0 replies; 4+ messages in thread
From: Peter Eisentraut @ 2007-05-17 07:33 UTC (permalink / raw)
To: pgsql-admin; +Cc: Joost Kraaijeveld <J.Kraaijeveld@askesis.nl>
Joost Kraaijeveld wrote:
> Can I somehow use another partition to store
> the temporaray files without changing my /tmp mount?
Set the environment variable TMPDIR.
--
Peter Eisentraut
http://developer.postgresql.org/~petere/
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2007-05-17 07:33 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2007-05-16 12:36 pg_dump not enough space to create a backup FreeBSD 6.1? Joost Kraaijeveld <J.Kraaijeveld@Askesis.nl>
2007-05-16 16:22 ` Jim C. Nasby <decibel@decibel.org>
2007-05-16 19:41 ` Tom Lane <tgl@sss.pgh.pa.us>
2007-05-17 07:33 ` Peter Eisentraut <peter_e@gmx.net>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox