From: Ragnar Kjørstad <postgres@ragnark.vestdata.no>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Robert.Farrugia@go.com.mt
Cc: pgsql-admin@postgresql.org
Subject: Re: Temporary files directory
Date: Tue, 23 Jan 2001 18:04:47 +0100
Message-ID: <20010123180447.A15764@vestdata.no> (raw)
In-Reply-To: <6515.980267935@sss.pgh.pa.us>
References: <OF28B4937D.7CE54EE0-ONC12569DD.003875A5@mobisle.com>
<6515.980267935@sss.pgh.pa.us>
On Tue, Jan 23, 2001 at 11:38:55AM -0500, Tom Lane wrote:
> > Additionally, is it possible to create a database than spans on more than
> > one partition or harddisk under Linux ?
>
> Right now, the only way to do this is to manually move individual files
> around and then establish symlinks to them from where they were in the
> database directory. While this works, it's pretty darn tedious to
> maintain, especially for large tables that might contain many segments;
> and you more or less have to shut down the database while moving files
> around, too. We have plans to create a more useful "tablespace"
> administration capability in the future.
>
> What I'd recommend in the short term is that you use a filesystem
> implementation that allows a logical filesystem to span multiple
> physical disks. My preferred OS, HPUX, can do this easily; I believe
> the same thing can be done with some Linux filesystems but don't know
> the details. (Any help out there?)
It's not really a filesystem issue, but a volume-manager issue.
On linux you can use LVM or md to create devices that span multiple
disks. With LVM you can even add more disks and grow your devices
without stoping your databases! :-)
--
Ragnar Kjørstad
Big Storage
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: postgres@ragnark.vestdata.no, tgl@sss.pgh.pa.us, Robert.Farrugia@go.com.mt
Subject: Re: Temporary files directory
In-Reply-To: <20010123180447.A15764@vestdata.no>
References: <OF28B4937D.7CE54EE0-ONC12569DD.003875A5@mobisle.com> <6515.980267935@sss.pgh.pa.us> <20010123180447.A15764@vestdata.no>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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